Files
holocron/plugins/kyberforge/skills/agent-author/assets
Defame1297 1333d2c1b1 feat(kyberforge): add agent-audit provenance chain validation (closes #60)
## Why

agent-author produces agents/sources.md at plugin scope to record which
research sources informed which agent files. agent-audit had no way to
validate this chain, leaving stale or missing provenance undetected.

## Implementation Notes

Validation is per-pair (the given agent file + its counterpart) rather
than plugin-wide, keeping the scope consistent with validate.sh. The
script exits 0 silently for non-plugin-scope agents.

source_keys is top-level in both CC .md and Copilot .agent.md files
(not under metadata:) to avoid conflict with Copilot's own metadata
field semantics. Checks 0, 1, 2, 4, 5, 6 mirror the skill provenance
set; upstream research-doc cross-reference checks (7, 8) are deferred.

agent-author Steps 2, 3, and 4 updated to formally specify the
agents/sources.md format and instruct authors to add source_keys to
both files when research sources are in context.

Refs: #60

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0147vXtL5sP6vorDdqXGJJU9
2026-07-04 10:37:44 +00:00
..

assets/

templates/

Annotated agent definition templates copied by scripts/new-agent.sh when scaffolding a new agent.

  • claude-code.md — Claude Code agent definition template. Includes all supported frontmatter fields (required and optional) with inline guidance comments and FILL IN: placeholders. Notes which fields are silently ignored for plugin agents.
  • copilot.agent.md — Copilot CLI agent definition template. Uses Copilot-specific fields (target, user-invocable, disable-model-invocation, Copilot tool aliases). Explicitly excludes Claude Code-only fields.