spec-graph
Ce qu’il fait
Ce skill fait consulter à l'IA les documents de spécification du projet avant de modifier un comportement, une frontière ou un choix de conception. Il garde ces documents exacts quand le code change. Il s'adresse aux équipes qui se fondent sur des spécifications écrites comme source de vérité.
Quand l’utiliser
- ✓Quand un changement pourrait toucher une frontière, un contrat ou une décision d'architecture documentée.
- ✓Quand vous voulez que l'IA explique comment quelque chose est conçu selon les spécifications du projet.
- ✓Quand un changement contredit une décision enregistrée et que la spécification doit être mise à jour.
Lien du skill
https://github.com/JetBrains/thinkrail/blob/main/packages/spec-graph/skills/spec-graph/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Avant de modifier le fonctionnement des paiements, vérifie les spécifications du projet et dis-moi quelles décisions cela touche.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'IA recherche et lit les documents de spécification liés, aligne le travail sur eux, et met à jour les spécifications dans le même changement si la conception évolue.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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_grep/spec_get/spec_graphto 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.tswith "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
idrather 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.
The graph
parentlinks form a hierarchy that mirrors the code structure: aSPEC.mdsits beside the module it describes (fractal — a package and its sub-directories each have one), and root documents sit at the repository root.depends-on,references, andimplementsform a dependency layer across the tree.
Frontmatter
- Required:
id(a unique slug),type,title. - Optional:
status(lifecycle),parent(single link),depends-on/references/implements(link lists),covers,tags. - A file is a spec when its frontmatter carries
idandtype. statustracks a spec's lifecycle:draft(being written) →active(in force), thenstale(drifting from the code),done, ordeprecated. It's optional, but keep it current as a spec firms up or ages.- Types:
goal-and-requirements— the product goal and scope; the root of the graph.architecture-design— system-wide topology, cross-cutting decisions, and invariants.module-design— a package or module's responsibility and boundary.submodule-design— the same, for a directory-level module inside a package.task-spec— a temporary working document for a piece of work; not durable, and removed once the work lands.
Tools
Read:
spec_grep— search within specs (content, narrowed by metadata filters).spec_get— a spec's frontmatter, its resolved links, and its path. Read the body with the normalreadtool using that path.spec_graph— a bounded slice of the graph: a subtree, ancestors, or a node's neighbors, to a depth.
Manage:
spec_create— a new spec with scaffolded frontmatter and headings.spec_update— a spec's frontmatter (fields and links). It does not touch the body.spec_delete— remove a spec.spec_validate— report dangling links, duplicate ids, and parent cycles.
Prose is written and edited with the normal write/edit tools; the spec tools own f
Questions fréquentes
Lit-il toutes les spécifications pour de petites corrections ?
Non. Les petites corrections qui ne modifient aucune décision documentée n'ont besoin que des fichiers qu'elles touchent.
Que se passe-t-il si le code et une spécification ne concordent pas ?
L'IA signale la contradiction pour que vous décidiez laquelle doit changer.
Une spécification est-elle la même chose que le code ?
Non. Les spécifications décrivent l'intention et les décisions, tandis que le code montre comment les choses sont implémentées.
Détails
Description originale de l’auteur
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.
repo: JetBrains/thinkrail
Popularité
- Étoiles GitHub
- 7.1k
- Position au classement
- #13498
- Licence
- Apache-2.0
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
asking-user-questions
7.1kApprend à votre agent à vous poser des questions claires par tours, avec de bonnes options de réponse, jusqu'à ce que les points ouverts soient réglés.
brainstorming
7.1kAide votre agent à discuter avec vous d'une fonctionnalité, d'un changement de comportement ou d'une correction de bogue avant de la construire, puis à consigner la conception convenue.
choosing-a-workflow
7.1kAide votre agent à choisir le bon workflow ThinkRail pour un nouveau projet, une demande de fusion ou toute modification de ce que fait le produit.
importing-a-codebase
7.1kApprend à votre agent à lire une base de code existante et à rédiger une première série de spécifications de projet, en vous demandant seulement là où le code n'est pas clair.
Skills similaires
technical-documentation
394kAide votre agent à rédiger et relire une documentation technique claire et les fichiers d'instructions pour agents, faciles à suivre pour tous.
architecture-decision-records
280kPermet à votre agent de consigner les décisions importantes sur la structure du projet. Cela aide à comprendre les raisons des choix et à garder un historique clair.
code-tour
280kPermet à votre agent de créer des visites guidées du code, étape par étape, avec références exactes aux fichiers et lignes. Utile pour présenter, expliquer ou relire.