rule-forge
Installation
SKILL.md
Rule Forge
Rules are binary: Pass or Fail. No "try to avoid", no subjective judgment. If you can't express it as Pass/Fail, it's a guideline, not a rule. [EXPLICIT]
Rule Anatomy
Every rule has five mandatory parts: [EXPLICIT]
| Part | Purpose | Example |
|---|---|---|
| Frontmatter | Machine-readable metadata | description: + globs: |
| Constraint | The binary statement | "No console.log in TypeScript production files" |
| Why | The failure it prevents | "Pollutes production logs, leaks internal state" |
| Bad example | Concrete violation | Code snippet showing the problem |
| Good example | Corrected version | Same code with only the violation fixed |
Rules are named R-kebab-case.md. For the full template, read references/output-template.md. [EXPLICIT]