Skip to main content

Crate agnix_rules

Crate agnix_rules 

Source
Expand description

Validation rules for agnix - 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 agnix_rules::RULES_DATA;

// RULES_DATA is a static array of (rule_id, rule_name) tuples
for (id, name) in RULES_DATA {
    println!("{}: {}", id, name);
}

§Rule Categories

  • AS-xxx: Agent Skills
  • CC-xxx: Claude Code (Hooks, Skills, Memory, etc.)
  • MCP-xxx: Model Context Protocol
  • COP-xxx: GitHub Copilot
  • CUR-xxx: Cursor
  • XML-xxx: XML/XSLT based configs
  • XP-xxx: Cross-platform rules

Constants§

RULES_DATA
Rule data as (id, name) tuples.

Functions§

get_rule_name
Looks up a rule by ID, returning the name if found.
rule_count
Returns the total number of rules.