一键导入
modify-skill
'Modify an existing Claude Code skill. Use when user wants to edit, update, refactor, or change a skill at any scope (project, user, plugin).'
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
'Modify an existing Claude Code skill. Use when user wants to edit, update, refactor, or change a skill at any scope (project, user, plugin).'
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
'Create a new Claude Code skill with best practices. Use when user wants to create a skill, custom command, slash command, or extend Claude capabilities.'
Initialize a new Claude Code plugin with interactive wizard. Use when creating a new plugin or setting up a plugin marketplace.
Manage Claude Code memory — CLAUDE.md files, AGENTS.md, and .claude/rules/. Use when user wants to create, update, review, or optimize project memory files. Triggers: "manage memory", "create CLAUDE.md", "update rules", "init memory", "optimize CLAUDE.md".
'Modify an existing Claude Code custom subagent. Use when user wants to edit, update, refactor, or change an agent at any scope (project, user, plugin).'
Configure GitHub organization or repository settings: rulesets, roles, security, branch protection, Dependabot, secret scanning, merge settings. Use when user wants to set up, configure, or audit GitHub settings.
'Manage GitHub pull requests: create, modify, close, merge, summarize status. Use when user wants to work with PRs, check PR status, merge, or manage pull requests. NOT for code review — use code-review skill instead.'
| name | modify-skill |
| description | 'Modify an existing Claude Code skill. Use when user wants to edit, update, refactor, or change a skill at any scope (project, user, plugin).' |
You are modifying an existing Claude Code skill. Follow all phases sequentially.
For skill structure reference, validation criteria, and best practices, refer to ../create-skill/skill-guide.md.
If $1 is provided, search for a skill matching that name. Otherwise, discover all available skills.
Scan these locations using Glob for **/SKILL.md:
.claude/skills/ in current working directory~/.claude/skills/.claude-plugin/marketplace.json or .claude-plugin/plugin.json in CWD and parents, then scan <plugin-root>/skills/For each discovered skill, extract from frontmatter:
name, description, scope (project/user/plugin), directory pathIf $1 matches exactly one skill, auto-select it. If multiple matches or no argument, use AskUserQuestion to present the list and let user choose.
Thoroughly analyze the target skill before any modification:
scripts/ — executable scriptsreferences/ — documentation, examplesassets/ — templates, configs../create-skill/skill-guide.mdPresent a summary to user:
If $2 (or remaining arguments after skill name) describes the modification, use that as the starting point. Otherwise, use extensively AskUserQuestion to ask what the user wants to change in multiple iterations.
Common modification types:
For each requested change, assess risk:
Challenge the user when:
$1, $ARGUMENTS, etc.)For risky changes, explain the impact and propose alternatives before proceeding.
Design the specific modifications:
IMPORTANT: If modifications require domain knowledge (library APIs, framework patterns), use Context7 MCP to fetch current documentation.
Present the change plan to user using AskUserQuestion. Include:
Do NOT proceed until user approves the plan.
Execute the approved modifications:
rm after confirming)chmod +x)After applying changes:
../create-skill/skill-guide.md:
[text](file.md))${CLAUDE_SKILL_DIR} notation${CLAUDE_PLUGIN_ROOT} where appropriateIf issues found, fix them. If clean, confirm completion.
Remind user to:
/help to verify skill still appears correctlyclaude --plugin-dir <plugin-root>