Skip to content
Back to skills

Validate Rules

ASecurity

Validate rules against schema and contracts

  • 11 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 10, 2026
developmentgo

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add reporails/rules --skill validate-rules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Validate Rules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Validate Rules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reporails-validate-rules/badge)](https://www.skillsdirectory.com/skills/reporails-validate-rules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: validate-rules
description: Validate rules against schema and contracts
---

# /validate-rules

Validate rules against their schema and rule.md/rule.yml contracts.

## Usage

```
/validate-rules [coordinate] [options]
```

**Options:**
- `--category <cat>`: Validate only rules in category (structure, content, efficiency, maintenance, governance)

## Examples

```
/validate-rules                        # All rules
/validate-rules CORE:S:0001            # Single rule
/validate-rules --category structure   # Category filter
```

## Workflow

1. Load rule schema from `backbone.schemas.rule`
2. Load coordinate map from `backbone.registry.coordinate_map`
3. Resolve rule directories via `backbone.rules.patterns`
4. For each rule:
   - Validate rule.md frontmatter against schema
   - Validate rule.yml patterns match check IDs in rule.md
   - Verify coordinate exists in coordinate-map.yml
   - Verify check types don't exceed declared rule type ceiling
   - Verify supersedes target is at a strictly lower level

## Quick Reference

| Level | Check |
|-------|-------|
| 1 | Schema: fields, types, format, coordinate pattern |
| 2 | Contract: rule.md ↔ rule.yml check ID matching |
| 3 | Cross-reference: coordinate-map, tombstones, supersession |

Files in this skill

  • SKILL.md1.2 KB
  • validation.md1.7 KB
  • workflow.md585 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.