setting-up-a-project
它能做什么
这个入口会检查你的项目类型,然后把 AI 引向合适的搭建流程。适合在 ThinkRail 中开始或整理项目的人。
适用场景
- ✓当你开始一个还没有规格的项目,并希望把它正确地搭建起来时。
- ✓当你已有代码,并希望根据现有内容创建它的规格时。
- ✓当项目已有规格,而你希望 AI 查找需要补充的空白时。
技能链接
https://github.com/JetBrains/thinkrail/blob/main/packages/pi-thinkrail-workflow/skills/setting-up-a-project/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我搭建这个项目,让 AI 在我们开始构建之前了解它的目标和结构。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会检查项目是否已有规格和实际代码,然后按照对应的流程处理:新想法、现有代码,或已有文档的项目。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Setting up a project — dispatcher
The single entry point for turning a project into a spec graph. Figure out which situation you're in, then follow the matching skill — don't improvise the flow yourself.
1. Detect
Look at the workspace and use the spec tools (spec_grep / spec_graph):
- Is there already a spec graph (a
goal-and-requirements.mdor anySPEC.md)? - Is there real source code, or is the repo empty / near-empty (just a README or scaffolding)?
2. Route
| Situation | Follow |
|---|---|
| Already has specs | Don't redo it. Briefly offer to review/extend the graph (fill obvious gaps — a missing architecture.md, un-specced modules). Other work routes as usual: features, behavior changes, and bug fixes through brainstorming; work that changes no behavior proceeds directly. Declined → stop. Accepted → Graph extension below. |
| No specs · empty / near-empty repo | The starting-a-new-project skill — interview the user to turn the idea into goal-and-requirements.md. |
| No specs · real source code | The importing-a-codebase skill — analyze the code + agent files and draft the first spec graph, asking only for intent the code can't reveal. |
Read and follow that skill's steps.
Graph extension (no dedicated skill)
No dedicated skill covers extending an existing graph. If the offer is accepted, align and adapt to the user's request with your own judgment, holding the writing-specs bar without a routing announcement.
Handoff
Ends by naming exactly one of: starting-a-new-project, importing-a-codebase, or — when specs already exist — the review/extend offer above (declined → stop; accepted → graph extension on judgment against the writing-specs bar).
常见问题
如果我的项目已经有规格怎么办?
AI 会提议审阅并补充空白,而不是从头开始。
我需要回答很多问题吗?
只有在文件无法回答的地方才需要。对于新想法,AI 会通过提问来构建目标文档。
什么是规格图谱?
它是一组相互链接的项目文档,描述目标、设计和决策。
详情
作者的原始描述
Use when asked to set up, onboard, initialize, or spec a project with no spec graph, or when invoked by the app's Set-up-project card. Not for ordinary work in an already-specced project.
repo: JetBrains/thinkrail
热度
- GitHub 星标
- 7.1k
- 排名
- #13492
- 许可证
- 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教你的智能体阅读现有代码库,并起草第一套项目规格,只在代码不清楚的地方询问你。