spec-trace-requirements

spec-trace-requirements is a command for GitHub Copilot from rjmurillo/ai-agents. It costs 0 tokens per session (1,424 once invoked), scanned A, original, MIT.

A requirements traceability check that compares implementation changes with requirements in a specification. It recognises requirement IDs, acceptance criteria, user stories, and statements such as MUST or SHOULD.

In plain words
What is it for?
It is for reviewing implementation coverage against a specification and producing a requirements coverage matrix.
Why use it?
Code changes can be made without covering every requested requirement. This check shows which requirements are covered, partly covered, not covered, or not applicable, with supporting evidence.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

Good fit It is for reviewing implementation coverage against a specification and producing a requirements coverage matrix.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rjmurillo/ai-agents/spec-trace-requirements
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spec-trace-requirements

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjmurillo/ai-agents/spec-trace-requirements/github.svg)](https://agentmods.dev/commands/rjmurillo/ai-agents/spec-trace-requirements)
Your own site
<a href="https://agentmods.dev/commands/rjmurillo/ai-agents/spec-trace-requirements"><img src="https://agentmods.dev/badge/commands/rjmurillo/ai-agents/spec-trace-requirements/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spec-trace-requirements

Your own site · 80×15
<a href="https://agentmods.dev/commands/rjmurillo/ai-agents/spec-trace-requirements"><img src="https://agentmods.dev/badge/commands/rjmurillo/ai-agents/spec-trace-requirements.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,424 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01424
Opus 5.5 $0.00000 $0.00570
Sonnet 5.5 $0.00000 $0.00285
Haiku 4.5 $0.00000 $0.00142

Measured today against content hash 5e81d7dbcb4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec-trace-requirements scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/prompts/spec-trace-requirements.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Requirements Traceability Check

You are verifying that implementation changes trace back to specification requirements.

Task

  1. Identify all requirements in the specification (look for REQ-*, acceptance criteria, user stories)
  2. For each requirement, determine if the implementation changes address it
  3. Report coverage status for each requirement

Identification Patterns

Look for requirements in these forms:

  • REQ-NNN: Formal requirement IDs
  • DESIGN-NNN: Design specification IDs
  • TASK-NNN: Task identifiers
  • AC-N or numbered acceptance criteria
  • User stories: "As a [user], I want [goal], so that [benefit]"
  • Bullet points describing expected behavior
  • "SHALL", "MUST", "SHOULD" statements (RFC 2119)

Coverage Status Definitions

  • COVERED: Implementation clearly addresses this requirement
  • PARTIAL: Implementation partially addresses this requirement
  • NOT_COVERED: No evidence that implementation addresses this requirement
  • N/A: Requirement is not applicable to these changes

Output Format

Output your analysis in this format:

### Requirements Coverage Matrix

| Requirement | Description | Status | Evidence |
|-------------|-------------|--------|----------|
| REQ-001 | [brief description] | COVERED | [file:line or description] |
| REQ-002 | [brief description] | NOT_COVERED | - |
| REQ-003 | [brief description] | PARTIAL | [what's missing] |

### Summary

- Total Requirements: N
- Covered: N (X%)
- Partially Covered: N (X%)
- Not Covered: N (X%)

### Gaps

1. [Specific gaps or missing implementations]

End your analysis with a GitHub Alert block matching the verdict:

For PASS:

> [!TIP]
> **VERDICT: PASS**
> All requirements are covered by the implementation. [Brief explanation]

For PARTIAL:

> [!WARNING]
> **VERDICT: PARTIAL**
> Some requirements have gaps. [Brief explanation]

For FAIL:

> [!CAUTION]
> **VERDICT: FAIL**
> Critical requirements are not covered. [Brief explanation]

Read the full file on GitHub · 153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 153 lines · 0 tokens per session scan A 5e81d7dbcb4e

Subscribe to this mod's changes

spec-trace-requirements is a command published in the GitHub repository rjmurillo/ai-agents (48 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,424 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-19.