AgentSkillsCN

scaffold-update-checklist

当您需要对项目文档脚手架模板进行修改时,应使用此技能。当用户说“新增一种文档类型”、“创建一个新的模板”、“添加一项新技能”、“创建一条新命令”、“添加一位新代理”、“升级插件版本”、“更新流水线”、“修改决策流程图”、“添加迁移指南”、“更新 Cookiecutter 模板”、“同步镜像文档”、“更新 README 结构”、“新增一个文档分类”时,此功能便会自动触发。此外,当您编辑 Cookiecutter 模板目录、插件技能/命令/代理目录,或需要进行一致性检查的镜像文档位置时,此功能也会自动触发。

SKILL.md
--- frontmatter
name: scaffold-update-checklist
description: >
  This skill should be used when making changes to the project-docs scaffold
  template. Triggers when a user says "add a new document type", "create a new
  template", "add a new skill", "create a new command", "add a new agent", "bump
  the plugin version", "update the pipeline", "modify the decision flowchart",
  "add a migration guide", "update the cookiecutter template", "sync the
  mirrored docs", "update the README structure", or "add a new document
  category". Also triggers when editing files in cookiecutter template
  directories, plugin skill/command/agent directories, or mirrored doc locations
  where consistency checks are needed.

Scaffold Update Checklist

Purpose

Ensure consistency across the project-docs scaffold template when making structural or plugin changes. This project has many files that must stay in sync — mirrored copies, cross-references, counts, pipeline descriptions, and version numbers. This skill provides the checklists to avoid missing updates.

Mirrored Files

These files exist in both the project's own docs/ and in the cookiecutter template at {{cookiecutter.project_slug}}/docs/. Changes to one MUST be reflected in the other.

Always mirrored:

  • docs/README.md
  • docs/projects/README.md
  • All files in docs/projects/TEMPLATES/
  • Category READMEs: docs/architecture/README.md, docs/backlog/README.md, docs/fragments/README.md, docs/interaction-design/README.md, docs/investigations/README.md, docs/lessons-learned/README.md, docs/memories/README.md, docs/playbooks/README.md, docs/reports/README.md, docs/specifications/README.md
  • Category templates: all TEMPLATE*.md files within those directories

Structurally mirrored but content differs:

  • docs/PROJECT_MANIFESTO.md — project version is populated; cookiecutter version is an empty template skeleton

Not mirrored (project-specific):

  • docs/memories/* — session continuity for this project only
  • docs/projects/<project-name>/* — actual project work (proposals, sessions)
  • AGENTS.md and CLAUDE.md at project root (different from cookiecutter versions)

Sync procedure (cookiecutter is the source of truth):

  1. Edit the cookiecutter copy first (under {{cookiecutter.project_slug}}/)
  2. Create or update the migration guide in plugins/project-docs/skills/update-project-docs/migrations/
  3. Apply the migration to this project's own docs/ — follow the same steps end users would, to validate the guide works
  4. Run Prettier on changed files to prevent line-wrapping drift

Checklists by Change Type

Adding or Modifying a Document Type

Cookiecutter first (source of truth):

  • Create/update template in {{cookiecutter.project_slug}}/docs/projects/TEMPLATES/ (or relevant {{cookiecutter.project_slug}}/docs/<category>/)
  • Update {{cookiecutter.project_slug}}/docs/projects/README.md — folder structure example, What Goes Where, add subsection with when-to/when-not-to guidance, Templates list
  • Update {{cookiecutter.project_slug}}/docs/README.md — decision flowchart, documentation cycle string, Quick Reference, Special cases

Migration path (dogfood the update-project-docs skill):

  • Create migration guide in plugins/project-docs/skills/update-project-docs/migrations/
  • Update migration table in plugins/project-docs/skills/update-project-docs/skill.md
  • Apply the migration to this project's own docs/ — follow the same steps end users would to validate the guide works

Project-specific updates (not mirrored):

  • Update docs/PROJECT_MANIFESTO.md — pipeline references (check ALL occurrences, not just the formal cycle diagram)
  • Check if downstream skills/commands need awareness of new type (e.g., proposal-to-plan needed to learn about design-resolution.md)

Adding or Modifying a Plugin Skill

  • Create/update skill in plugins/<plugin>/skills/<skill-name>/SKILL.md
  • Bump plugin version in plugins/<plugin>/.claude-plugin/plugin.json
  • Update plugins/<plugin>/README.md — add skill documentation if user-invocable
  • Add version history entry in plugin README
  • Update docs/PROJECT_MANIFESTO.md — skill count
  • Verify skill count matches actual directories: ls plugins/<plugin>/skills/ | wc -l

Adding or Modifying a Plugin Command

  • Create/update command in plugins/<plugin>/commands/<command>.md
  • Bump plugin version in plugins/<plugin>/.claude-plugin/plugin.json
  • Update plugins/<plugin>/README.md — add command documentation section
  • Add version history entry in plugin README
  • Update root README.md — add to plugin command list
  • Update docs/PROJECT_MANIFESTO.md — command count
  • If command has a corresponding skill, ensure both exist and are consistent

Adding or Modifying a Plugin Agent

  • Create/update agent in plugins/<plugin>/agents/<agent>.md
  • Bump plugin version in plugins/<plugin>/.claude-plugin/plugin.json
  • Update plugins/<plugin>/README.md — add agent documentation
  • Add version history entry in plugin README
  • Update docs/PROJECT_MANIFESTO.md — agent count

Bumping a Plugin Version

  • Update version in plugins/<plugin>/.claude-plugin/plugin.json
  • Add version history entry in plugins/<plugin>/README.md
  • Do NOT duplicate version in .claude-plugin/marketplace.json — marketplace is discovery-only (name, source, category, tags)

Updating Pipeline or Lifecycle

Cookiecutter first:

  • Update {{cookiecutter.project_slug}}/docs/README.md — cycle string, decision flowchart, Quick Reference
  • Update {{cookiecutter.project_slug}}/docs/projects/README.md if it references the pipeline

Apply to this project via migration path:

  • Update or create migration guide if this is a structural change
  • Apply changes to project's own docs/README.md and docs/projects/README.md following the migration steps

Project-specific:

  • Update docs/PROJECT_MANIFESTO.md — ALL pipeline references (search for arrows and stage names)

Counts to Verify

When the manifesto claims specific counts, verify them against the project-docs plugin:

bash
# Commands
ls plugins/project-docs/commands/ | grep -c '.md$'

# Skills
ls plugins/project-docs/skills/ | wc -l

# Agents
ls plugins/project-docs/agents/ | grep -c '.md$'

Final Checks

  • Run npm run format:check (or npx prettier --write on changed files)
  • Verify cookiecutter copies match project-root copies
  • Grep for the old state to catch missed references (e.g., if you changed the pipeline string, grep for the old version across all .md files)
  • Meta: does this skill need updating? If new document categories were added, new mirrored file paths were introduced, new plugin components changed the count verification commands, or the sync procedure changed, update this skill at .claude/skills/scaffold-update-checklist/SKILL.md to reflect the new state