trace

trace is a skill for Claude Code, Codex from rijuvashisht/Magneto. It costs 0 tokens per session (824 once invoked), scanned A, original, MIT.

A traceability system that links requirements, design decisions, code symbols, commits, and tests in a graph. Traceability means being able to follow a change from its original requirement to the code and tests involved.

In plain words
What is it for?
Use it to record requirements, connect them to designs and code, query affected work, and report test coverage.
Why use it?
It gives teams evidence of why a change was made, what code implements it, and which tests cover it.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for gstack. Also seen: built for gstack.

Good fit Use it to record requirements, connect them to designs and code, query affected work, and report test coverage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rijuvashisht/magneto/trace
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.

Any agent
npx skills add rijuvashisht/Magneto --skill trace
Clone the repo
git clone --depth 1 https://github.com/rijuvashisht/Magneto

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rijuvashisht/magneto/trace.svg)](https://agentmods.dev/skills/rijuvashisht/magneto/trace)
Your own site
<a href="https://agentmods.dev/skills/rijuvashisht/magneto/trace"><img src="https://agentmods.dev/badge/skills/rijuvashisht/magneto/trace.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 824 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.00824
Opus 5 $0.00000 $0.00412
Sonnet 5 $0.00000 $0.00165
Haiku 4.5 $0.00000 $0.00082

Measured 8d ago against content hash e0e110a39497, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

trace 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 8d ago.

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.

src/templates/magneto-skills/skills/trace/SKILL.md · 110 lines

How it starts

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

Role: Traceability Engineer Inputs: requirement IDs, file paths, test paths Outputs: .magneto/trace.db (SQLite) + trace.json artifact Audit actions: trace.link_added, trace.impact_queried, trace.coverage_reported


Why This Skill Exists — The Moat

gstack has no notion of requirements. Magneto tracks every code change back to the requirement that drove it, every test back to the code it covers, and every design decision back to the business rule that justified it.

This is the single most valuable enterprise feature: when your CISO asks "prove nothing unauthorized shipped," you have the log.

Subcommands

Initialize

magneto trace init     # creates .magneto/trace.db

Add a requirement

magneto trace req add "REQ-042" --title "Password reset must expire in 1h" \
  --source "policy/password.md#section-2"

Link requirement to design

magneto trace link REQ-042 --design .magneto/sprints/<id>/design.md#password-reset

Link requirement to code (AST-based, not line-based)

magneto trace link REQ-042 \
  --code-symbol "src/auth/reset.ts:PasswordReset.expire" \
  --commit <sha>

Link requirement to test

magneto trace link REQ-042 --test tests/auth/reset.spec.ts:"expires after 1h"

Query

magneto trace show REQ-042          # show all links for a requirement
magneto trace impact src/auth/reset.ts   # which requirements does this file affect?
magneto trace coverage              # % of requirements with code + tests

Example Output

REQ-042: Password reset must expire in 1h
├── Design: sprints/s-20260512/design.md#password-reset
├── Code:
│   ├── src/auth/reset.ts:PasswordReset.expire (commit abc123)
│   └── src/auth/reset.ts:PasswordReset.isValid (commit abc123)
├── Tests:
│   ├── tests/auth/reset.spec.ts:"expires after 1h"
│   └── tests/auth/reset.spec.ts:"rejects after expiry"
└── Coverage: 100% (design ✓, code ✓, tests ✓)

Read the full file on GitHub · 110 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. 8d ago First seen · 110 lines · 0 tokens per session scan A e0e110a39497

Subscribe to this mod's changes

trace is a skill published in the GitHub repository rijuvashisht/Magneto (6 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 824 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-08-31.

Related

Other skills, from other repositories

gh-issues

Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5]…

the-open-agent/openagent · 116 tokens

scaffold-dotnet-test-project

MUST USE when an existing .NET test project was excluded from a .slnf/CI solution filter, disappeared from .sln/.slnx discovery, or lost its production ProjectReference; also for requests to set up, create, reuse, add, register, include, or repair a test project. Handles "tests pass directly but CI discovers zero"…

dotnet/skills · 139 tokens

unity-agent-workflows

Use for AI-assisted Unity work that needs live repo discovery, project-derived routing, runtime-owner proof, runtime-visible output hard stops, runtime numeric proof for repeated visible-output failures, state-step guards, multi-agent scope ownership, modular C#/asmdef safety, UI/scene/visual asset gates, data-first…

hashgraph-online/awesome-codex-plugins · 146 tokens

linear-app-setup

Create and configure a Linear agent app so the assistant can manage issues, projects, and workflows under its own identity.

vellum-ai/vellum-assistant · 27 tokens

java-unit-test

A code-generation guide for Java unit tests in Spring Boot projects. Unit tests check one small piece of code in isolation; Spring Boot is a Java framework for building web applications and services.

hashgraph-online/awesome-codex-plugins · 113 tokens

laravel-tdd

Test-driven development for Laravel with PHPUnit and Pest, factories, database testing, fakes, and coverage targets.

hashgraph-online/awesome-codex-plugins · 27 tokens