trace-requirement

trace-requirement is a cursor rule for Cursor from danielvm-git/bigpowers. It costs 58 tokens per session (700 once invoked), scanned A, original, MIT.

A traceability audit that links planned story IDs to the source code and tests that implement them. Traceability means being able to follow each planned piece of work to its implementation and verification.

In plain words
What is it for?
Use it to check release coverage, build a story-to-code-and-test matrix, and find unimplemented or undocumented work.
Why use it?
It reveals planned stories with no code and code with no matching plan entry, making missing release work easier to find.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/danielvm-git/bigpowers/trace-requirement
Clone the repo
git clone --depth 1 https://github.com/danielvm-git/bigpowers

Made for: Cursor.

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 trace-requirement

README.md
[![agentmods](https://agentmods.dev/badge/rules/danielvm-git/bigpowers/trace-requirement.svg)](https://agentmods.dev/rules/danielvm-git/bigpowers/trace-requirement)
Your own site
<a href="https://agentmods.dev/rules/danielvm-git/bigpowers/trace-requirement"><img src="https://agentmods.dev/badge/rules/danielvm-git/bigpowers/trace-requirement.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 700 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00058 $0.00700
Opus 5 $0.00029 $0.00350
Sonnet 5 $0.00012 $0.00140
Haiku 4.5 $0.00006 $0.00070

Measured yesterday against content hash 672fc0fe5250, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

trace-requirement 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 yesterday.

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.

.cursor/rules/trace-requirement.mdc · 69 lines

How it starts

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

Trace Requirement

Build a traceability matrix from specs/release-plan.yaml + epic capsule directories to implementing code and tests. Surfaces gaps in both directions: stories with no code, and code with no story.

Pre-flight

HARD GATEspecs/release-plan.yaml + epic capsule directories must exist. If it doesn't, run plan-release first.

→ verify: test -f specs/release-plan.yaml && test -d specs/epics

Read specs/release-plan.yaml + epic capsule directories fully before proceeding.

Process

1. Extract story IDs

From release-plan.yaml, collect all story IDs (e.g. 1.1, 1.2, 2.1).

→ verify: grep -rho 'e[0-9]\+s[0-9]\+' specs/release-plan.yaml specs/epics/*/epic.yaml 2>/dev/null | sort -u | head -1 | grep -q .

2. Search for story tags in code

Look for // story: X.Y or # story: X.Y comments in source files and tests:

grep -rn "story: " . --include="*.ts" --include="*.js" --include="*.py" --include="*.sh" | grep -v node_modules

→ verify: [ "$(grep -rl "story: " . --include="*.ts" --include="*.sh" --include="*.py" 2>/dev/null | wc -l | tr -d " ")" -gt 0 ]

3. Build the matrix

For each story ID:

  • Implemented: list files that contain // story: X.Y
  • Tested: list test files that contain // story: X.Y
  • Dark: story has no tag in any file — flag as unimplemented

For each tagged file with no matching story ID in release-plan.yaml:

  • Orphan: code exists but story was removed or never planned — flag for cleanup

4. Write specs/TRACEABILITY_LATEST.md

## Story Coverage

| Story | Title              | Files | Tests | Status    |
|-------|--------------------|-------|-------|-----------|
| 1.1   | [title]            | 2     | 1     | Covered   |
| 1.2   | [title]            | 0     | 0     | Dark      |

## Orphan Code (no story tag)
- [file]: contains untagged implementation

## Gaps (dark stories)
- Story 1.2: no implementation found → run plan-work

## Coverage summary
Stories: [X] covered / [Y] dark / [Z] total

Read the full file on GitHub · 69 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. yesterday First seen · 69 lines · 58 tokens per session scan A 672fc0fe5250

Subscribe to this mod's changes

trace-requirement is a cursor rule published in the GitHub repository danielvm-git/bigpowers (163 stars, last pushed 3d ago), licensed MIT. It adds 58 tokens to every session and 700 once invoked, about $0.0003 per session on Opus 5. 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-09-03.