spec-graph
하는 일
이 스킬은 AI가 동작, 경계, 설계 선택을 바꾸기 전에 프로젝트의 명세 문서를 찾아보게 합니다. 코드가 바뀌면 문서도 정확하게 유지합니다. 작성된 명세를 기준 자료로 삼는 팀을 위한 것입니다.
사용하는 경우
- ✓변경이 문서화된 경계, 계약, 아키텍처 결정에 영향을 줄 수 있을 때.
- ✓프로젝트 명세에 따라 어떤 부분이 어떻게 설계되었는지 설명받고 싶을 때.
- ✓변경이 기록된 결정과 충돌해서 명세를 갱신해야 할 때.
스킬 링크
https://github.com/JetBrains/thinkrail/blob/main/packages/spec-graph/skills/spec-graph/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“결제 방식을 바꾸기 전에 프로젝트 명세를 확인하고, 이 변경이 영향을 주는 결정이 무엇인지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 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
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
asking-user-questions
7.1k에이전트가 명확한 질문과 좋은 답변 선택지를 여러 차례에 나눠 제시해, 열린 사항이 정리될 때까지 묻도록 가르칩니다.
brainstorming
7.1k에이전트가 구현 전에 기능, 동작 변경, 버그 수정을 함께 이야기하고, 합의한 설계를 기록하도록 돕습니다.
choosing-a-workflow
7.1k에이전트가 새 프로젝트, 풀 리퀘스트, 제품 기능 변경에 맞는 ThinkRail 워크플로를 고르도록 돕습니다.
importing-a-codebase
7.1k에이전트가 기존 코드베이스를 읽고 첫 프로젝트 명세 초안을 작성하도록 가르칩니다. 코드가 불분명한 부분만 질문합니다.
비슷한 스킬
technical-documentation
394k에이전트가 명확한 기술 문서와 에이전트 지침 파일을 작성하고 검토하도록 도와, 사람과 AI 도구가 쉽게 따를 수 있게 합니다.
architecture-decision-records
280k에이전트가 프로젝트 구조에 관한 중요한 결정을 기록하도록 합니다. 선택의 이유를 이해하고 변경 이력을 명확히 유지하는 데 도움이 됩니다.
code-tour
280k에이전트가 정확한 파일과 줄 번호를 참조하는 단계별 코드 안내를 만들도록 합니다. 소개, 설명, 리뷰에 유용합니다.