spec-graph
यह क्या करती है
यह स्किल AI को व्यवहार, सीमाओं या डिज़ाइन फ़ैसलों को बदलने से पहले प्रोजेक्ट के स्पेसिफ़िकेशन दस्तावेज़ देखने देती है। कोड बदलने पर वह उन दस्तावेज़ों को सटीक रखती है। यह उन टीमों के लिए है जो लिखित स्पेक्स को सच का स्रोत मानती हैं।
कब इस्तेमाल करें
- ✓जब कोई बदलाव दस्तावेज़ित सीमा, अनुबंध या आर्किटेक्चर फ़ैसले को प्रभावित कर सकता है।
- ✓जब आप चाहते हैं कि AI प्रोजेक्ट के स्पेक्स के अनुसार बताए कि कोई चीज़ कैसे डिज़ाइन की गई है।
- ✓जब कोई बदलाव दर्ज फ़ैसले के विपरीत हो और स्पेक को अपडेट करना पड़े।
Skill का लिंक
https://github.com/JetBrains/thinkrail/blob/main/packages/spec-graph/skills/spec-graph/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हम भुगतान कैसे काम करता है यह बदलने से पहले प्रोजेक्ट स्पेक्स जाँचिए और बताइए कि कौन से फ़ैसले इससे प्रभावित होंगे।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI जुड़े स्पेक दस्तावेज़ खोजता और पढ़ता है, काम को उनके अनुसार ढालता है, और अगर डिज़ाइन बदलता है तो उसी बदलाव में स्पेक्स भी अपडेट करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल
क्या छोटे सुधारों के लिए भी हर स्पेक पढ़ता है?
नहीं। जो छोटे सुधार कोई दर्ज फ़ैसला नहीं बदलते, उन्हें सिर्फ़ उनकी छुई फ़ाइलें चाहिए।
अगर कोड और स्पेक एक-दूसरे से मेल न खाएँ तो?
AI उस विरोधाभास की ओर इशारा करता है, ताकि आप तय कर सकें कि कौन सा बदलना चाहिए।
क्या स्पेक कोड जैसा ही है?
नहीं। स्पेक्स इरादा और फ़ैसले बताते हैं, जबकि कोड बताता है कि चीज़ें लागू कैसे हुईं।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 7.1k
- रैंकिंग में स्थान
- #13498
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
asking-user-questions
7.1kयह आपके एजेंट को सही विकल्पों के साथ आपसे साफ़ सवाल दौरों में पूछना सिखाती है, जब तक खुले बिंदु तय न हो जाएँ।
brainstorming
7.1kयह आपके एजेंट को किसी फ़ीचर, व्यवहार बदलाव या बग फ़िक्स को बनाने से पहले आपके साथ बात करके तय डिज़ाइन दर्ज करने में मदद करती है।
choosing-a-workflow
7.1kयह आपके एजेंट को नए प्रोजेक्ट, pull request या प्रोडक्ट में किसी भी बदलाव के लिए सही ThinkRail वर्कफ़्लो चुनने में मदद करती है।
importing-a-codebase
7.1kयह आपके एजेंट को मौजूदा कोडबेस पढ़ने और उसकी पहली प्रोजेक्ट स्पेक्स का मसौदा बनाने सिखाती है, और सिर्फ़ वहीं सवाल पूछती है जहाँ कोड साफ़ नहीं है।
मिलती-जुलती skills
technical-documentation
394kयह आपके एजेंट को साफ़ तकनीकी डॉक्स और एजेंट निर्देश फ़ाइलें लिखने और जांचने में मदद करती है, ताकि लोग और AI टूल उन्हें आसानी से समझ सकें।
architecture-decision-records
280kयह आपके एजेंट को project structure से जुड़े ज़रूरी फैसलों को दर्ज करने देता है। इससे पता चलता है कि कोई चुनाव क्यों किया गया, और बदलावों का साफ़ इतिहास बना रहता है।
code-tour
280kआपके एजेंट को exact file और line references के साथ step-by-step code walkthrough बनाने देता है। intro, explanations और reviews के लिए उपयोगी है।