Traceability Gateのロゴ

Traceability Gate

コミュニティ
andreaswasita
traceability-gate

Enforces parent-link lineage across requirement layers.

概要

公開者andreaswasita
リポジトリcopilot-agents-dojo
スキル名traceability-gate
スター
54
フォーク
15
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    andreaswasitaがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルTraceability GateをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/traceability-gate
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでTraceability Gateを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にTraceability Gateを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Traceability Gateは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.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-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.

よくある質問

AIスキル「Traceability Gate」では何ができますか?

Enforces parent-link lineage across requirement layers.

TypingMindでTraceability Gateを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Traceability Gateはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにTraceability Gateをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/andreaswasita/copilot-agents-dojo/tree/main/skills/traceability-gateを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Traceability Gateを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Traceability Gateは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもTraceability Gateを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Traceability Gate」は無料ですか?

はい。andreaswasitaがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇