askit-build-subagent
Reference: askit-build-subagent
Section titled “Reference: askit-build-subagent”Creates and improves Claude subagents (agents/<name>.md) to the Standard. Claude-only emission.
- create: brief interview (name, job, tools, chain) -> copy
templates/agent.mdtoagents/<name>.md-> fill frontmatter (name,description, narrowesttools, optionalmodel,chainonly if it invokes another component) -> declare inlibrary.json components.subagents-> ifchainis declared, add the entry toagents/_chain-permitted.yaml-> runnode scripts/evaluate.mjs . --jsonto 0 errors (S3 + S4 must be clean). - improve: consume
node scripts/evaluate.mjs . --json-> resolve findings (S3 index drift, S4 orphan/phantom, description quality) -> re-evaluate to 0 errors. - Files touched:
agents/<name>.md(created or edited),library.json(components.subagentsentry),agents/_chain-permitted.yaml(chain entry, if the subagent invokes another component). - Claude-only: Codex v0.135 plugins cannot ship subagents (
plugin.jsonhas noagentsfield; Standard sec 3.3). The frontmatter declaresagent-targets: [claude]. No Codex artifact is generated andgen-manifest.mjsis not called for the subagent itself. - Authoring depth: see the skill’s
references/authoring-subagents.md.
Orphan and phantom errors (S4)
Section titled “Orphan and phantom errors (S4)”S4 has two distinct failure modes:
- Orphan: a component’s frontmatter
chain:names a callee that is not inagents/_chain-permitted.yamlunder that caller. Fix: add the<caller>: [<callee>]line to the contract. - Phantom: the contract names a caller or callee that matches no on-disk component. Fix: remove the stale entry, correct a misspelled name, or create the missing component.
Both are S4 errors and block the convergent gate.