spec-graph
Was er macht
Dieser Skill lässt die KI die Spezifikationsdokumente des Projekts nachschlagen, bevor sie Verhalten, Grenzen oder Designentscheidungen ändert. Er hält die Dokumente genau, wenn sich der Code ändert. Er richtet sich an Teams, die sich auf geschriebene Spezifikationen als Quelle der Wahrheit verlassen.
Wann du ihn nutzt
- ✓Wenn eine Änderung eine dokumentierte Grenze, einen Vertrag oder eine Architekturentscheidung berühren könnte.
- ✓Wenn du willst, dass die KI erklärt, wie etwas laut den Spezifikationen des Projekts entworfen ist.
- ✓Wenn eine Änderung einer festgehaltenen Entscheidung widerspricht und die Spezifikation aktualisiert werden muss.
Link zum Skill
https://github.com/JetBrains/thinkrail/blob/main/packages/spec-graph/skills/spec-graph/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Prüfe, bevor wir ändern, wie Zahlungen funktionieren, die Projektspezifikationen und sag mir, welche Entscheidungen davon betroffen sind.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI sucht und liest die verknüpften Spezifikationsdokumente, richtet die Arbeit an ihnen aus und aktualisiert die Spezifikationen im selben Schritt, falls sich das Design ändert.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Liest er bei kleinen Korrekturen jede Spezifikation?
Nein. Kleine Korrekturen, die keine dokumentierte Entscheidung ändern, brauchen nur die Dateien, die sie berühren.
Was ist, wenn Code und Spezifikation sich widersprechen?
Die KI zeigt den Widerspruch auf, damit du entscheiden kannst, welches sich ändern soll.
Ist eine Spezifikation dasselbe wie der Code?
Nein. Spezifikationen beschreiben Absicht und Entscheidungen, der Code zeigt, wie Dinge umgesetzt sind.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 7.1k
- Platz im Ranking
- #13498
- Lizenz
- Apache-2.0
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
asking-user-questions
7.1kBringt deinem Agenten bei, dir Fragen in Runden mit guten Antwortoptionen zu stellen, bis die offenen Punkte geklärt sind.
brainstorming
7.1kHilft deinem Agenten, mit dir eine Funktion, eine Verhaltensänderung oder eine Fehlerbehebung zu besprechen, bevor gebaut wird, und das vereinbarte Design festzuhalten.
choosing-a-workflow
7.1kHilft deinem Agenten, den richtigen ThinkRail-Ablauf für ein neues Projekt, einen Pull Request oder jede Änderung am Produktverhalten zu wählen.
importing-a-codebase
7.1kBringt deinem Agenten bei, eine bestehende Codebasis zu lesen und einen ersten Satz Projektspezifikationen zu entwerfen, und nur dort nachzufragen, wo der Code unklar ist.
Ähnliche Skills
technical-documentation
394kHilft deinem Agenten, klare technische Dokumentation und Agenten-Anleitungen zu schreiben und zu prüfen, damit Menschen und KI-Tools leicht folgen können.
architecture-decision-records
280kLässt deinen Agenten wichtige Entscheidungen zur Projektstruktur festhalten. So bleibt nachvollziehbar, warum etwas so gewählt wurde, und die Änderungen sind klar dokumentiert.
code-tour
280kLässt deinen Agenten Schritt-für-Schritt-Erklärungen des Codes mit genauen Datei- und Zeilenangaben erstellen. Nützlich für Einführungen, Erklärungen und Reviews.