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.
npx skills add TheGreenCedar/CodeStory --skill codestory-groundinggit clone --depth 1 https://github.com/TheGreenCedar/CodeStoryWrote 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.
[](https://agentmods.dev/skills/thegreencedar/codestory/codestory-grounding)<a href="https://agentmods.dev/skills/thegreencedar/codestory/codestory-grounding"><img src="https://agentmods.dev/badge/skills/thegreencedar/codestory/codestory-grounding/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.
<a href="https://agentmods.dev/skills/thegreencedar/codestory/codestory-grounding"><img src="https://agentmods.dev/badge/skills/thegreencedar/codestory/codestory-grounding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.02277 |
| Opus 5.5 | $0.00021 | $0.00911 |
| Sonnet 5.5 | $0.00010 | $0.00455 |
| Haiku 4.5 | $0.00005 | $0.00228 |
Grade A, and why
codestory-grounding 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 24d 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.
How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CodeStory Grounding
CodeStory helps an agent locate repository evidence, inspect source and follow relationships. The agent decides what to investigate and whether the evidence supports an answer. The skill does not expand the user's scope or authorize edits during a review.
Pass an absolute project root on every call. Keep project, source and
publication identities attached when combining results across repositories.
Code-mode tools and results
Inspect selected tool declarations
When the needed operation is known, inspect its exact callable declaration. If you need an inventory first, print tool names, then inspect the declarations for the operations you choose. All operations remain available.
In hosts exposing ALL_TOOLS, a names-only inventory avoids printing every
request and response schema:
text(ALL_TOOLS.filter(tool => /codestory/i.test(tool.name)).map(tool => tool.name));
After choosing an operation, match its actual exposed name exactly. This example selects search; choose any operation or set of operations the task needs:
const selectedNames = new Set(["mcp__codestory__search"]);
text(ALL_TOOLS.filter(tool => selectedNames.has(tool.name)));
Keep each selected declaration complete. Inspect further declarations when they become useful. A plugin-wide predicate over names and descriptions can print many unused declarations; discovery does not require displaying all of them. When a linked document path is already known, bound search to that file. Do not run a broad package or repository search merely to rediscover it.
Display each result payload once
Some hosts expose both content and structuredContent (or
structured_content) to JavaScript. Printing the whole wrapper can put the
same JSON payload into the model context twice.
Use one complete representation while retaining every other returned field. This example removes only plain text blocks that exactly match the serialized structured payload. Different spacing, key ordering or numeric spelling leaves the text in place; parsing it first could discard precision that only the text retains. Distinct text, annotations, images, resources, error flags and metadata stay intact. Keep the original result for programmatic use.
What ships with it
25 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.
- agents/openai.yaml 577 B
- references/affected.md 3.7 KB
- references/bookmark.md 1.5 KB
- references/cache.md 1.9 KB
- references/context.md 2.8 KB
- references/doctor.md 3.1 KB
- references/drill-suite.md 4.9 KB
- references/drill.md 4.1 KB
- references/explore.md 2.9 KB
- references/files.md 2.4 KB
- references/generated-cli-syntax.md 2.3 KB
- references/generated-mcp-syntax.md 4.2 KB
- references/ground.md 2.2 KB
- references/index.md 4.2 KB
- references/packet.md 5.1 KB
- references/query.md 2.0 KB
- references/retrieval-rollout.md 3.8 KB
- references/search.md 2.5 KB
- references/serve.md 3.5 KB
- references/snippet.md 2.9 KB
- references/status-contract.md 8.6 KB
- references/symbol.md 1.1 KB
- references/trail.md 2.3 KB
- scripts/setup.ps1 6.5 KB runs code
- scripts/setup.sh 4.1 KB runs code
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.
- 24d ago Changed · +8 lines f40ab6e90f33
- 27d ago Changed · +72 lines · +8 tokens per session 88db475d854f
- 1mo ago First seen · 121 lines · 44 tokens per session scan A 3f2cf1908125
codestory-grounding is a skill published in the GitHub repository TheGreenCedar/CodeStory (37 stars, last pushed yesterday), licensed Apache-2.0. It adds 52 tokens to every session and 2,277 once invoked, about $0.0002 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-08-30.
Other skills, from other repositories
kivgraph
Use Kivgraph's local MCP server to search symbols, read their source, and follow references, dependencies, cross-repository consumers and graph status in the indexed code graph.
memtrace-first
Route code discovery, debugging, flow tracing, how-code-works questions, and pre-edit rationale checks in indexed source-code repos to Memtrace graph plus Cortex decision tools. Use first before searching/reading code, and before editing, refactoring, deleting, or re-picking an approach that may have a recorded…
memtrace-style-fingerprint
Pull the codebase's empirical style norm from Memtrace and match it when writing or editing source code in an indexed repo. Use when choosing between competing idioms (ternary vs if-else, arrow vs function declaration, const vs let, await vs .then, early-return vs nested-return), matching naming case, or when the user…
memtrace-decision-memory
Use Cortex decision memory through the normal Memtrace MCP tools. Trigger for free-text questions about what was decided, chosen, rejected, banned, or established as a convention; for why a symbol exists or which contracts constrain it; for whether a known decision held, drifted, or was violated; and for the…
memtrace-evolution
Trace source-code change history from Memtrace's symbol-level temporal memory. Use when the user asks about change history, recent modifications, what changed since a date, symbol timeline, evolution, unexpected changes, or incident timelines. Do not use git log, git diff, Grep, or manual file search to reconstruct…
memtrace-fleet-first
Coordinate fleets of coding agents sharing one repo+branch: publish typed intents, classify edit episodes, and resolve conflicts before they collide. Use FIRST when multiple agents work the same repo+branch, before reading/planning/editing, when joining a fleet or handing work off, and when the user says two agents…