跳到正文
Skillpedia
通用编程15k · #11033

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-spec-bootstrap/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Confirm Trellis is initialized and inspect the current .trellis/spec/ tree.
  2. Analyze the repository architecture with the best available tools: GitNexus, ABCoder, language tooling, and direct source reads.
  3. Decompose the spec work by package and layer only when that reflects the actual codebase.
  4. Fill or reshape the spec files with concrete patterns, file paths, examples, and anti-patterns from the project.
  5. 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.md files 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能