一键导入
cc-add
Create a Claude Code rule, skill, or agent — global (~/.claude) or project-local (.claude)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a Claude Code rule, skill, or agent — global (~/.claude) or project-local (.claude)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Code review using OpenAI Codex CLI with project context (rules, diff, conventions)
Multi-perspective code review from base branch with 3 independent reviewer agents
Analyze working tree changes, map to existing commits, and create fixup commits for autosquash
Analyze working tree changes, plan logically minimal NEW atomic commits per hunk (no fixup), and execute them
Review every commit message since base branch and add reword fixups where the message needs improvement (non-interactive)
Analyze working tree changes and commit them — fixup into existing commits where appropriate, otherwise new atomic commits
| name | cc-add |
| allowed-tools | Read, Write, Glob, AskUserQuestion, Bash(ls:*), Bash(mkdir:*), Bash(pwd:*) |
| argument-hint | <rule|skill|agent> [local] args... |
| description | Create a Claude Code rule, skill, or agent — global (~/.claude) or project-local (.claude) |
$ARGUMENTS = {type} [local] {type-specific args...}
rule, skill, or agentlocal targets the project's .claude/
directory; omitted means global ~/.claude/rule: [{path-pattern}] {rule content...} — pattern is the first token
only if it starts with * or contains / or {skill: {name} {description...} — name becomes the directory nameagent: {name} {description...} — name becomes the filename (kebab-case)| Type | Global | Local |
|---|---|---|
| rule | ~/.claude/rules/{category}/{name}.md | {project-root}/.claude/rules/{category}/{name}.md |
| skill | ~/.claude/skills/{name}/SKILL.md | {project-root}/.claude/skills/{name}/SKILL.md |
| agent | ~/.claude/agents/{name}.md | {project-root}/.claude/agents/{name}.md |
For local, locate the project root first (look for .git, package.json,
Cargo.toml, deno.json, etc.).
rule: pick a category (existing global ones: tools/, git/, rust/,
ts/, i18n/, claude/, code/; create a new one when none fit — for
local, choose a category fitting THIS project) and a kebab-case
filename. If a path-pattern was given, plan paths: frontmatter.skill: core conventions, patterns, anti-patterns; frontmatter name,
description (specific enough for auto-discovery; add
disable-model-invocation: true when the skill mutates state and must
only run on explicit user invocation)agent: core purpose, model tier per rules/claude/model-selection.md,
color; frontmatter name, description, model, color---
paths: "{ path-pattern }" # only when a pattern was given
---
# Rule Title
Rule content here.
---
name: { name }
description: { Brief description ending with period }
---
## Conventions
- **Key Area**: Guidance
## Anti-patterns
- Avoid X because Y
---
name: { name }
description: { Brief description ending with period }
model: { tier per model-selection rule }
color: { blue | green | yellow | red | purple | cyan | magenta | orange | white }
---
{One-line persona/expertise statement}
## Principles
1. **Key Principle**: Explanation
## Workflow
1. **Phase**: Actions
## When Uncertain
{How to handle ambiguity}
/cc-add rule *.py Always use type annotations
→ ~/.claude/rules/python/type-annotations.md with paths: "**/*.py"/cc-add rule local src/**/*.tsx Use functional components only
→ {project-root}/.claude/rules/react/functional-components.md/cc-add skill python Python idioms and best practices
→ ~/.claude/skills/python/SKILL.md/cc-add agent local api-designer Design RESTful APIs following best practices
→ {project-root}/.claude/agents/api-designer.mdParse $ARGUMENTS and draft the appropriate file. Ask for user approval
before writing.