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 $0.00011 $0.00978
Sonnet 5 $0.00004 $0.00391
Haiku 4.5 $0.00002 $0.00196

Measured 6d ago against content hash 840f87bc0094, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 6d 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/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

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. 6d 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 (720 stars, last pushed 6d ago), licensed MIT. It adds 22 tokens to every session and 1,956 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

audit-activation

Audits sub-agent activation from explicit consumer telemetry roots. It separates attempted, started, completed, and unattributed events, reports coverage, and identifies observed zero starts without making an estate-wide dormancy claim. Use when specialized agents feel under-used, before pruning the catalog, or after…

yonatangross/orchestkit · 66 tokens

golden-dataset

Golden dataset lifecycle patterns for curation, versioning, quality validation, and CI integration. Use when building evaluation datasets, managing dataset versions, validating quality scores, or integrating golden tests into pipelines.

yonatangross/orchestkit · 44 tokens

critical-review

Radical-honesty architectural review — questions code, methodology, design, and operational fitness.

swDomass/AI_orchestrator · 21 tokens

code-reviewer

A code-review workflow written in Chinese that checks software changes for correctness, security, performance, and maintainability. It also defines a report format for critical issues and suggestions.

halexzd686-cloud/SoloFlow · 24 tokens

skill-steward

Use when installed skills need a lifecycle audit: scans the forge registry and the configured skill directories for staleness, overlap, and conflicting triggers, then proposes a retire, promote, merge, or quarantine action per skill with evidence.

aegntic/cognitive-os · 51 tokens

test-writing

Write tests that catch real regressions — behavior-focused, minimal mocking, edge cases chosen from the code's actual branches. Use when adding tests for new code or backfilling tests for a fix.

jnMetaCode/skillet · 43 tokens