A companion audit skill for agent definition files, analogous to how skill-audit validates SKILL.md files.
Why deferred: The agent definition spec is simpler than agentskills.io — fewer auditable rules. Inline validation in the agent-author close step is sufficient for MVP. A dedicated audit skill becomes worthwhile once agent-author is in active use and producing files that need systematic review.
Acceptance criteria:
agent-audit <path> validates a Claude Code .md or Copilot .agent.md agent file
Checks: required fields present (name, description, system prompt body), name format valid (kebab-case), no Claude Code-only fields in Copilot file, silently-ignored fields flagged (hooks/mcpServers/permissionMode for plugin agents)
Reports FAILs and SUGGESTIONs in the same format as skill-audit
agent-author close step updated to reference agent-audit
## Context
Follow-ons deferred from the `agent-author` workstream. Both items were explicitly out of scope for the initial implementation shipped in `8f7945b`.
**Related:** #10 (parent workstream) · ADR-0015 (`docs/adr/0015-agent-author-dual-provider-scaffold.md`)
---
## 1. `agent-audit` skill
A companion audit skill for agent definition files, analogous to how `skill-audit` validates `SKILL.md` files.
**Why deferred:** The agent definition spec is simpler than agentskills.io — fewer auditable rules. Inline validation in the `agent-author` close step is sufficient for MVP. A dedicated audit skill becomes worthwhile once `agent-author` is in active use and producing files that need systematic review.
**Acceptance criteria:**
- [x] `agent-audit <path>` validates a Claude Code `.md` or Copilot `.agent.md` agent file
- [x] Checks: required fields present (`name`, `description`, system prompt body), name format valid (kebab-case), no Claude Code-only fields in Copilot file, silently-ignored fields flagged (`hooks`/`mcpServers`/`permissionMode` for plugin agents)
- [x] Reports FAILs and SUGGESTIONs in the same format as `skill-audit`
- [x] `agent-author` close step updated to reference `agent-audit`
Claude
changed title from feat(kyberforge): agent-audit skill and non-standard Copilot path override for agent-author to kyberforge: agent-audit skill + non-standard Copilot path override for new-agent.sh2026-06-27 14:57:09 +00:00
agent-audit <path-to-either-file> — pass either the Claude Code .md or Copilot .agent.md file. The skill derives the counterpart using scope detection. ADR-0018 documents this decision.
Scope detection
Walk up the directory tree from the input file:
plugin.json present → plugin scope (both files flat in agents/)
.git without plugin.json → project scope (CC in .claude/agents/, Copilot in .github/agents/)
~ → user scope
Script (scripts/validate.sh) — structural checks
Provider detection (.agent.md → Copilot, .md → Claude Code)
Scope detection (as above)
Counterpart file exists — FAIL if missing (the pair is the unit of authoring)
Required fields present: name, description, body non-empty
name is kebab-case
name matches filename stem
No unfilled FILL IN: placeholders
No Claude Code-only fields in Copilot file (full list read from references/field-inventory.md)
Silently-ignored fields (hooks, mcpServers, permissionMode) in a plugin-scoped CC file — FAIL
references/field-inventory.md
Machine-parseable markdown listing valid CC fields, CC-only fields, and silently-ignored plugin fields. Script reads this at runtime rather than hardcoding. ADR-0019 documents this decision.
Skill body — qualitative checks
Cross-file consistency: name matches between pair, both bodies non-empty
Description action-verb check (FAIL if absent)
You are a [role]. opening in system prompt (SUGGESTION if absent)
Report format
Same as skill-audit — coverage line, H3 dimensions, FAILs before SUGGESTIONs, Result block.
Dimensions: structure · provider-safety · description · body · pair-consistency
Tests
tests/validate.bats covering: provider detection, scope detection, counterpart-not-found FAIL, CC-only field in Copilot FAIL, silently-ignored field in plugin agent FAIL, clean pair passes.
Step 5 (close step) to reference agent-audit — run /agent-audit on the created files before closing.
## Grill session design decisions
### Invocation
`agent-audit <path-to-either-file>` — pass either the Claude Code `.md` or Copilot `.agent.md` file. The skill derives the counterpart using scope detection. ADR-0018 documents this decision.
### Scope detection
Walk up the directory tree from the input file:
- `plugin.json` present → plugin scope (both files flat in `agents/`)
- `.git` without `plugin.json` → project scope (CC in `.claude/agents/`, Copilot in `.github/agents/`)
- `~` → user scope
### Script (`scripts/validate.sh`) — structural checks
1. Provider detection (`.agent.md` → Copilot, `.md` → Claude Code)
2. Scope detection (as above)
3. Counterpart file exists — **FAIL if missing** (the pair is the unit of authoring)
4. Required fields present: `name`, `description`, body non-empty
5. `name` is kebab-case
6. `name` matches filename stem
7. No unfilled `FILL IN:` placeholders
8. No Claude Code-only fields in Copilot file (full list read from `references/field-inventory.md`)
9. Silently-ignored fields (`hooks`, `mcpServers`, `permissionMode`) in a plugin-scoped CC file — FAIL
### `references/field-inventory.md`
Machine-parseable markdown listing valid CC fields, CC-only fields, and silently-ignored plugin fields. Script reads this at runtime rather than hardcoding. ADR-0019 documents this decision.
### Skill body — qualitative checks
- Cross-file consistency: `name` matches between pair, both bodies non-empty
- Description action-verb check (FAIL if absent)
- `You are a [role].` opening in system prompt (SUGGESTION if absent)
### Report format
Same as `skill-audit` — coverage line, H3 dimensions, FAILs before SUGGESTIONs, Result block.
Dimensions: `structure · provider-safety · description · body · pair-consistency`
### Tests
`tests/validate.bats` covering: provider detection, scope detection, counterpart-not-found FAIL, CC-only field in Copilot FAIL, silently-ignored field in plugin agent FAIL, clean pair passes.
### Out of scope
Provenance/sources chain check deferred to #60.
### agent-author update
Step 5 (close step) to reference `agent-audit` — run `/agent-audit` on the created files before closing.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Context
Follow-ons deferred from the
agent-authorworkstream. Both items were explicitly out of scope for the initial implementation shipped in8f7945b.Related: #10 (parent workstream) · ADR-0015 (
docs/adr/0015-agent-author-dual-provider-scaffold.md)1.
agent-auditskillA companion audit skill for agent definition files, analogous to how
skill-auditvalidatesSKILL.mdfiles.Why deferred: The agent definition spec is simpler than agentskills.io — fewer auditable rules. Inline validation in the
agent-authorclose step is sufficient for MVP. A dedicated audit skill becomes worthwhile onceagent-authoris in active use and producing files that need systematic review.Acceptance criteria:
agent-audit <path>validates a Claude Code.mdor Copilot.agent.mdagent filename,description, system prompt body), name format valid (kebab-case), no Claude Code-only fields in Copilot file, silently-ignored fields flagged (hooks/mcpServers/permissionModefor plugin agents)skill-auditagent-authorclose step updated to referenceagent-auditfeat(kyberforge): agent-audit skill and non-standard Copilot path override for agent-authorto kyberforge: agent-audit skill + non-standard Copilot path override for new-agent.shkyberforge: agent-audit skill + non-standard Copilot path override for new-agent.shto kyberforge: agent-audit skill + Copilot path override (agent-author follow-ons)kyberforge: agent-audit skill + Copilot path override (agent-author follow-ons)to kyberforge: agent-audit skill (agent-author follow-ons)Grill session design decisions
Invocation
agent-audit <path-to-either-file>— pass either the Claude Code.mdor Copilot.agent.mdfile. The skill derives the counterpart using scope detection. ADR-0018 documents this decision.Scope detection
Walk up the directory tree from the input file:
plugin.jsonpresent → plugin scope (both files flat inagents/).gitwithoutplugin.json→ project scope (CC in.claude/agents/, Copilot in.github/agents/)~→ user scopeScript (
scripts/validate.sh) — structural checks.agent.md→ Copilot,.md→ Claude Code)name,description, body non-emptynameis kebab-casenamematches filename stemFILL IN:placeholdersreferences/field-inventory.md)hooks,mcpServers,permissionMode) in a plugin-scoped CC file — FAILreferences/field-inventory.mdMachine-parseable markdown listing valid CC fields, CC-only fields, and silently-ignored plugin fields. Script reads this at runtime rather than hardcoding. ADR-0019 documents this decision.
Skill body — qualitative checks
namematches between pair, both bodies non-emptyYou are a [role].opening in system prompt (SUGGESTION if absent)Report format
Same as
skill-audit— coverage line, H3 dimensions, FAILs before SUGGESTIONs, Result block.Dimensions:
structure · provider-safety · description · body · pair-consistencyTests
tests/validate.batscovering: provider detection, scope detection, counterpart-not-found FAIL, CC-only field in Copilot FAIL, silently-ignored field in plugin agent FAIL, clean pair passes.Out of scope
Provenance/sources chain check deferred to #60.
agent-author update
Step 5 (close step) to reference
agent-audit— run/agent-auditon the created files before closing.