spec-graph

spec-graph is a skill for Claude Code, Codex from JetBrains/thinkrail. It costs 42 tokens per session (1,434 once invoked), scanned A, original, Apache-2.0.

A connected collection of project specification documents describing architecture, design decisions, contracts, and boundaries. It treats these specifications as the project’s source of truth before code is examined.

In plain words
What is it for?
Use it when exploring a project, planning or starting a task, checking an architectural decision, changing a contract or boundary, or updating specifications alongside code.
Why use it?
It helps prevent plans and code changes from drifting away from recorded decisions or crossing boundaries that the project has already defined.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it when exploring a project, planning or starting a task, checking an architectural decision, changing a contract or boundary, or updating specifications alongside code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jetbrains/thinkrail/spec-graph
About the project

JetBrains/thinkrail is a desktop and mobile client that embeds the pi coding agent inside an interface for editing code and managing development workspaces. Developers use it to work on Git repositories through separate worktrees, a Monaco editor, terminals, Git views, specifications, and concurrent agent sessions. The catalogue entries are skills and instructions for its agent-based development workflow.

JetBrains/thinkrail · 8,500 stars · on GitHub · thinkrail.ai

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 JetBrains/thinkrail --skill spec-graph
Clone the repo
git clone --depth 1 https://github.com/JetBrains/thinkrail

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 spec-graph

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jetbrains/thinkrail/spec-graph"><img src="https://agentmods.dev/badge/skills/jetbrains/thinkrail/spec-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,434 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00042 $0.01434
Opus 5.5 $0.00017 $0.00574
Sonnet 5.5 $0.00008 $0.00287
Haiku 4.5 $0.00004 $0.00143

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

Security

Grade A, and why

spec-graph 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 16d 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.

packages/spec-graph/skills/spec-graph/SKILL.md · 101 lines

How it starts

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

Spec graph

Specs are the ground truth

  • Specs describe the architecture, decisions, contracts, and boundaries behind the code — the intent that the code alone does not reveal. Treat them as authoritative.
  • Consult the owning spec when it governs the work. When work depends on, checks, explains, or may alter a documented boundary, contract, invariant, behavior, or architecture decision, use spec_search / spec_grep / spec_get / spec_graph to find the applicable record and align with it. If a change contradicts a recorded decision, surface and reconcile the contradiction rather than silently diverging.
  • Keep lookup proportional. Specs are the map for decisions and boundaries; code confirms the implementation. A localized fix, explanation, or check that changes no documented decision may inspect only the files it needs without reading unrelated specs.
  • Keep them honest. A change that moves or blurs a boundary, or overturns a decision, updates the spec as part of the same change. Specs that drift from the code stop being ground truth.

What a spec is

  • A durable, declarative document. It states the world as it is — the intent, decisions, contracts, and boundaries behind the code — not plans, tasks, phases, or a work journey.
  • Concise and readable. It captures what is not obvious from the code; it never restates the code.
  • The bar: reading the relevant specs should be enough to understand an area and to formulate a task to improve it.

Keep specs lean

  • Explain intent, not inventory. Describe what a module is for, what it owns, and where its boundaries are — not a file-by-file transcript of its directory. The reader can see the files; the spec exists for what the files don't say.
  • Record the edges that matter. State the module's boundary (allowed / forbidden deps) and the dependency edges between its sub-modules. List a part only when its role or its edges aren't obvious from its name — e.g. a small table that carries a real dependency DAG earns its place; a table that just pairs foo.ts with "the foo tool" is noise, so say it in a sentence instead.
  • Say each thing once. A fact lives in exactly one spec; others link to it by id rather than restate it. If a paragraph is being copied between specs, move it to the spec that owns the concept and point at it. Duplicated prose drifts and turns into contradictions.
  • Prefer prose to exhaustive tables, and cut anything that only paraphrases code, filenames, or a sibling spec.

Read the full file on GitHub · 101 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. 16d ago Changed · +1 lines 1ab59fd184ea
  2. 19d ago Changed · +5 lines 13d0f318836c
  3. 2mo ago Changed · -2 lines · -55 tokens per session e065115b1e3e
  4. 3mo ago First seen · 97 lines · 97 tokens per session scan A bb74f11086c4

Subscribe to this mod's changes

spec-graph is a skill published in the GitHub repository JetBrains/thinkrail (8,500 stars, last pushed yesterday), licensed Apache-2.0. It adds 42 tokens to every session and 1,434 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.

Related

spec-graph compared with skills from other repositories

spec-graph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spec-graphJetBrains/thinkrailSkill8.5kyesterdayApache-2.0A42Claude Code, Codex
nexent-daily-testModelEngine-Group/nexentSkill6.3kyesterdayMITA78Claude Code, Codex
bello-config-advisorMakson179/BelloSkill4512d agoMITA76Claude Code, Codex
skillpack-creatorCreminiAI/skillpackSkill1.2k2mo agoMITA67Codex
skill-creatorCreminiAI/skillpackSkill1.2k2mo agoMITA64Claude Code, Codex
vigilante-create-issuealiengiraffe/vigilanteSkill4212d agoApache-2.0A25Codex
bmad-specalvin-reyes/better-agentic-ideSkill3811d agoMITA76Claude Code