Audit and repair aaa ralph command examples in this repo's prompts using LLM-as-judge backed by the live CLI command table...
Repo-specific prompt drift checker for Ralph workflows.
This skill uses a hybrid approach:
aaa completion table --format json + file/example extraction)Audit only these files unless user asks otherwise:
context/workflows/ralph/**/*.md.claude/skills/ralph-*/SKILL.mdDo not normalize slash-command examples (/ralph-plan ..., /ralph-review ...) unless explicitly requested.
check (default): audit and report findings onlyfix: audit and apply high-confidence fixes--scope <glob>: optional narrower scope for targeted auditsRun:
bash .claude/skills/ralph-prompt-audit/scripts/collect-context.sh
This creates tmp/ralph-prompt-audit/ with:
command-table.json - live CLI matrix from aaa completion table --format jsonralph-command-matrix.md - condensed command/option view for aaa ralphreview-files.txt - prompt/skill files to auditcli-invocations.txt - extracted aaa ralph examples with file:lineREADME.md - generation metadataLaunch a fresh subagent (general) and give it:
tmp/ralph-prompt-audit/ralph-command-matrix.mdtmp/ralph-prompt-audit/cli-invocations.txttmp/ralph-prompt-audit/review-files.txtAsk for strict output in JSON with this schema:
{
"findings": [
{
"file": "path/to/file.md",
"line": 123,
"example": "aaa ralph ...",
"issue": "why this is stale/invalid",
"suggested": "aaa ralph ...",
"confidence": "high|medium|low",
"autoFixSafe": true
}
]
}
Judge criteria:
aaa ralph tablefix mode)Apply only autoFixSafe: true findings with high confidence.
If ambiguity remains, keep file unchanged and report it under "needs decision".
Run collector again, then run targeted drift checks (rg) for known stale patterns.
Report:
aaa ralph plan tasks uses --supervised / --headless (not --auto)aaa ralph review stories and aaa ralph review gap stories use --milestone <path>aaa ralph subtasks complete examples should include --commit <hash> and --session <id>aaa ralph plan subtasks source flags are exclusive (--milestone|--story|--task|--file|--text|--review-diary)