Session-Triage Handoff Contract

session-triage verifies one incident and recommends a durable fix. Its output routes the fix to implementation via one of two branches, decided by where the defect lives. There is no skill-builder skill in this route — targeted-skill-builder and create-agentic-skill are archived, and the managing-layer handoff payload below is the implementation route.

Branch selection

Classify the verified defect before writing the handoff:

When in doubt between the two, prefer managing-layer only when the fix would change a shared skill/convention/process file under the agentic-skills repo; otherwise the fix is invoking-directory.

Managing-layer handoff payload

A self-contained YAML block any agent running in the agentic-skills repo can execute directly. It carries the canonical target, the exact fix, the publish + refresh loop, and verification — so the fix reaches the canonical source and every install without a builder skill.

# Invoke with: run this in the agentic-skills repo to implement + publish the fix
command: "implement-skill-fix"        # descriptive; not a skill command
defect_class: skill | convention | routing-process
target:                               # canonical source-of-truth only
  - packs/<pack>/claude/<skill>/SKILL.md
  - packs/<pack>/codex/<skill>/SKILL.md
fix: |
  <exact rule text / section change>
publish_refresh:
  - scripts/skill-archive.sh <skill-dir>; bump version; update CHANGELOG
  - git add <edits>; npm run skillpacks:build; git add manifest; commit together; push
  - scripts/pack.sh refresh
verify:
  - <rg checks / mirror version check / failing test or log cmd>

Field rules

Cross-directory rule

When session-triage runs from a consuming or other directory (cwd is not the managing agentic-skills repo), a managing-layer fix still routes back to the managing repo via the payload — the local installed copy in the current directory is not edited as the fix. If the managing repo is not checked out locally, say so and stop rather than patching a mirror.

Invoking-directory report

For an invoking-directory defect, emit a plain report (no YAML command, no managing-repo route):