spec-graph
Fungsinya
Skill ini membuat AI mencari dokumen spesifikasi proyek sebelum mengubah perilaku, batasan, atau pilihan desain. Skill ini menjaga dokumen tetap akurat saat kode berubah. Skill ini ditujukan untuk tim yang mengandalkan spesifikasi tertulis sebagai sumber kebenaran.
Kapan dipakai
- โSaat sebuah perubahan bisa memengaruhi batasan, kontrak, atau keputusan arsitektur yang sudah terdokumentasi.
- โKetika Anda ingin AI menjelaskan bagaimana sesuatu dirancang menurut spesifikasi proyek.
- โKetika sebuah perubahan bertentangan dengan keputusan yang tercatat dan spesifikasinya perlu diperbarui.
Link skill
https://github.com/JetBrains/thinkrail/blob/main/packages/spec-graph/skills/spec-graph/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSebelum kita mengubah cara kerja pembayaran, periksa spesifikasi proyek dan beri tahu saya keputusan mana yang terdampak.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI mencari dan membaca dokumen spesifikasi yang terhubung, menyelaraskan pekerjaan dengannya, dan memperbarui spesifikasi dalam perubahan yang sama jika desainnya bergeser.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah AI membaca setiap spesifikasi untuk perbaikan kecil?
Tidak. Perbaikan kecil yang tidak mengubah keputusan yang terdokumentasi hanya memerlukan file yang disentuhnya.
Bagaimana jika kode dan spesifikasi tidak cocok?
AI menunjukkan pertentangan itu agar Anda bisa memutuskan mana yang harus berubah.
Apakah spesifikasi sama dengan kode?
Tidak. Spesifikasi menjelaskan maksud dan keputusan, sedangkan kode menunjukkan bagaimana hal itu diimplementasikan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 7.1k
- Peringkat
- #13498
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
asking-user-questions
7.1kMengajari agent Anda cara mengajukan pertanyaan yang jelas secara bertahap, dengan pilihan jawaban yang baik, sampai poin-poin yang masih terbuka selesai.
brainstorming
7.1kMembantu agent Anda membahas fitur, perubahan perilaku, atau perbaikan bug bersama Anda sebelum dibangun, lalu mencatat desain yang disepakati.
choosing-a-workflow
7.1kMembantu agent Anda memilih alur kerja ThinkRail yang tepat untuk proyek baru, pull request, atau perubahan pada fitur produk.
importing-a-codebase
7.1kMengajari agent Anda membaca kode proyek yang sudah ada dan menyusun draf spesifikasi awalnya, hanya bertanya jika kodenya tidak jelas.
Skill serupa
technical-documentation
394kMembantu agent Anda menulis dan meninjau dokumentasi teknis serta file instruksi agent yang jelas, agar orang dan alat AI dapat mengikutinya dengan mudah.
architecture-decision-records
280kMembuat agent Anda mencatat keputusan penting terkait struktur proyek. Membantu memahami alasan di balik pilihan dan menjaga riwayat perubahan yang jelas.
code-tour
280kMembuat agent Anda menyusun panduan kode langkah demi langkah dengan referensi file dan nomor baris yang tepat. Berguna untuk pengenalan, penjelasan, dan review.