trellis-spec-bootstrap
它能做什么
该技能根据实际代码构建项目的编码指南文件。适合希望为 AI 智能体提供准确、针对本项目规则的团队。
适用场景
- ✓当你开始使用 Trellis,需要为代码库编写编码指南的时候。
- ✓当项目的规格文件缺失、过时,或仍然充满模板文字的时候。
- ✓当代码库发生了很大变化,指南需要刷新的时候。
技能链接
https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-spec-bootstrap/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请根据真实的代码为这个代码仓库创建编码指南,附上示例,并且不要留下占位文字。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会使用代码工具和直接阅读源代码的方式分析仓库结构,确定包和层的边界,编写带有文件路径和示例的具体指南文件,并检查是否残留占位内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Trellis Spec Bootstrap
Use this skill to create or refresh .trellis/spec/ guidelines from the real codebase. One capable agent owns the full loop: analyze the repository, choose the spec boundaries, write the docs, and verify the result. The workflow does not depend on a specific host, CLI, or agent brand.
Workflow
- Confirm Trellis is initialized and inspect the current
.trellis/spec/tree. - Analyze the repository architecture with the best available tools: GitNexus, ABCoder, language tooling, and direct source reads.
- Decompose the spec work by package and layer only when that reflects the actual codebase.
- Fill or reshape the spec files with concrete patterns, file paths, examples, and anti-patterns from the project.
- Verify that the final specs are internally consistent and contain no template placeholders.
Reference Routing
| Need | Read |
|---|---|
| Repository architecture analysis | references/repository-analysis.md |
| Spec work decomposition and task planning | references/spec-task-planning.md |
| Writing high-signal Trellis spec files | references/spec-writing.md |
| GitNexus and ABCoder MCP setup | references/mcp-setup.md |
Operating Rules
- Treat templates as starting points, not contracts. Delete, rename, split, or add spec files when the repository calls for it.
- Prefer source-backed rules over generic advice. Every important recommendation should point at a real file or repeated local pattern.
- Keep execution single-owner by default. Optional helper agents are an implementation detail, not a requirement or user-visible dependency.
- Do not write platform-specific instructions unless the target project already standardizes on that platform.
- Do not leave placeholder text, empty headings, or copied boilerplate in
.trellis/spec/.
Done Criteria
.trellis/spec/describes the project as it exists now.- Each relevant package or layer has practical coding guidance with real examples.
- Non-applicable template sections are removed.
index.mdfiles match the final spec file set.- Any required setup or analysis assumptions are documented in the relevant spec or task notes.
常见问题
它会保留模板文字吗?
不会。该技能把模板视为起点,并删除占位文字。
它使用哪些工具分析代码?
它使用可用的工具,例如 GitNexus 和 ABCoder,以及语言工具和直接的源代码阅读。
它需要特定的 AI 产品吗?
不需要。该工作流与平台无关,由一个能力足够的智能体即可运行。
详情
作者的原始描述
Bootstrap project-specific Trellis coding specs with a platform-neutral single-agent workflow. Use when creating or refreshing .trellis/spec guidelines, analyzing a codebase with GitNexus, ABCoder, or source inspection, decomposing package/layer spec work, and writing real codebase-backed spec docs without placeholder text.
repo: mindfold-ai/Trellis
热度
- GitHub 星标
- 15k
- 排名
- #11033
- 许可证
- AGPL-3.0
- 更新时间
- 2026/9/29
评论
- …
同一仓库的更多技能
first-principles-thinking
15k帮你的智能体把计划或设计拆解为基本事实,再由此向上推理来检验它,而不是依赖习惯或惯例。
python-design
15k帮你的智能体编写和审阅 Python 命令行脚本,使其模块清晰、接口简单,并减少隐藏的复杂性。
trellis-before-dev
15k帮你的智能体在开始编写代码之前,阅读项目的编码指南和任务说明,使其遵循团队的惯例。
trellis-brainstorm
15k帮你的智能体每次提出一个有价值的问题、检查代码并就狭窄的范围达成一致,从而厘清新功能或不明确的任务。