spec-graph
Agent skill fromJetBrains/thinkrail
Use when locating, reading, creating, updating, or validating project specs, or when work is governed by or may alter a documented boundary, contract, invariant, behavior, or architecture decision.
How to install spec-graph
install spec-graph
# install the thinkrail pack with the skills CLI
npx skills add JetBrains/thinkrail# or add only this skill to Claude Code: copy the folder
packages/spec-graph/skills/spec-graph/
# into
~/.claude/skills/spec-graph/ (all projects)
.claude/skills/spec-graph/ (one project)
1# Spec graph23## Specs are the ground truth45- Specs describe the architecture, decisions, contracts, and boundaries behind the code — the intent6 that the code alone does not reveal. Treat them as authoritative.7- **Consult the owning spec when it governs the work.** When work depends on, checks, explains, or8 may alter a documented boundary, contract, invariant, behavior, or architecture decision, use9 `spec_grep` / `spec_get` / `spec_graph` to find the applicable record and align with it. If a change contradicts a recorded10 decision, surface and reconcile the contradiction rather than silently diverging.11- **Keep lookup proportional.** Specs are the map for decisions and boundaries; code confirms the12 implementation. A localized fix, explanation, or check that changes no documented decision may13 inspect only the files it needs without reading unrelated specs.14- **Keep them honest.** A change that moves or blurs a boundary, or overturns a decision, updates the15 spec as part of the same change. Specs that drift from the code stop being ground truth.1617## What a spec is1819- A durable, declarative document. It states the world as it is — the intent, decisions, contracts, and20 boundaries behind the code — not plans, tasks, phases, or a work journey.21- Concise and readable. It captures what is *not* obvious from the code; it never restates the code.22- The bar: reading the relevant specs should be enough to understand an area and to formulate a task to23 improve it.24…
Excerpt shown under the repository's Apache-2.0 license.
