simplify

GitHub

通过调用 cdd-code-simplifier 代理审查并简化代码,以提升清晰度、一致性和可维护性。支持指定范围或自动检测最近修改的文件,并在完成后提供摘要及提交建议。

.claude/skills/simplify/SKILL.md aaddrick/claude-desktop-debian

Trigger Scenarios

用户希望简化代码以提高可读性或维护性 用户通过 /simplify 命令触发代码简化任务

Install

npx skills add aaddrick/claude-desktop-debian --skill simplify -g -y
More Options

Non-standard path

npx skills add https://github.com/aaddrick/claude-desktop-debian/tree/main/.claude/skills/simplify -g -y

Use without installing

npx skills use aaddrick/claude-desktop-debian@simplify

指定 Agent (Claude Code)

npx skills add aaddrick/claude-desktop-debian --skill simplify -a claude-code -g -y

安装 repo 全部 skill

npx skills add aaddrick/claude-desktop-debian --all -g -y

预览 repo 内 skill

npx skills add aaddrick/claude-desktop-debian --list

SKILL.md

Frontmatter
{
    "name": "simplify",
    "description": "Manually trigger the cdd-code-simplifier agent to review and simplify code",
    "disable-model-invocation": true
}

Run the cdd-code-simplifier agent to review and simplify code for clarity, consistency, and maintainability.

Your Task

Use the Task tool with subagent_type: "cdd-code-simplifier" to run the code simplifier.

Scope determination:

  1. If guidance was provided after /simplify, pass it to the agent as part of the prompt
  2. If no guidance provided, have the agent focus on recently modified files (use git diff --name-only main...HEAD or git status to identify them)

User guidance: $ARGUMENTS

After the agent completes:

  1. Review the changes made
  2. If changes were made, ask if the user wants to commit them
  3. Provide a brief summary of what was simplified

Examples

  • /simplify - Simplify recently modified files
  • /simplify focus on build.sh error handling - Simplify with specific guidance
  • /simplify only look at the new functions I added - Narrow the scope

Version History

  • 55478e3 Current 2026-08-20 14:08

Same Skill Collection

.claude/skills/lint/SKILL.md
.claude/skills/setup-build-tools/SKILL.md

Metadata

Files
0
Version
55478e3
Hash
6a42e285
Indexed
2026-08-20 14:08

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-26 00:59
浙ICP备14020137号-1 $방문자$