andreaswasita/copilot-agents-dojo/traceability-gate
Claude Code and agent skill by andreaswasita/copilot-agents-dojo
- community
Checking that the SKILL.md file is still in the repository.
Enforces parent-link lineage across requirement layers.
Install
npx vskill@latest install andreaswasita/copilot-agents-dojo/traceability-gateSKILL.md
Traceability Gate
The single governance gate for the TOGAF red thread: no artifact at layer N+1 may persist unless it carries a verified link to a parent at layer N. The skill does NOT elicit requirements and does NOT derive new ones; its only job is to refuse to let unlinked artifacts live.
When to Use
- Before any pull request that touches
requirements/**or any skill
that emits artifacts under it.
- Before promoting a curator-proposed skill from
optional-skills/to
skills/ — learned skills must pass the same gate as live delivery.
- During Phase B → C and Phase C → D transitions, to prove the cascade
is intact before architecture commits to a design.
- After every batch run of
derive-nfr-from-driveror
derive-security-from-risk.
- NOT as a substitute for elicitation — the gate verifies linkage,
not quality of requirements. A bad requirement linked to a bad parent still passes the gate.
Prerequisites
- The engagement directory exists at
requirements/<engagement>/. spec/artifact-schema.mddefines the frontmatter contract.scripts/verify-traceability.shis executable.
The gate is allowed to be called against an empty engagement directory — it reports zero artifacts and exits 0. That is the seed state, not a failure.
How to Run
Quick Reference
| Action | Tool | Notes | |
|---|---|---|---|
| Run gate locally | bash scripts/verify-traceability.sh requirements/<engagement> | Exit 0 = lineage intact. | |
| Run gate strict | bash scripts/verify-traceability.sh --strict … | CI default. | |
| Regenerate RTM | bash scripts/gen-rtm.sh requirements/<engagement> | Writes docs/rtm-<engagement>.md. | |
| Full dojo gate | bash scripts/verify.sh | Includes the traceability check. |
Procedure
Step 1: Walk
The gate walks every *.md under requirements/<engagement>/{BR,FR,NFR,SR,IR,TR}/ and parses YAML frontmatter only. The body is ignored — humans read the body, the machine reads the schema.
Step 2: Validate
For each artifact:
- All required frontmatter keys present (
id,layer,title,
parent_ids, owner, measurable, ratified_by, derivation_skill).
idmatches filename and starts with the correct layer prefix.layeris in{BR, FR, NFR, SR, IR, TR}.- Every
parent_idsentry resolves to an existing file in the same
engagement.
- Every parent's
layeris in the Valid parent layers column for
this artifact (see spec/artifact-schema.md §1).
measurable: trueforNFR/SR/TR.- No cycles in the parent graph.
Step 3: Decide
- Any rule failure → gate fails (exit 1). The artifact cannot
persist. The agent must fix the link or delete the artifact.
ratified_byempty → warning by default, failure in--strict.
CI runs --strict; the local loop does not, so iteration is fast.
- Zero artifacts → exit 0 with a note. Empty is a valid seed state.
Step 4: Publish
If the gate passes, regenerate the RTM. The RTM is never edited by hand — it is always a function of the artifact graph.
Pitfalls
- DO NOT treat the gate as a style check. It is the precondition
for an artifact existing; downgrading a failure to a warning collapses the whole framework.
- DO NOT add a
# skip-traceabilityescape hatch. Every escape
hatch becomes the default within a quarter.
- DO NOT parent a
TRstraight to aBRbecause "it's obvious"
— the layers exist so the agent cannot quietly skip them.
- DO NOT ratify an artifact from inside the agent to make the gate
green. Ratification is a human signal; faking it is the worst failure mode this whole framework exists to prevent.
Verification
- [ ]
bash scripts/verify-traceability.sh requirements/sampleexits 0. - [ ]
bash scripts/verify-traceability.sh --strict requirements/sample
exits 1 when at least one artifact has ratified_by: "".
- [ ]
bash scripts/gen-rtm.sh requirements/samplewrites a
non-empty docs/rtm-sample.md.
- [ ]
bash scripts/verify.shincludes the traceability gate in its
output and the run is green.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/traceability-gate/SKILL.md
Popularity
- Repository stars
- 48
- Repository forks
- 15
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/andreaswasita/copilot-agents-dojo/traceability-gate)