audit-agent-config
Read-only audit of the whole agent harness configuration — agents, skills, rules, hooks, settings, routing and knowledge — reported as errors, warnings and info
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- audit-agent-config
- description
- Read-only audit of the whole agent harness configuration — agents, skills, rules, hooks, settings, routing and knowledge — reported as errors, warnings and info
03 SKILL.md 正文
Audit Agent Config
A readable report on the state of the harness configuration, built on the same checks CI runs plus the judgement checks no script can make. Use it after editing several .claude/ files, before pushing harness changes, or periodically to catch drift.
Input
None. $ARGUMENTS may name a subset (agents, skills, rules, hooks, knowledge) to restrict the judgement checks; the mechanical checks always run in full.
Invocation contexts
- Slash command: runs every step and prints the report.
- Model-invoked: the same.
- Non-interactive: the same; the report is the final message. The skill never writes, so it has no gates.
Steps
Mechanical checks
- Run
scripts/ci/lint-agent-harness.shand.claude/hooks/tests/run-tests.sh. Every failing lint check or test is an Error; quote its finding lines.
Inventory
Zero-judgment counts. Run them yourself, or dispatch the clerk with no model or effort argument, so its frontmatter pin applies:
Agent(subagent_type: "harness-clerk", description: "Harness inventory",
prompt: "Run .claude/skills/audit-agent-config/SKILL.md §Inventory steps 2-4 against the working tree and return its report format.")
- Count the files in
.claude/agents/,.claude/skills/*/SKILL.md,.claude/rules/(split into always-on and path-conditional) and.claude/hooks/*.sh. - Report the always-on byte total from the
rule-budgetline of the lint output. - List agents present in
.claude/agents/and rows inknowledge/agent-routing.md, side by side.
Report format: one line per step, N/M steps run.
Judgement checks
- Contradictions. Read the always-on rules and the rules loaded for each domain in
knowledge/domains.md. Two rules giving different instructions for the same situation is an Error; name both lines. - Duplication. The same instruction in two rules, or a rule restated in an agent without a mirror note, is a Warning: one copy will drift.
- Hedging and history. "Consider", "optionally", "where practical", dates, ticket IDs or "previously" in a rule is a Warning (
.claude/rules/strict-by-default.md). - Stale facts. A path, command or agent name in
knowledge/or an agent that no longer matches the tree is a Warning (the lint catches file paths; this catches commands and descriptions). - Scope. An agent whose domain scope disagrees with
knowledge/domains.mdis an Error. - Enforcement. A rule that claims a check enforces it must name a check that exists and tests that behaviour; otherwise Warning.
Never edit anything: this skill reports.
Output
## Agent config audit
### Errors (N)
- [lint:routing-pins] .claude/agents/x.md: ...
### Warnings (N)
- [duplication] .claude/rules/a.md:12 and .claude/agents/b.md:40 state ...
### Info
- 8 agents, 8 skills, 15 rules (6 always-on, 9 path-conditional), 4 hooks
- always-on bytes: N / budget
### Result
N errors, N warnings: PASS | NEEDS ATTENTION
04 同仓库更多 Skills
mythhelm-deliver-backlog
Coordinate a MYTHHELM backlog run with the shared stage checks and maintainer checkpoints.
mythhelm-bootstrap
Orient a Grok Build session in the MYTHHELM repository before task or spec work.
vendor-consult
Run one advisory stage consult (premise-ground, spec-validate, task-review, change-review, stuck-oracle, dossier) with an optional external vendor, then adjudicate the answer at its anchors
update-docs
Bring README, docs/, knowledge/, WORKFLOW.md and CLAUDE.md in line with what a shipped spec or a merged change actually did — find every statement the change made stale, fix it where readers look, and add only the new facts they need
triage
Score an idea or a GitHub issue against the master spec's stages, gates and commitments, check it for duplicates, and recommend whether it becomes a backlog card; read-only
test-driven-development
Red-green-refactor for Go — use when implementing any feature, bug fix or behaviour change, before writing implementation code