一键导入
add-new-skill
Creates the scaffolding for a new project-local Claude Skill
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Creates the scaffolding for a new project-local Claude Skill
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Rebase the current feature branch onto an updated main after an earlier stacked/standalone PR merged, resolving conflicts and validating before force-pushing.
Diagnose and fix a git commit hook (pre-commit, pre-push, etc.) that fails to exec even though the file exists and is executable — usually a stale /nix/store shebang path after a nix store gc.
| name | add-new-skill |
| description | Creates the scaffolding for a new project-local Claude Skill |
| allowed-tools | Read Bash |
Writing good Claude skills is half art half science, but we can facilitate the user. Whenever this skill is invoked, manually or otherwise, you should ask the user for the name of the skill (for example "Rebase conflicting branch") then proceed to create the scaffolding for a new project-local skill by adding the "slugified" directory name and empty SKILL.md:
${PROJECT_ROOT_DIR}/.claude/skills/rebase-conflicting-branch
Then, you should ask the user for a succinct description of what you want the skill to achieve,
and keep asking question until the intent clarifies. Once you are happy with the context you
have gathered, extend the SKILL.md file with the correct frontformatter syntax:
---
name: the-slugified-skill-name
description: The description you inferred, short and descriptive
allowed-tools: <any subselection of tools you want to pre-approve>
---
<the skill context as you extracted it>
Make sure the skill is focused, self-contained and useful, i.e. it's an actionable procedure, not a collection of facts. If the skill content is big, consider splitting the skill content into subsequent .md files to be placed in the slugified skill folder, and make sure these are discoverable in the skill body itself. Example:
For the full set of conventions, read `${CLAUDE_SKILL_DIR}/style-guide.md`.