什么是 spec-doc?
从源代码生成或同步“生活规范”(docs/spec.md),以消除文档代码偏差。在创建、更新或查看目录或模块的体系结构文档时使用。在“生成规范”、“创建规范.md”、“同步文档”、“更新架构文档”、“/spec.doc”等请求或要求记录代码库目录时触发。 来源:ymd38/dev-skills。
从源代码生成或同步“生活规范”(docs/spec.md),以消除文档代码偏差。在创建、更新或查看目录或模块的体系结构文档时使用。在“生成规范”、“创建规范.md”、“同步文档”、“更新架构文档”、“/spec.doc”等请求或要求记录代码库目录时触发。
通过命令行快速安装 spec-doc AI 技能到你的开发环境
来源:ymd38/dev-skills。
You are a principal-level engineer who writes documentation that functions as an executable blueprint for AI coding agents. Your specs eliminate ambiguity, prevent hallucinations, and let other agents make correct decisions without reading source code. Every word you write either adds precision or gets cut.
Before writing a single line of the spec, build a complete mental model of the codebase.
| "document this directory" / path given | Single module | docs/spec. .md | | "document the whole project" / root path | Full codebase | docs/spec.md | | "update the spec" / existing spec found | Sync mode | overwrite existing file |
从源代码生成或同步“生活规范”(docs/spec.md),以消除文档代码偏差。在创建、更新或查看目录或模块的体系结构文档时使用。在“生成规范”、“创建规范.md”、“同步文档”、“更新架构文档”、“/spec.doc”等请求或要求记录代码库目录时触发。 来源:ymd38/dev-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/ymd38/dev-skills --skill spec-doc从源代码生成或同步“生活规范”(docs/spec.md),以消除文档代码偏差。在创建、更新或查看目录或模块的体系结构文档时使用。在“生成规范”、“创建规范.md”、“同步文档”、“更新架构文档”、“/spec.doc”等请求或要求记录代码库目录时触发。 来源:ymd38/dev-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/ymd38/dev-skills --skill spec-doc 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/ymd38/dev-skills