writing-specs
它能做什么
这个技能为 AI 提供一套编写项目规格文档的规则。它会让文档保持简短,清楚标记未确认的内容,并避免空话。适合把设计文档与代码放在一起维护的团队。
适用场景
- ✓当 AI 起草或修改目标、架构或模块规格文档时。
- ✓当规格中包含需要标记为未确认的猜测内容时。
- ✓当你希望项目文档能让未来的读者快速理解时。
技能链接
https://github.com/JetBrains/thinkrail/blob/main/packages/pi-thinkrail-workflow/skills/writing-specs/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请重写我们的架构文档,让它更简短,并且只包含我们已经确认的决策。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能设定了这些规则:文档保持简短,只包含已确定的内容,猜测内容要就地标记,新草稿在人工审阅之前保持标记状态。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Writing Specs
The workflow family's shared bar for every spec a workflow produces: short, honest, on-rails.
Process skills name this concept at the steps that draft or revise specs; what to draft and when
stays with the referencing skill. Graph mechanics — frontmatter, link kinds, the spec_* tools — are
the spec-graph skill's ground; this concept carries the quality bar the family holds on top of them,
and is where the family's rules for specs and the spec graph accrue.
Short
- Small enough to read in one sitting. Target signal, not completeness.
- Explain intent, not inventory: what the thing is for, what it owns, where its boundary runs — never a file listing or a restatement of the code.
Honest
- Only settled content appears. Never pad with
[TBD]or placeholder sections — a section that hasn't been settled simply doesn't exist yet. - Anything inferred rather than confirmed is marked unconfirmed, inline, where it stands.
- New and inferred specs are
status: draftuntil the user has reviewed them — the flip out ofdraftfollows the user's review, never the drafting agent's own judgment. A reviewed durable spec goesactive, neverdone: it stays in force and evolves with the project.
On-rails
- High-signal enough that a future agent (or human) lands on the decisions without re-deriving them.
- The spec is the only home for rationale: decisions, invariants, trade-offs, and bug post-mortems are recorded here, never as code comments — a rationale paragraph found in code is content to promote into the owning spec, leaving at most a one-line pointer where misediting would silently break something.
- Say each thing once: link by
idinstead of restating; the dependency edges between sibling modules live in the parent's spec, not in each leaf. - One spec per genuine boundary — not per directory, not per file.
The goal doc describes the product, not a plan
goal-and-requirements is the living record of what the product is and why: its goal, problem,
audience, capabilities, and non-goals, plus any durable principles.
- No versions, releases, phases, MVP/v1/v2 splits, or "later" lists. Sequencing is not a spec's job: an idea cut from scope goes back to the user to track wherever they plan work, and never into the doc.
- Capabilities state what the product does, or for a new project what its smallest useful first build will do.
- Non-goals hold only what is excluded by decision. Something neither listed nor excluded is open, not forbidden.
- It evolves with the product: a change that adds a capability or overturns a principle updates the goal doc in the same change.
常见问题
规格里可以有占位章节吗?
不可以。尚未确定的章节会被省略,而不是用占位内容填充。
谁来决定规格是否定稿?
在你审阅之后由你决定。AI 不会把自己的草稿标记为已批准。
它会逐行描述代码吗?
不会。规格说明意图和边界,而不是列出文件清单。
详情
作者的原始描述
Use when a workflow step drafts or revises a spec artifact — a goal-and-requirements, an architecture, or a module SPEC — or when a workflow skill names it at such a step. The shared quality bar for specs — not a workflow, nothing to execute.
repo: JetBrains/thinkrail
热度
- GitHub 星标
- 7.1k
- 排名
- #13495
- 许可证
- 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教你的智能体阅读现有代码库,并起草第一套项目规格,只在代码不清楚的地方询问你。