cocotrace

cocotrace is a skill for Claude Code from Snowflake-Labs/cocoplus. It costs 22 tokens per session (1,956 once invoked), scanned A, original, MIT.

A traceability graph that links requirements and development records from early discussion through evaluation results.

In plain words
What is it for?
Use it to build a lifecycle trace, find missing or stale records, and track links between requirements, plans, implementation output, and evaluation results.
Why use it?
It detects real content changes with SHA-256 hashes, a method for checking file contents, and marks later records as outdated when an earlier one changes.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to build a lifecycle trace, find missing or stale records, and track links between requirements, plans, implementation output, and evaluation results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/snowflake-labs/cocoplus/cocotrace
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 Snowflake-Labs/cocoplus --skill cocotrace
Clone the repo
git clone --depth 1 https://github.com/Snowflake-Labs/cocoplus

Made for: Claude Code.

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 cocotrace

README.md
[![agentmods](https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/cocotrace/github.svg)](https://agentmods.dev/skills/snowflake-labs/cocoplus/cocotrace)
Your own site
<a href="https://agentmods.dev/skills/snowflake-labs/cocoplus/cocotrace"><img src="https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/cocotrace/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 cocotrace

Your own site · 80×15
<a href="https://agentmods.dev/skills/snowflake-labs/cocoplus/cocotrace"><img src="https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/cocotrace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,956 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.00022 $0.01956
Opus 5.5 $0.00009 $0.00782
Sonnet 5.5 $0.00004 $0.00391
Haiku 4.5 $0.00002 $0.00196

Measured 1mo ago against content hash 840f87bc0094, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cocotrace 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 1mo 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.

.cortex/skills/cocotrace/SKILL.md · 180 lines

How it starts

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

CocoTrace — Requirements-to-Implementation Traceability

Overview

CocoTrace maintains a directed dependency graph: bloom.md → discuss.md → spec.md → plan.md → build-output → eval-results. SHA-256 content hashes detect genuine changes (not timestamp drift from git operations). Staleness propagates downstream from any changed node.

Why SHA-256, not timestamps: Rebase and cherry-pick change file mtimes without changing content. SHA-256 only signals real changes.

Commands

$trace build

  1. Execute the cocotrace/trace-check contract (deterministic, no LLM, Tier 2 async)

  2. Read output lifecycle/trace.json

  3. Display summary table:

    Artifact        Status    SHA-256
    ──────────────  ────────  ──────────
    bloom.md        current   abc12345
    discuss.md      stale     def67890
    spec.md         stale     (downstream of discuss.md)
    plan.md         missing   —
    build-output    missing   —
    eval-results    missing   —
    
  4. Create git commit: chore(cocotrace): update artifact traceability graph

  5. Output: "[N] current, [M] stale, [P] missing"

Idempotent: Running twice on unchanged content produces bit-identical trace.json.

$trace gaps

  1. Read lifecycle/trace.json

  2. Read lifecycle/spec.md

    • If spec.md has no ## section headings: output "spec.md has no section structure — gap analysis requires structured sections" and exit gracefully
  3. Extract requirement sections (all ## headings in spec.md)

  4. Check lifecycle/build/ for corresponding implementation files

  5. Report:

    ## Traceability Gap Analysis
    
    ### Orphaned Requirements (in spec.md, no build artifact)
    - § 3.2 Model Selection Criteria — no matching build artifact found
    
    ### Uncovered Code (in build/, no traceable requirement)
    - lifecycle/build/helper-utils.sql — not referenced in spec.md
    
    ### Coverage
    Requirements covered: 4/6 (67%)
    Implementation traced: 3/4 (75%)
    

$trace show <artifact>

  1. Read lifecycle/trace.json
  2. Trace backward from <artifact>: which upstream nodes inform it?
  3. Trace forward: which downstream nodes it produces?
  4. Display ASCII dependency chain with YOU ARE HERE marker:

Read the full file on GitHub · 180 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 180 lines · 22 tokens per session scan A 840f87bc0094

Subscribe to this mod's changes

cocotrace is a skill published in the GitHub repository Snowflake-Labs/cocoplus (726 stars, last pushed 20d ago), licensed MIT. It adds 22 tokens to every session and 1,956 once invoked, about $0.0001 per session on Opus 5.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.