agnix-rules
Validation rules for agnix - the agent configuration linter.
This crate provides the rule definitions used by agnix to validate agent configurations including Skills, Hooks, MCP servers, Memory files, and Plugins.
Usage
use ;
// RULES_DATA is a static array of (rule_id, rule_name) tuples
for in RULES_DATA
for tool in VALID_TOOLS
for in TOOL_RULE_PREFIXES
Rule Categories
- AS-xxx: Agent Skills
- CC-SK / CC-HK / CC-AG / CC-MEM / CC-PL: Claude Code rule families
- AGM-xxx: AGENTS.md rules
- COP-xxx: GitHub Copilot
- CUR-xxx: Cursor
- MCP-xxx: Model Context Protocol
- PE-xxx: Prompt Engineering
- REF-xxx: Import/reference validation
- VER-xxx: Version awareness
- XML-xxx: XML validation
- XP-xxx: Cross-platform compatibility
For full rule documentation, see the VALIDATION-RULES.md.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.