Traceability Gate logo

Traceability Gate

Community
andreaswasita
traceability-gate

Enforces parent-link lineage across requirement layers.

Overview

Publisherandreaswasita
Repositorycopilot-agents-dojo
Skill nametraceability-gate
Stars
54
Forks
15
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by andreaswasita on GitHub. Read the source before you install it.

Installation

Install the Traceability Gate AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/traceability-gate
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andreaswasita/copilot-agents-dojo.git /tmp/copilot-agents-dojo
mkdir -p .claude/skills
cp -r /tmp/copilot-agents-dojo/skills/traceability-gate .claude/skills/traceability-gate
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Traceability Gate in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Traceability Gate on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Traceability Gate is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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-driver or 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.md defines the frontmatter contract.
  • scripts/verify-traceability.sh is 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

bash
# Full traceability check for one engagement
bash scripts/verify-traceability.sh requirements/<engagement>

# CI / strict mode — warnings (e.g. unratified) become failures
bash scripts/verify-traceability.sh --strict requirements/<engagement>

# Generate the RTM as a byproduct of the gate
bash scripts/gen-rtm.sh requirements/<engagement>

# Roll the gate into the dojo-wide gate
bash scripts/verify.sh        # invokes run_traceability_checks

Quick Reference

ActionToolNotes
Run gate locallybash scripts/verify-traceability.sh requirements/<engagement>Exit 0 = lineage intact.
Run gate strictbash scripts/verify-traceability.sh --strict …CI default.
Regenerate RTMbash scripts/gen-rtm.sh requirements/<engagement>Writes docs/rtm-<engagement>.md.
Full dojo gatebash scripts/verify.shIncludes 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:

  1. All required frontmatter keys present (id, layer, title, parent_ids, owner, measurable, ratified_by, derivation_skill).
  2. id matches filename and starts with the correct layer prefix.
  3. layer is in {BR, FR, NFR, SR, IR, TR}.
  4. Every parent_ids entry resolves to an existing file in the same engagement.
  5. Every parent's layer is in the Valid parent layers column for this artifact (see spec/artifact-schema.md §1).
  6. measurable: true for NFR/SR/TR.
  7. 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_by empty → 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.

bash
bash scripts/gen-rtm.sh requirements/<engagement>

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-traceability escape hatch. Every escape hatch becomes the default within a quarter.
  • DO NOT parent a TR straight to a BR because "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/sample exits 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/sample writes a non-empty docs/rtm-sample.md.
  • bash scripts/verify.sh includes the traceability gate in its output and the run is green.

Frequently asked questions

What does the Traceability Gate AI skill do?

Enforces parent-link lineage across requirement layers.

Why use Traceability Gate on TypingMind?

Because you install it once and use it with any model. Traceability Gate is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Traceability Gate in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/traceability-gate. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Traceability Gate?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Traceability Gate?

As many as you like. As long as a model supports skills, you can use Traceability Gate with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Traceability Gate AI skill free?

Yes. It is published on GitHub by andreaswasita under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇