Community写作与编辑github.com

gener8v/gener8v.claude-skills.engineering

创建或补充项目的文档集:列出已有文档,让用户选择要添加的文档类型,从代码中收集一份共享的事实表,并行编写文档(当有多个文档时),然后检查它们之间以及与代码的一致性。当被要求“引导文档”、“启动文档”、“我们没有README或ARCHITECTURE”或“补充缺失文档”时使用。不适用于每次提交时更新现有文档(那是文档同步),也不适用于 gener8v 流水线文档(gener8v:brownfield 和 gener8v:planning 负责那些)。

gener8v.claude-skills.engineering 是什么?

该技能用于一次性批量创建或补充项目文档集。它首先对现有文档进行盘点,标记为“存在”、“薄弱”或“缺失”,然后让用户从标准文档目录中选择需要添加或修改的类型。在编写之前,它会从代码和 Git 历史中收集一份共享的事实表,确保所有文档基于一致的事实。对于超过三个文档的情况,它启动多个子代理并行编写,每个子代理负责特定文件,基于事实表和文档目录。最后,它会检查文档之间以及与代码的一致性,并将结果提交到一个分支并创建 PR。该技能支持所有主流 AI Agent 平台(如 Claude Code、Cursor 等),适用于需要为项目建立完整文档基础的场景,而不是日常文档更新。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/gener8v/gener8v.claude-skills.engineering/tree/HEAD/skills/documentation-bootstrap

Installed? Explore more 写作与编辑 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

文档引导

这是一次性的批量任务。在此之后进行更改时,请使用 engineering:documentation-sync。

1. 盘点

列出已有的文档,并将每个文档标记为存在、薄弱(存在但大部分为空或过时)或缺失。至少检查以下文档:

README.md、CONTRIBUTING.md、CHANGELOG.md、ARCHITECTURE.md 或 docs/architecture/、决策记录、CLAUDE.md、SECURITY.md、LICENSE、API 参考文档、配置参考文档、操作手册。

git ls-files '*.md' | grep -v node_modules

2. 让用户选择

显示来自 resources/doc-catalog.md 的菜单。将每种文档类型标记为存在、薄弱或缺失。标记你为这类项目推荐的类型。

  • 已存在的文档不会被重写。用户可以选择“修订”一个薄弱的文档。
  • 用户进行选择。不要编写用户未选择的文档类型。

3. 构建事实表

在任何人编写之前,收集多个文档都会用到的事实。这些事实来自代码和 Git,而不是来自记忆。将它们写入一个临时文件。

事实来源
项目名称和一句话用途README、manifest、用户
当前版本manifest、最新标签 (git describe --tags --abbrev=0)
语言、框架及其版本manifest 和 lock 文件
安装、测试、lint、构建和运行命令engineering:development-commands
组件及其名称目录结构、入口点、compose 文件
环境变量和设置.env.example 以及读取设置的代码(搜索 process.env、os.environ、getenv)
重要日期第一次提交 (git log --reverse)、标签
当前能正常工作的情况和不能正常工作的情况用户、开放的 issue

如果两个来源不一致,请询问用户。不要默默地选择其中一个。每个编写者只使用事实表和代码。

4. 编写

  • 三个文档或更少: 自行逐个编写。
  • 超过三个: 为每个文档或小组启动一个子代理,一次最多启动四个。为每个子代理提供:
    • 它负责的确切文件,以及它不得更改任何其他文件的规则;
    • 事实表;
    • 来自 resources/doc-catalog.md 的其类型的章节大纲;
    • 使用简化技术英语编写的指示(如果已安装 simple-english 技能);
    • 如果需要但未找到事实,则报告而非编造的指示。

不要编造历史、数字、用户或功能。编写“TBD”并将其列出给用户。

5. 检查集合

遵循 resources/consistency-check.md。在继续之前修复所有问题。

6. 提交

将文档放入一个分支(engineering:git-branching)并创建一个 PR(engineering:github-pr-merge)。在 PR 正文中,列出每个新文档以及需要用户回答的每个“TBD”。

相关技能

  • engineering:documentation-sync:在此之后保持这些文档的正确性。
  • gener8v:brownfield:将现有代码库接入 gener8v 流水线。它编写 .gener8v/ 上下文,而非这些项目文档。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

gener8v/gener8v.claude-skills.engineering

Find and run a project's test, lint, type-check, build and dev-server commands, read the results correctly, and seed a throwaway database when UI work needs realistic data. Never seeds the project's real or default database. Use before 'run the tests', 'lint this', 'does it build', 'start the app so I can see it', 'seed some demo data', and before you claim that a change works. Not for deployment or CI pipeline design; use the project's own deploy tooling for those.

gener8v/gener8v.claude-skills.engineering

Before a commit, find every document that describes what the change touched and update it in the same commit, or confirm in one line that no document needs a change. Catches stale text, missing documentation and facts kept in two places. Use before any commit or PR, and when asked 'are the docs up to date', 'update the docs for this change' or 'did I miss a README change'. Not for creating a documentation set or filling large gaps (documentation-bootstrap), and not for gener8v pipeline documents under .gener8v/, which the pipeline skills own.

gener8v/gener8v.claude-skills.engineering

Put work on the correct branch before the first edit. Finds the base branch, starts a well-named branch from the current remote tip, and sets up one worktree per agent for parallel work. Use at the start of any change to a tracked file, such as 'start on issue 42', 'fix this typo', 'set up branches for these three tickets', or before you start sub-agents that edit code. Not for opening or merging a PR (github-pr-merge) or for history rewrites and other risky git commands (git-safety).

gener8v/gener8v.claude-skills.engineering

Approval gate for git commands that destroy work or skip checks: force-push, --no-verify, signing bypass, reset --hard, clean -f, discarding uncommitted edits, branch or tag deletion, rewriting pushed commits and push --mirror. Each one needs the user's explicit approval at that moment; an earlier approval never carries over. Also covers a secrets check before a commit and what to do when a secret is already committed. Use before any of these commands, or when asked to 'force push', 'skip the hooks', 'throw away my changes' or 'delete that branch'. Not for normal branching (git-branching) or the PR flow (github-pr-merge).

相关技能