From workflow-contracts
Use when a task needs a durable handoff artifact for planning, review, or execution in agent-driven workflows — not just a chat summary.
How this skill is triggered — by the user, by Claude, or both
Slash command
/workflow-contracts:workflow-contractsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when a task needs a durable handoff artifact instead of a chat summary, plan note, or loose prose.
Use this skill when a task needs a durable handoff artifact instead of a chat summary, plan note, or loose prose.
approve|revise|blocked decision.v1 contracts.| Situation | Use this skill? | Route instead |
|---|---|---|
| Create or consume a structured plan, review, or execution artifact in this repo | Yes | - |
| Create or revise a reusable skill package | No | skill-authoring |
| Write global policy that should always apply even when no artifact is produced | No | global instructions or a scoped instruction file |
| Produce requirements before creating the contract | No | to-prd |
| Break an approved contract into independently trackable tickets | No | to-issues |
Required before editing
task_id.Helpful if present
v1.Only investigate if encountered
v1 template from assets/.references/contract-spec.md is being revised too.contract_typecontract_versioncreated_bystatusreferences/contract-spec.md.v1 structured markdown for all new or revised artifacts.v1 headings before handing it off.references/checklist.md.skill-authoring instead of stretching this skill.v1 contract artifact using one of the templates in assets/:
references/contract-spec.md.Confirm the artifact uses the correct template and contract_version: v1.
Confirm all shared frontmatter keys are present.
Confirm the contract-specific headings exist and are populated with concrete content.
Confirm any commands, evidence, or blockers are explicit enough that the next phase does not need to reconstruct them from chat history.
Confirm the next action is obvious within a few seconds of reading the artifact.
Confirm any example artifact in this package uses real-looking filled values instead of placeholder ellipses.
Run scripts/validate-contracts.mjs after changing assets/, references/, or contract samples so required frontmatter, status values, and headings stay mechanically checked.
Smoke test:
to-prd)v1 planner handoff with status: ready, task_id, validation commands, and a next action the executor can start immediately."status: revise, the comments that were accepted, and the ones intentionally left unresolved."references/contract-spec.md - required frontmatter keys and headings for each v1 contractreferences/terminology.md - shared terms used across planning, review, and executionreferences/rollout-and-compatibility.md - migration rules, cutover conditions, and legacy-artifact handlingreferences/checklist.md - final artifact validation checklistreferences/examples.md - filled planner, review, and execution examples with concrete valuesassets/planner-handoff-v1.md - template for planner-to-executor handoffsassets/review-outcome-v1.md - template for machine-decidable reviewer responsesassets/execution-record-v1.md - template for implementation and verification handoffsscripts/validate-contracts.mjs - local validator for v1 contract artifactsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub matt-riley/lucky-hat --plugin workflow-contracts