Master Claude Code for coding tasks. Includes setup scripts, dev team subagents (starter pack or full team), self-improving learning system, diagnostics, and troubleshooting.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install claude-code-mastery或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install claude-code-mastery⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/claude-code-mastery/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: claude-code-mastery version: "1.4.3" description: "Master Claude Code for coding tasks. Includes setup scripts, dev team subagents (starter pack or full team), self-improving learning system, diagnostics, and troubleshooting." author: "Clawdbot Community" license: "MIT" metadata: {"openclaw":{"emoji":"🧑💻"}} ---
Complete skill for setting up, optimizing, and mastering Claude Code with a full development team of subagents.
Official Docs: https://code.claude.com/docs
---
Run this first:
command -v claude >/dev/null && echo "✅ Claude Code installed - SKIP to 'Daily Use' section" || echo "❌ Not installed - follow 'First-Time Setup' below"
If Claude Code is already installed, skip directly to the "Daily Use" section below.
---
> Note to bot: Only follow this section if Claude Code is NOT installed. Check with the command above. Once setup is complete, this section can be ignored on future invocations.
Run these in order:
cd ~/clawd/skills/claude-code-mastery/scripts
# 1. Check dependencies
./01-check-dependencies.sh
# 2. Install Claude Code
./02-install-claude-code.sh
# 3. Authenticate
./03-first-time-auth.sh
# 4. Install dev team subagents
./04-install-subagents.sh # Starter pack (3 agents) - recommended
./04-install-subagents.sh --full-team # All 11 agents
# 5. (Optional) Persistent memory - prompts y/N, default No
./05-setup-claude-mem.sh # Interactive prompt
./05-setup-claude-mem.sh --skip # Skip entirely
./05-setup-claude-mem.sh --yes # Install without prompting
Edit config.sh to customize:
VALID_MODELS — Add models as Anthropic releases themHEARTBEAT_DIAGNOSTICS — Enable/disable in heartbeat (default: false)INSTALL_MODE — Default to "starter" or "full"| Issue | Solution | |-------|----------| | "Command not found" | Add ~/.local/bin to PATH | | Auth errors | Run ./03-first-time-auth.sh | | Slow startup | First run indexes codebase | | Subagents not showing | Run ./04-install-subagents.sh |
After setup, add the maintenance task to your HEARTBEAT.md (see "Heartbeat Maintenance" in Daily Use section).
Setup complete! Continue to Daily Use section.
---
This section covers ongoing usage - reference this for all coding tasks.
Subagents are installed to ~/.claude/agents/. Each has a "Learn More" section with curated links to deepen expertise.
Most users only need these:
| Agent | Model | Purpose | |-------|-------|---------| | senior-dev | Sonnet | Architecture, complex code, code review | | project-manager | Sonnet | Task breakdown, timelines, dependencies | | junior-dev | Haiku | Quick fixes, simple tasks (fast & cheap) |
Install: ./04-install-subagents.sh (or --minimal)
For larger projects, install all 11 with --full-team:
| Agent | Model | Purpose | |-------|-------|---------| | senior-dev | Sonnet | Architecture, complex code, code review | | project-manager | Sonnet | Task breakdown, timelines, dependencies | | junior-dev | Haiku | Quick fixes, simple tasks (fast & cheap) | | frontend-dev | Sonnet | React, UI, CSS, client-side | | backend-dev | Sonnet | APIs, databases, server-side | | ai-engineer | Sonnet | LLM apps, RAG, prompts, agents | | ml-engineer | Sonnet | ML models, training, MLOps | | data-scientist | Sonnet | SQL, analysis, statistics | | data-engineer | Sonnet | Pipelines, ETL, data infrastructure | | product-manager | Sonnet | Requirements, user stories, prioritization | | devops | Sonnet | CI/CD, Docker, K8s, infrastructure, automation |
Interactive mode: Use the /agent slash command or natural language:
/agent senior-dev
Use the senior-dev agent to review this code
Non-interactive mode (-p): Use the --agent flag:
claude --agent senior-dev -p "review this code for security issues"
claude --agent project-manager -p "create a task breakdown for auth feature"
claude --agent junior-dev -p "fix the typo in README.md"
Note: Claude Code does NOT auto-delegate to subagents based on task type. You must explicitly specify which agent to use.
Multi-agent handoff: For tasks needing multiple specialists, use HANDOFF.md to pass context between agents. See docs/workflows.md for the full pattern.
---
claude # Start interactive
claude -c # Continue previous session
claude -p "prompt" # Non-interactive mode
/agents - Manage subagents
/clear - Clear conversation (use between tasks!)
/compact - Compress context
/model - Change model
/help - All commands
Shift+Tab - Toggle Plan mode (read-only exploration)
Ctrl+C - Cancel operation
Ctrl+B - Background task
---
| Command | What it does | When to use | |---------|--------------|-------------| | /clear | Clear conversation, start fresh | Between unrelated tasks | | /compact | Summarize and compress context | When context getting full | | Shift+Tab | Toggle Plan mode (read-only) | Exploration before implementing |
Best practices:
/clear between unrelated tasks---
Create .claude/settings.json in your project:
{
"model": "sonnet",
"permissions": {
"allow": ["Bash(npm:*)", "Bash(git:*)", "Read", "Write", "Edit"],
"deny": ["Bash(rm -rf:*)", "Bash(sudo:*)"]
}
}
Create CLAUDE.md in your project root (Claude reads this automatically):
# Project: MyApp
## Tech Stack
- Frontend: React, TypeScript, Tailwind
- Backend: Node.js, PostgreSQL
## Commands
- `npm run dev` - Start dev server
- `npm test` - Run tests
See examples/CLAUDE-template.md for a full template.
---
Check status:
pgrep -f "worker-service" >/dev/null && echo "running" || echo "stopped"
Start if stopped:
cd ~/.claude/plugins/marketplaces/thedotmack && bun plugin/scripts/worker-service.cjs start
Web UI: http://localhost:37777
---
Quick diagnostics:
~/clawd/skills/claude-code-mastery/scripts/06-diagnostics.sh
Full troubleshooting (if issues found):
~/clawd/skills/claude-code-mastery/scripts/08-troubleshoot.sh
Common issues guide: See docs/troubleshooting.md for solutions to:
---
Add to your HEARTBEAT.md for automatic maintenance:
## Claude Code Maintenance
**Last Health Check:** [timestamp]
**Last Learning Session:** [timestamp]
### Every Heartbeat (if coding tasks active):
1. Quick claude-mem check (if installed):
`pgrep -f "worker-service" >/dev/null && echo "running" || echo "stopped"`
- Only restart if stopped
- Note: pgrep saves ~500 tokens vs full status command
### Daily (morning):
1. Quick health check: `command -v claude && pgrep -f "worker-service"`
2. Only run full diagnostics if quick check fails
### Weekly (Sunday):
1. Run: `~/clawd/skills/claude-code-mastery/scripts/07-weekly-improvement-cron.sh`
2. Propose improvements (require human approval)
...安装 Claude Code Mastery 后,可以对 AI 说这些话来触发它
Help me get started with Claude Code Mastery
Explains what Claude Code Mastery does, walks through the setup, and runs a quick demo based on your current project
Use Claude Code Mastery to master Claude Code for coding tasks
Invokes Claude Code Mastery with the right parameters and returns the result directly in the conversation
What can I do with Claude Code Mastery in my ai agent & automation workflow?
Lists the top use cases for Claude Code Mastery, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/claude-code-mastery/ 目录(个人级,所有项目可用),或 .claude/skills/claude-code-mastery/(项目级)。重启 AI 客户端后,用 /claude-code-mastery 主动调用,或让 AI 根据上下文自动发现并使用。
Claude Code Mastery 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Claude Code Mastery 可免费安装使用。请查阅仓库了解许可证信息。
Master Claude Code for coding tasks. Includes setup scripts, dev team subagents (starter pack or full team), self-improving learning system, diagnostics, and troubleshooting.
Claude Code Mastery 属于「AI Agent & Automation」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my ai agent & automation tasks using Claude Code Mastery
Identifies repetitive steps in your workflow and sets up Claude Code Mastery to handle them automatically