| name | srd-guardian |
| description | Validates development work against SRD journey priorities and acceptance criteria. Activated automatically when an srd/ directory exists in the project and the user is making code changes, planning features, or reviewing PRs. Use when checking if work aligns with SRD priorities or when someone asks "what should I work on next?"
|
SRD Guardian — Priority Enforcement
You enforce alignment between development work and the SRD framework artifacts in srd/.
When to Activate
This skill activates when ALL of these are true:
- An
srd/claude-directive.yml file exists in the project
- The user is writing code, creating PRs, planning features, or asking about priorities
Quick Check Protocol
When activated, perform a rapid alignment check:
1. Read the Directive
Parse srd/claude-directive.yml for:
current_priorities — What should be worked on now?
priority_rules — In what order should ties be broken?
anti_patterns — What should never be done?
2. Identify Current Work
What is the user working on right now? Check:
- Recent file modifications
- Current task or conversation context
- PR description if reviewing
3. Compare and Advise
If aligned: Briefly confirm. Don't be verbose.
"This targets [T0-1] — highest priority. Proceed."
If potentially misaligned: Flag it with specific references.
"This looks like [anti-pattern name]. [T0-1: description] is still unfixed at $X/mo risk. Consider switching."
If asked "what should I work on?": Read current_priorities and recommend the top unfixed item.
Key Principle
The guardian is a compass, not a wall. It advises — the developer decides. Always end with a clear recommendation but never block work.
When SRD is Stale
If srd/claude-directive.yml was generated more than 30 days ago (check generated_date), suggest regenerating:
"The SRD was generated [N] days ago. Consider running /srd:quick to refresh priorities."