Analyzes code review feedback or development issues, extracts general rules, and updates CLAUDE.md with concise summaries and detailed documentation.
Ships in utility-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyzes code review feedback or development issues, extracts general rules, and updates documentation with a layered strategy (summary in CLAUDE.md, details in docs/CODING_RULES.md).
CLAUDE.md must stay concise. Summary rules only, 1-2 sentences each.
| Document | Content | Line Limit |
|---|---|---|
CLAUDE.md | Core summary rules (1-2 sentences) | ≤ 300 lines |
docs/CODING_RULES.md | Detailed rules + error/correct examples | No limit |
docs/FEATURE_FLOWS.md | Feature flow documentation | No limit |
$ARGUMENTS: Description of the discovered issue or rule (optional)Use Bash to check EXTEND.md existence (priority order):
# Check project-level first
test -f .tuzi-skills/tuzi-update-claude-md/EXTEND.md && echo "project"
# Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.tuzi-skills/tuzi-update-claude-md/EXTEND.md" && echo "user"
┌──────────────────────────────────────────────────────────┬───────────────────┐ │ Path │ Location │ ├──────────────────────────────────────────────────────────┼───────────────────┤ │ .tuzi-skills/tuzi-update-claude-md/EXTEND.md │ Project directory │ ├──────────────────────────────────────────────────────────┼───────────────────┤ │ $HOME/.tuzi-skills/tuzi-update-claude-md/EXTEND.md │ User home │ └──────────────────────────────────────────────────────────┴───────────────────┘
┌───────────┬───────────────────────────────────────────────────────────────────────────┐ │ Result │ Action │ ├───────────┼───────────────────────────────────────────────────────────────────────────┤ │ Found │ Read, parse, apply settings │ ├───────────┼───────────────────────────────────────────────────────────────────────────┤ │ Not found │ Use defaults │ └───────────┴───────────────────────────────────────────────────────────────────────────┘
EXTEND.md Supports: CLAUDE.md line limit | Rule categories | Commit message format
If $ARGUMENTS provided: Parse the described issue or rule.
If no arguments: Ask user what issue was discovered, or check recent git diff and commit messages:
git diff HEAD~3 --stat
git log --oneline -5
| Priority | Criteria | Action |
|---|---|---|
| High | Frequent error pattern, causes serious bugs, core project convention | Add to both CLAUDE.md + CODING_RULES.md |
| Normal | Occasional issue, scenario-specific, detailed examples | Only CODING_RULES.md |
| Skip | One-off typo, overly specific business logic, already covered | Do not record |
wc -l CLAUDE.md
If over 250 lines, prompt user to clean up before adding.
Add to the appropriate section using this format:
### [Issue Title]
**Scenario**: [When this issue occurs]
❌ **Wrong**:
\`\`\`typescript
// incorrect code
\`\`\`
✅ **Correct**:
\`\`\`typescript
// correct code
\`\`\`
**Reason**: [Why]
Section categories: TypeScript | React Components | Service Worker | Cache & Storage | API & Task Processing | UI Interaction
Add 1-2 sentence summary only:
N. **Rule Name**: Brief description (1-2 sentences)
Location: Under ## 核心编码规则 or equivalent section.
Display summary:
## Documentation Updated
### docs/CODING_RULES.md
- Section: [section name]
- Added: [rule description]
- Includes: Error/correct examples + explanation
### CLAUDE.md (if applicable)
- Section: [section name]
- Added summary: [rule summary]
### Document Status
- CLAUDE.md: XXX lines (limit 300) ✅/⚠️
- CODING_RULES.md: XXX lines
git add CLAUDE.md docs/CODING_RULES.md
git commit -m "docs: add coding rule - [rule name]"
When CLAUDE.md approaches 300 lines:
# With argument
/tuzi-update-claude-md Claude keeps forgetting to add theme='light' to TDesign Tooltip
# Interactive
/tuzi-update-claude-md
Custom configurations via EXTEND.md. See Preferences section for paths and supported options.
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/tuzi-compress-image将图片压缩为 WebP(默认)或 PNG 格式,自动选择压缩工具。当用户要求"压缩图片"、"优化图片"、"转换为webp"或减小图片文件大小时使用。/tuzi-danger-x-to-markdown将 X (Twitter) 推文和文章转换为带 YAML front matter 的 Markdown。使用逆向工程 API,需要用户同意。当用户提到"X转markdown"、"保存推文"、或提供 x.com/twitter.com 链接时使用。/tuzi-format-markdown格式化纯文本或 Markdown 文件,添加 frontmatter、标题、摘要、小标题、加粗、列表和代码块。当用户要求"格式化markdown"、"美化文章"、"添加格式"或改善文章排版时使用。输出到 {filename}-formatted.md。/tuzi-markdown-to-html将 Markdown 转换为带样式的 HTML,支持微信公众号兼容主题。支持代码高亮、数学公式、PlantUML、脚注、提示框和信息图。当用户要求 "markdown to html"、"md转html"、"转换为html" 时使用。/utility-skills:tuzi-update-claude-mdfrom utility-skills
npx claudepluginhub tuziapi/tuzi-skills --plugin utility-skillsOther plugins' skills for the same job