一键导入
write-skill
Create a new Claude Code skill. Use when the user asks to write, create, or make a skill, slash command, or custom command for Claude Code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a new Claude Code skill. Use when the user asks to write, create, or make a skill, slash command, or custom command for Claude Code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Measure and shrink a Haskell/cabal project's build critical path with the ghc-build-stats GHC plugin + analyzer. Use when a build is slow, won't get faster with more cores, or you want to know which modules gate compilation and how to decouple them so more modules compile in parallel.
General Nix language and tooling guidance. Use when writing nix expressions, searching for nix functions or packages, debugging nix builds, or working with nixpkgs overlays, overrides, and shell.nix / default.nix files. Does NOT cover CI — see the ci-nix skill for nix/ci.nix and GitHub Actions.
Complexity canary: use haiku to verify code is understandable in isolation. Use as a standard review step after writing non-trivial code, after completing a feature, or when asked to "dumbify", "simplify for AI", or "review for complexity". Also trigger proactively when you've just written functions with 6+ parameters, 40+ lines, or deep nesting.
Fix CSS styling issues by visually comparing before/after screenshots. Use when the user reports visual alignment, spacing, margin, or padding problems on a web page. Also trigger when asked to fix layout issues, element spacing, or visual inconsistencies in CSS.
Create or update a GitHub pull request. Use when you need to open a PR, when the user asks for a PR, or after completing work that should be submitted as a pull request. Handles stale/closed/merged PRs automatically by checking remote state before acting — never relies on memory of PR state.
Bypass Anubis PoW bot-check pages using Playwright MCP. Trigger when navigating to a site blocked by Anubis ('Making sure you are not a bot!', 'Oh noes!', Anubis challenge page). Also invocable as /anubis-bypass <url>.
| name | write-skill |
| description | Create a new Claude Code skill. Use when the user asks to write, create, or make a skill, slash command, or custom command for Claude Code. |
| argument-hint | <skill-name> [description] |
You are creating a new skill for Claude Code. Read the reference below thoroughly, then build the skill the user described.
Before writing anything, determine:
$ARGUMENTS[0], or ask the user. Must be lowercase letters, numbers, and hyphens only (max 64 chars).$ARGUMENTS[1..] or ask the user.~/.claude/skills/<name>/SKILL.md) — available across all projects for this user..claude/skills/<name>/SKILL.md) — committed to version control, shared with the team.disable-model-invocation: true) — for workflows with side effects like deploy, commit, send messages.user-invocable: false) — for background knowledge/context.context: fork) — runs in isolation, no conversation history. Good for heavy tasks. Optionally set agent: Explore, agent: Plan, agent: general-purpose, or a custom agent name.$ARGUMENTS, $ARGUMENTS[N], or $N placeholders.!`command` syntax for shell commands that run before the prompt is sent.Create the directory and write the file. Follow this structure:
--- markers)All fields are optional. Only description is recommended.
| Field | Description |
|---|---|
name | Display name. If omitted, uses directory name. Lowercase, numbers, hyphens only, max 64 chars. |
description | What the skill does and when to use it. Claude uses this to decide when to load it automatically. |
argument-hint | Hint shown during autocomplete. Example: [issue-number] or [filename] [format]. |
disable-model-invocation | true to prevent Claude from auto-loading. For manual /name invocation only. |
user-invocable | false to hide from / menu. For background knowledge Claude loads when relevant. |
allowed-tools | Tools Claude can use without permission when this skill is active. E.g. Read, Grep, Glob. |
model | Model to use when skill is active. |
effort | Effort level: low, medium, high, max. |
context | fork to run in an isolated subagent. |
agent | Subagent type when context: fork. Options: Explore, Plan, general-purpose, or custom agent. |
hooks | Hooks scoped to this skill's lifecycle. |
The body contains instructions Claude follows when the skill is invoked. Two types:
disable-model-invocation: true.| Variable | Description |
|---|---|
$ARGUMENTS | All arguments passed when invoking. |
$ARGUMENTS[N] | Specific argument by 0-based index. |
$N | Shorthand for $ARGUMENTS[N]. |
${CLAUDE_SESSION_ID} | Current session ID. |
${CLAUDE_SKILL_DIR} | Directory containing the SKILL.md file. |
Use !`command` to run shell commands before the skill content is sent to Claude:
## Current branch info
- Branch: !`git branch --show-current`
- Status: !`git status --short`
The command output replaces the placeholder. This is preprocessing — Claude only sees the result.
For complex skills, keep SKILL.md under 500 lines. Move detailed reference material to separate files:
my-skill/
├── SKILL.md # Main instructions (required)
├── reference.md # Detailed docs (loaded when needed)
├── template.md # Template for Claude to fill in
├── examples/
│ └── sample.md # Example output
└── scripts/
└── helper.sh # Script Claude can execute
Reference them from SKILL.md so Claude knows when to load them:
## Additional resources
- For complete API details, see [reference.md](reference.md)
- For usage examples, see [examples.md](examples.md)
After writing the skill:
/skill-name or by asking something that matches the description).disable-model-invocation: true for anything with side effects (deploy, commit, send messages, delete).context: fork for heavy tasks that don't need conversation history.allowed-tools to restrict what Claude can do (e.g. read-only skills).plugin-name:skill-name namespace.