一键导入
write-docs
Use when someone asks to document a change, write docs for a feature, write documentation for this, or document what I just did.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when someone asks to document a change, write docs for a feature, write documentation for this, or document what I just did.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when someone wants to create or update an understand-project skill for the current project, generate project onboarding context, document the project structure for future Claude sessions, or refresh an outdated understand-project skill.
Use when creating new skills, optimizing existing skills, or auditing skill quality. Guides skill development following Claude Code official best practices.
Use when someone asks to review their UI, audit their frontend design, improve their website's design or layout, suggest UI/UX improvements, or enhance the visual styling of their frontend. Also triggers on phrases like "review my UI", "improve my frontend design", "audit my design", or "make my website look better".
Use when someone wants to add a project to their portfolio, generate a portfolio entry for the current project, document a project for the portfolio website, or update the portfolio with a new project.
Generate 8 chamber layouts for a tileset and write chambers.json. Run multiple instances in parallel for different tilesets.
Use when adding a new enemy, implementing enemy animations, setting up a new enemy type, or onboarding new enemy sprites into the game.
| name | write-docs |
| description | Use when someone asks to document a change, write docs for a feature, write documentation for this, or document what I just did. |
| argument-hint | ["description of the change to document"] |
Reads the git diff, identifies the relevant change, and produces a developer-facing markdown doc covering what changed, why it exists, and how to use it — then waits for approval before writing the file.
Check if a /docs directory exists. If it does, read 1-2 existing files to establish the tone, formatting conventions, and heading structure used. Note these for use in Step 4.
Run git diff HEAD to get unstaged changes. If empty, run git diff HEAD~1 to get the last commit. Also run git log -1 --pretty=%B to get the most recent commit message.
Use (if provided) or the commit message to identify which part of the diff to document. If the diff contains multiple distinct changes and it's ambiguous which one the user means, ask before proceeding.
The relevant change is what drives the entire document — don't document unrelated parts of the diff.
Produce a markdown document with this structure:
# [Feature or Change Name]
## Overview
[1-2 sentence explanation of what this is and what problem it solves]
## What Changed
[Concise description of the change — new function, new flag, new config option, etc.]
## Why It Exists
[The motivation — derive from the commit message, user's description, or code context. If unclear, note that and ask.]
## Usage
[Code example showing how to use the feature]
## [Additional sections as needed — e.g. Configuration, Parameters, Caveats]
Rules:
Present the full draft to the user. Tell them the file will be written to /docs/[feature-name].md.
Ask: "Does this look good? I'll write the file once you confirm."
Do NOT write the file until the user approves. If they request edits, revise and re-present.
Derive the filename from the feature name: lowercase, hyphens, .md extension (e.g. verbose-flag.md, auth-middleware.md).
Check if /docs/[filename].md already exists. If it does, warn the user before overwriting.
Write the approved content to /docs/[feature-name].md.
Confirm: "Written to /docs/[feature-name].md."
/docs directory unless the user confirms they want one.