Rules Reference
This section contains all 100 validation rules generated from knowledge-base/rules.json.
| Rule | Name | Severity | Category |
|---|---|---|---|
| AS-001 | Missing Frontmatter | HIGH | Agent Skills |
| AS-002 | Missing Required Field: name | HIGH | Agent Skills |
| AS-003 | Missing Required Field: description | HIGH | Agent Skills |
| AS-004 | Invalid Name Format | HIGH | Agent Skills |
| AS-005 | Name Starts/Ends with Hyphen | HIGH | Agent Skills |
| AS-006 | Consecutive Hyphens in Name | HIGH | Agent Skills |
| AS-007 | Reserved Name | HIGH | Agent Skills |
| AS-008 | Description Too Short | HIGH | Agent Skills |
| AS-009 | Description Contains XML | HIGH | Agent Skills |
| AS-010 | Missing Trigger Phrase | MEDIUM | Agent Skills |
| AS-011 | Compatibility Too Long | HIGH | Agent Skills |
| AS-012 | Content Exceeds 500 Lines | MEDIUM | Agent Skills |
| AS-013 | File Reference Too Deep | HIGH | Agent Skills |
| AS-014 | Windows Path Separator | HIGH | Agent Skills |
| AS-015 | Upload Size Exceeds 8MB | HIGH | Agent Skills |
| AS-016 | Skill Parse Error | HIGH | Agent Skills |
| CC-SK-001 | Invalid Model Value | HIGH | Claude Skills |
| CC-SK-002 | Invalid Context Value | HIGH | Claude Skills |
| CC-SK-003 | Context Without Agent | HIGH | Claude Skills |
| CC-SK-004 | Agent Without Context | HIGH | Claude Skills |
| CC-SK-005 | Invalid Agent Type | HIGH | Claude Skills |
| CC-SK-006 | Dangerous Auto-Invocation | HIGH | Claude Skills |
| CC-SK-007 | Unrestricted Bash | HIGH | Claude Skills |
| CC-SK-008 | Unknown Tool Name | HIGH | Claude Skills |
| CC-SK-009 | Too Many Injections | MEDIUM | Claude Skills |
| CC-HK-001 | Invalid Hook Event | HIGH | Claude Hooks |
| CC-HK-002 | Prompt Hook on Wrong Event | HIGH | Claude Hooks |
| CC-HK-003 | Missing Matcher for Tool Events | HIGH | Claude Hooks |
| CC-HK-004 | Matcher on Non-Tool Event | HIGH | Claude Hooks |
| CC-HK-005 | Missing Type Field | HIGH | Claude Hooks |
| CC-HK-006 | Missing Command Field | HIGH | Claude Hooks |
| CC-HK-007 | Missing Prompt Field | HIGH | Claude Hooks |
| CC-HK-008 | Script File Not Found | HIGH | Claude Hooks |
| CC-HK-009 | Dangerous Command Pattern | HIGH | Claude Hooks |
| CC-HK-010 | Timeout Policy | MEDIUM | Claude Hooks |
| CC-HK-011 | Invalid Timeout Value | HIGH | Claude Hooks |
| CC-HK-012 | Hooks Parse Error | HIGH | Claude Hooks |
| CC-AG-001 | Missing Name Field | HIGH | Claude Agents |
| CC-AG-002 | Missing Description Field | HIGH | Claude Agents |
| CC-AG-003 | Invalid Model Value | HIGH | Claude Agents |
| CC-AG-004 | Invalid Permission Mode | HIGH | Claude Agents |
| CC-AG-005 | Referenced Skill Not Found | HIGH | Claude Agents |
| CC-AG-006 | Tool/Disallowed Conflict | HIGH | Claude Agents |
| CC-AG-007 | Agent Parse Error | HIGH | Claude Agents |
| CC-MEM-001 | Invalid Import Path | HIGH | Claude Memory |
| CC-MEM-002 | Circular Import | HIGH | Claude Memory |
| CC-MEM-003 | Import Depth Exceeds 5 | HIGH | Claude Memory |
| CC-MEM-004 | Invalid Command Reference | MEDIUM | Claude Memory |
| CC-MEM-005 | Generic Instruction | HIGH | Claude Memory |
| CC-MEM-006 | Negative Without Positive | HIGH | Claude Memory |
| CC-MEM-007 | Weak Constraint Language | HIGH | Claude Memory |
| CC-MEM-008 | Critical Content in Middle | HIGH | Claude Memory |
| CC-MEM-009 | Token Count Exceeded | MEDIUM | Claude Memory |
| CC-MEM-010 | README Duplication | MEDIUM | Claude Memory |
| AGM-001 | Valid Markdown Structure | HIGH | AGENTS.md |
| AGM-002 | Missing Section Headers | MEDIUM | AGENTS.md |
| AGM-003 | Character Limit (Windsurf) | MEDIUM | AGENTS.md |
| AGM-004 | Missing Project Context | MEDIUM | AGENTS.md |
| AGM-005 | Platform-Specific Features Without Guard | MEDIUM | AGENTS.md |
| AGM-006 | Nested AGENTS.md Hierarchy | MEDIUM | AGENTS.md |
| CC-PL-001 | Plugin Manifest Not in .claude-plugin/ | HIGH | Claude Plugins |
| CC-PL-002 | Components in .claude-plugin/ | HIGH | Claude Plugins |
| CC-PL-003 | Invalid Semver | HIGH | Claude Plugins |
| CC-PL-004 | Missing Required Plugin Field | HIGH | Claude Plugins |
| CC-PL-005 | Empty Plugin Name | HIGH | Claude Plugins |
| CC-PL-006 | Plugin Parse Error | HIGH | Claude Plugins |
| MCP-001 | Invalid JSON-RPC Version | HIGH | MCP |
| MCP-002 | Missing Required Tool Field | HIGH | MCP |
| MCP-003 | Invalid JSON Schema | HIGH | MCP |
| MCP-004 | Missing Tool Description | HIGH | MCP |
| MCP-005 | Tool Without User Consent | HIGH | MCP |
| MCP-006 | Untrusted Annotations | HIGH | MCP |
| MCP-007 | MCP Parse Error | HIGH | MCP |
| MCP-008 | Protocol Version Mismatch | MEDIUM | MCP |
| COP-001 | Empty Copilot Instruction File | HIGH | GitHub Copilot |
| COP-002 | Invalid Frontmatter in Scoped Instructions | HIGH | GitHub Copilot |
| COP-003 | Invalid Glob Pattern in applyTo | HIGH | GitHub Copilot |
| COP-004 | Unknown Frontmatter Keys | MEDIUM | GitHub Copilot |
| CUR-001 | Empty Cursor Rule File | HIGH | Cursor |
| CUR-002 | Missing Frontmatter in .mdc File | MEDIUM | Cursor |
| CUR-003 | Invalid YAML Frontmatter | HIGH | Cursor |
| CUR-004 | Invalid Glob Pattern in globs Field | HIGH | Cursor |
| CUR-005 | Unknown Frontmatter Keys | MEDIUM | Cursor |
| CUR-006 | Legacy .cursorrules File Detected | MEDIUM | Cursor |
| XML-001 | Unclosed XML Tag | HIGH | XML |
| XML-002 | Mismatched Closing Tag | HIGH | XML |
| XML-003 | Unmatched Closing Tag | HIGH | XML |
| REF-001 | Import File Not Found | HIGH | References |
| REF-002 | Broken Markdown Link | HIGH | References |
| PE-001 | Lost in the Middle | MEDIUM | Prompt Engineering |
| PE-002 | Chain-of-Thought on Simple Task | MEDIUM | Prompt Engineering |
| PE-003 | Weak Imperative Language | MEDIUM | Prompt Engineering |
| PE-004 | Ambiguous Instructions | MEDIUM | Prompt Engineering |
| XP-001 | Platform-Specific Feature in Generic Config | HIGH | Cross-Platform |
| XP-002 | AGENTS.md Platform Compatibility | HIGH | Cross-Platform |
| XP-003 | Hard-Coded Platform Paths | HIGH | Cross-Platform |
| XP-004 | Conflicting Build/Test Commands | MEDIUM | Cross-Platform |
| XP-005 | Conflicting Tool Constraints | HIGH | Cross-Platform |
| XP-006 | Multiple Layers Without Documented Precedence | MEDIUM | Cross-Platform |
| VER-001 | No Tool/Spec Versions Pinned | LOW | Version Awareness |