用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/samhwang/me.samh.page --skill update-docs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | update-docs |
| description | Audit and update all project documentation to reflect recent changes |
Audit and update all project documentation to reflect recent code changes, ensuring docs stay in sync with the codebase.
When user asks to:
Also trigger automatically when:
| Location | Content | Key Sections |
|---|---|---|
README.md | Project overview, tech stack, quick start | Entry point, links to docs/ |
docs/ | Developer-facing docs (Diataxis framework) | How-to guides, reference, explanation |
AGENTS.md | Agent control manifest | Project structure, tech stack, available skills/rules, commands |
.agents/rules/ | Domain-specific guidelines | Code style, patterns, commands, testing, deployment, communication |
.agents/skills/ | Task-specific toolkits | Each skill's SKILL.md |
Determine the scope of changes to review:
# If user specifies a range, use it. Otherwise, find recent changes:
git log --oneline --since="2 weeks ago"
git log --oneline HEAD~20..HEAD
# Get a summary of what changed:
git diff --stat <range>
Ask the user for a commit range if not provided. Default to the last 20 commits or 2 weeks, whichever is smaller.
Group changes by their documentation impact:
For each category, note which documentation locations are affected using the mapping:
| Change Type | Docs to Check |
|---|---|
| New resume section | docs/how-to/02-add-resume-section.md, docs/reference/02-project-structure.md |
| New component | docs/reference/02-project-structure.md |
| New dependency | README.md, AGENTS.md (tech stack), docs/reference/01-commands.md |
| New pnpm script | docs/reference/01-commands.md, .agents/rules/commands.md |
| New route | docs/reference/02-project-structure.md, AGENTS.md |
| New design token | docs/reference/03-design-tokens.md |
| New skill/rule | AGENTS.md (available skills/rules) |
| Test changes | .agents/rules/testing.md |
| Deployment change | docs/explanation/01-architecture.md, .agents/rules/deployment.md |
| Build config change | docs/reference/01-commands.md, .agents/rules/commands.md |
| Styling change | docs/reference/03-design-tokens.md, .agents/rules/patterns.md |
For each affected documentation file:
Pay special attention to:
package.json?)panda.config.ts?)Update each affected file following these principles:
.agents/rules/communication.mdReview all changes for:
docs/index.md links are current and complete# Verify commands still work
pnpm typecheck
pnpm lint
README.md checked (entry point still accurate)docs/ files checked and updated for affected topicsdocs/index.md links verifiedAGENTS.md checked: project structure, tech stack, skills, rules, commands.agents/rules/ checked for affected rules.agents/skills/ checked for affected skillspnpm lint (for any code-adjacent changes)The docs/ directory follows the Diataxis framework. Each document must serve one primary purpose:
| Type | Purpose | Question It Answers |
|---|---|---|
| How-to guide | Goal-oriented steps | "How do I...?" |
| Reference | Information-oriented lookup | "What is...?" |
| Explanation | Understanding-oriented discussion | "Why...? Can you tell me about...?" |
| Tutorial | Learning-oriented guided experience | "Can you teach me to...?" |
Current docs/ structure:
how-to/: 01-quick-start, 02-add-resume-sectionreference/: 01-commands, 02-project-structure, 03-design-tokensexplanation/: 01-architectureWhen updating docs, do not mix content types. Move how-to steps out of reference docs, move reference tables out of explanation docs, etc.
Every mention of an external tool, framework, pattern, or standard must include a hyperlink on first mention per document.
docs/ files unless a major new feature clearly warrants one.docs/ files are numbered for ordering. If a new file is needed, pick the next available number.AGENTS.md is the most frequently impacted file since it tracks project structure, tech stack, and available skills/rules.基于 SOC 职业分类