一键导入
create-skill
Scaffold a new Claude Code skill (personal or project-specific). Use when asked to create a skill, add a skill, or build a new slash command.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new Claude Code skill (personal or project-specific). Use when asked to create a skill, add a skill, or build a new slash command.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument → fix → regression-test. Use when user says "diagnose this" / "debug this", reports a bug, says something is broken/throwing/failing, or describes a performance regression.
Pre-push Claude-driven code review loop with auto-fix. Runs parallel review agents (CLAUDE.md, bugs, git history, code comments, security, test coverage, and — on substantial diffs — structural simplification and observability coverage; plus, in cycle 1 on feature work, an intent-reconciliation agent that models what the PR should do from its purpose and reconciles that against the code to catch omission bugs) per cycle, scores each finding 0-100 with an independent Haiku rater, auto-fixes ≥80 findings, asks about 50-79 in a single batch per cycle, and stores per-repo learnings in .git/info/. Each cycle first runs the static-analysis skill (a deterministic linter/security/secret tool pass with autofix) so the LLM agents can focus on what tools can't catch. On clean exit, a final manual-testing evidence gate verifies the PR carries proof the changed functionality actually works — and produces that proof itself (local dev servers + playwright + surge-image-upload) when missing — reconciles the PR description to
Run every applicable static-analysis tool on a repo — detect languages/configs, run the curated CodeRabbit-weighted analyzer set (installed or ephemerally via npx/uvx), and write results to .static-analysis/. Use when asked to run static analysis, lint the whole repo, run all linters/analyzers, do a code-quality/security scan, or check a repo before pushing. Report-only by default; --fix opts into safe autofixers. Subagent-safe (never blocks).
Drive a pull request to a mergeable state: no conflicts with the base branch, green CI, and a clean review. Integrates the base branch and resolves conflicts, delegates PR feedback resolution (human + bot/CodeRabbit) to the resolve-feedback skill, runs the local review loop, fixes failing CI (via the fix-ci skill), and pushes. Waits once for CodeRabbit's initial automatic review to land and resolves its feedback, but does not re-request reviews or wait for CodeRabbit again after later pushes (CodeRabbit reviews each PR once, on open). Use when the user wants to drive a PR forward / get it to green / make it mergeable, resolve PR comments or review feedback, fix CI, or resolve merge conflicts — even if there is no feedback yet. Drives to mergeable but does NOT merge.
Retrieve, classify, and resolve PR review feedback — inline review threads, review summaries, and generic PR comments, from humans and bots. Fixes valid feedback (committing locally), posts justifications for invalid feedback, files follow-ups for out-of-scope items, and — critically — literally marks each item resolved/dismissed on GitHub (a reply is NOT a resolution). Supports an interactive mode (prompts on human feedback) and a non-interactive/batch mode (auto-applies bot/procedural feedback, defers human feedback to the caller). Use when the user wants to resolve PR feedback / review comments / review threads, address reviewer comments, or 'resolve feedback'. This is the feedback engine that the drive-pr and pr-triage skills delegate to; it does not push, run the review loop, fix CI, or integrate the base branch — that is the caller's job.
Audit and sync all pending changes across the dotfiles and dotprivate bare repos. Use when asked to check for uncommitted changes, sync dotfiles, or commit and push dotfile updates.
| name | create-skill |
| description | Scaffold a new Claude Code skill (personal or project-specific). Use when asked to create a skill, add a skill, or build a new slash command. |
You are a skill scaffolder. You help the user design and create new Claude Code skills by gathering requirements, exploring relevant context from the codebase, and writing well-structured SKILL.md files and supporting shell scripts.
SKILL.md following established conventionsAlways prefer bash shell scripts over Python. Only use Python when:
jinja2, pandas)In all other cases, use bash. Bash scripts are simpler to maintain, have no dependency issues, and fit naturally in the shell environment.
Before writing anything, ask the user:
~/.claude/skills/{skill-name}/, available in all projects${PWD}/.claude/skills/{skill-name}/, available only in the current projectGather enough detail to write a complete SKILL.md without further interruption. Ask follow-up questions if something is unclear.
Before writing, explore any context needed to make the skill accurate:
~/.env, ~/.claude/skills/*/SKILL.md)gh, but, ynab, jq, etc.)Use ls, cat, and gh commands to gather this context. Do not write any files yet.
Create the SKILL.md in the appropriate location based on scope:
~/.claude/skills/{skill-name}/SKILL.md${PWD}/.claude/skills/{skill-name}/SKILL.mdSkills fall into two categories with different openings:
Workflow skills drive a multi-step interactive process (e.g., grooming, drive-pr). Open with a role statement so the invoker adopts the right behavior:
# {Skill Title}
You are {role description}. Your role is to {primary responsibility}.
## What You Do
...
## What You Don't Do
...
Reference/context skills load rules and conventions into context (e.g., db-migrations). Open with a plain description — direct instructions, no persona:
# {Skill Title}
This document explains {topic}. Follow these rules when {situation}.
## CRITICAL: {Constraint}
...
When in doubt: if the skill tells the invoker how to behave, it's a workflow skill. If it tells the invoker facts and rules to apply, it's a reference skill.
---
name: {skill-name}
description: "{one-sentence description of when to invoke the skill}"
---
# {Skill Title}
{Opening — see "Choosing the right opening" above}
## CRITICAL: {Important Constraint Title} (if applicable)
{Explanation of critical constraints or anti-patterns}
## Workflow (for workflow skills)
### Step 1: {Action}
{Detailed explanation. Include commands in code blocks.}
```bash
# Example command
gh issue list --state open --json number,title,updatedAt
{Continue for each step...}
| Command | Purpose |
|---|---|
cmd | description |
**Naming conventions:**
- Skill directory: `kebab-case` matching the skill name
- Script files: `kebab-case`, executable, no extension (e.g., `fetch-data`, `post-to-slack`)
- Shell script files that are sourced: `kebab-case.sh`
### Step 4: Write Supporting Shell Scripts
If the skill needs helper scripts:
1. Create the script in the same directory as the `SKILL.md` (`~/.claude/skills/{skill-name}/` or `${PWD}/.claude/skills/{skill-name}/`)
2. Make it executable: `chmod +x {script-name}`
3. Follow this structure:
```bash
#!/usr/bin/env bash
set -euo pipefail
# Source credentials if needed
source ~/.env 2>/dev/null || true
# Validate required env vars
if [[ -z "${SOME_VAR:-}" ]]; then
echo "ERROR: SOME_VAR not set in ~/.env" >&2
exit 1
fi
# Main logic here
Script conventions:
set -euo pipefail at the top~/.env for credentials=== SECTION_NAME ===
{one JSON object per line}
& + wait) for multiple API calls$(mktemp -d) with trap 'rm -rf "$tmpdir"' EXITIf the skill needs reference data (API IDs, category mappings, config):
references/ subdirectory alongside the SKILL.md.md files with structured reference dataSKILL.mdAfter writing files:
# Personal skill:
ls -la ~/.claude/skills/{skill-name}/
# Project-specific skill:
ls -la ${PWD}/.claude/skills/{skill-name}/
SKILL.md contentMake any requested changes before concluding.
Skills are auto-discovered from both ~/.claude/skills/ and ${PWD}/.claude/skills/. No manual registration required — the system picks them up automatically on next invocation.
Inform the user: "The skill is ready. Use /{skill-name} to invoke it."
daily-standup for complex data fetching, grooming for session state, and slack-notify for simple webhook posting.SKILL.md focused and opinionated. Vague instructions lead to inconsistent behavior.**CRITICAL** or **IMPORTANT** for constraints that must never be violated.fetch-standup-data.sh) over duplicating logic.