Summary
为项目构建分层式LLM友好文档体系。已有项目:扫描项目结构→架构分类→生成CLAUDE.md主索引→基础模块文档→业务模块API/数据模型/坑点文档→配置文档→git变更日志(含风险评估+回滚指南)→交叉验证。新项目:解析PRD→按脚手架规范设计架构→需求拆解为开发任务→融合代码规范生成CLAUDE.md开发指南→模块…
zrt-ai-lab/opencode-skills
为项目构建分层式LLM友好文档体系。已有项目:扫描项目结构→架构分类→生成CLAUDE.md主索引→基础模块文档→业务模块API/数据模型/坑点文档→?
npx skills add zrt-ai-lab/opencode-skills --skill build-project-docs
为项目构建分层式LLM友好文档体系。已有项目:扫描项目结构→架构分类→生成CLAUDE.md主索引→基础模块文档→业务模块API/数据模型/坑点文档→配置文档→git变更日志(含风险评估+回滚指南)→交叉验证。新项目:解析PRD→按脚手架规范设计架构→需求拆解为开发任务→融合代码规范生成CLAUDE.md开发指南→模块…
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Guidance for distinctive, intentional visual design when building new UI or reshaping an existi…
866.4K installsBrowser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsReview UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "chec…
617.3K installsBuild, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and …
576.5K installsDebug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe …
568.9K installsOther skills from zrt-ai-lab/opencode-skills · top by installs.
npx skills add zrt-ai-lab/opencode-skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Parsed from SKILL.md frontmatter.
Bash(git:*,find:*,wc:*,head:*,ls:*) Read Write Edit Glob GrepFiles included with this skill beyond the listing page.
SKILL.md
5,960 B
SUMMARY.md
619 B
为项目创建完整的分层式 LLM 友好文档。支持两种模式:已有项目梳理文档、新项目从 PRD 驱动开发。
LLM上下文窗口有限,文档必须分层:
开始前先判断当前模式:
项目已有代码,需要梳理生成文档。
全新(无 .claude/docs/)→ 按顺序执行文档模式全部8个阶段。
增量(.claude/docs/ 已存在)→
.claude/docs/_progress.md——如果存在,说明上次会话中断,读取它确定:- 阶段状态:哪些阶段已完成、哪个阶段进行中、哪些待执行 - 模块进度:阶段4/5/7中哪些模块已完成、哪些待处理 - 直接跳到第一个未完成的阶段继续,不重复已完成的阶段
_progress.md 不存在,阅读现有 .claude/CLAUDE.md 和所有 .claude/docs/ 文件_progress.md 标记为已完成,如果源码比文档更新(find -newer 检测),仍需重新运行用户提到 PRD、需求文档、新项目规划、开发规范,且项目为空或新建 → 执行新项目模式5个阶段。
用户提到 PRD + 项目已有代码 → 先用文档模式梳理现有代码,再用新项目模式的阶段1-3做增量功能的需求拆解。
为已有项目梳理代码、生成分层文档。
| 阶段 | 内容 | 详细流程 |
|---|---|---|
| 1 | 项目探查 | → [phase-1-explore.md](references/docs/phase-1-explore.md) |
| 2 | 架构分类 | → [phase-2-classify.md](references/docs/phase-2-classify.md) |
| 3 | 编写 .claude/CLAUDE.md | → [phase-3-index.md](references/docs/phase-3-index.md) |
| 4 | 基础模块文档 | → [phase-4-foundation.md](references/docs/phase-4-foundation.md) |
| 5 | 业务模块文档 | → [phase-5-business.md](references/docs/phase-5-business.md) |
| 6 | 配置层文档 | → [phase-6-config.md](references/docs/phase-6-config.md) |
| 7 | 变更日志 | → [phase-7-changelog.md](references/docs/phase-7-changelog.md) |
| 8 | 交叉验证 | → [phase-8-verify.md](references/docs/phase-8-verify.md) |
执行前必须阅读对应阶段的 reference 文件。
从 PRD 出发,生成架构设计、需求拆解、开发规范、模块文档。
| 阶段 | 内容 | 详细流程 |
|---|---|---|
| 1 | PRD 解析 | → [phase-1-prd.md](references/new-project/phase-1-prd.md) |
| 2 | 架构设计 | → [phase-2-scaffold.md](references/new-project/phase-2-scaffold.md) |
| 3 | 需求拆解 | → [phase-3-breakdown.md](references/new-project/phase-3-breakdown.md) |
| 4 | 生成 CLAUDE.md 开发指南 | → [phase-4-guide.md](references/new-project/phase-4-guide.md) |
| 5 | 模块开发文档 | → [phase-5-devdocs.md](references/new-project/phase-5-devdocs.md) |
开发规范参考:
执行前必须阅读对应阶段的 reference 文件。
处理多模块时,禁止一次性处理所有模块。必须:
_progress.md → 不再引用该模块源码_progress.md)_progress.md 是全局进度文件,两种模式通用:
_progress.mdapi-{域}.mddata-model.md + pitfalls.md(文档模式)或 data-model.md + dev-checklist.md(新项目模式)详见 [principles.md](references/docs/principles.md)
根据模式检测结果,进入对应的阶段流程。每个阶段先展示结果给用户确认,再继续下一阶段。