Agent skill
agent-governance
Protocol health check skill - ensures AI protocol layer integrity and compliance. Supports file validation, naming conventions, and token analysis.
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/agent-governance
SKILL.md
Agent Governance Skill
Protocol health check - ensures AI protocol layer integrity and compliance.
Overview
| Attribute | Value |
|---|---|
| Name | Agent Governance |
| Version | 2.0.0 |
| Type | Protocol Maintenance |
| Trigger | After protocol changes |
Capabilities
- Required Files Check - Verify all required files exist
- Naming Convention Check - Ensure kebab-case compliance
- Engine Pollution Detection - Check for project-specific info in core/
- Token Statistics - Analyze protocol document token usage
- Link Validation - Check internal links
Usage
bash
# Full check
python $AGENT_DIR/scripts/lint-protocol.py
# Token statistics
python $AGENT_DIR/scripts/token-counter.py
Check Rules
Required Files
$AGENT_DIR/
├── start-here.md
├── index.md
├── core/
│ ├── core-rules.md
│ ├── instructions.md
│ └── conventions.md
├── project/
│ ├── context.md
│ └── tech-stack.md
└── meta/
└── protocol-adr.md
Naming Convention
python
NAMING_RULES = {
"markdown_files": r"^[a-z0-9]+(-[a-z0-9]+)*\.md$",
"directories": r"^[a-z0-9]+(-[a-z0-9]+)*$",
"exceptions": ["SKILL.md"],
}
This skill is a portable component, reusable across projects Version: 2.0.0
Didn't find tool you were looking for?