~ / rigs / clxzl / claude-code-best-practice-cn

clxzl/claude-code-best-practice-cn

Claude Code 最佳实践中文版

↗ GitHub ★ 132 MIT updated 5mo ago project Claude CodeCodex
share on X
ARCHETYPE
YOLO Cowboy
Permissions? Never heard of 'em. Ships at the speed of `--dangerously-skip-permissions`.
CONTEXT TAX · EVERY TURN
~11.5k tokens
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · Sandbox or ask-first rules · details

Copy this rig

# review before running: this installs third-party code
$ claude mcp add playwright -- npx -y @playwright/mcp
$ claude mcp add context7 -- npx -y @upstash/context7-mcp
$ claude mcp add deepwiki -- npx -y deepwiki-mcp
$ npx degit clxzl/claude-code-best-practice-cn/.claude ./rig-claude-code-best-practice-cn  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ claude mcp add playwright -- npx -y @playwright/mcp
$ claude mcp add context7 -- npx -y @upstash/context7-mcp
$ claude mcp add deepwiki -- npx -y deepwiki-mcp
$ npx degit clxzl/claude-code-best-practice-cn/.claude/skills/agent-browser .claude/skills/agent-browser
$ npx degit clxzl/claude-code-best-practice-cn/.claude/skills/time-skill .claude/skills/time-skill
$ npx degit clxzl/claude-code-best-practice-cn/.claude/skills/weather-fetcher .claude/skills/weather-fetcher
$ npx degit clxzl/claude-code-best-practice-cn/.claude/skills/weather-svg-creator .claude/skills/weather-svg-creator
$ npx degit clxzl/claude-code-best-practice-cn/agent-teams/.claude/skills/time-fetcher .claude/skills/time-fetcher
$ npx degit clxzl/claude-code-best-practice-cn/agent-teams/.claude/skills/time-svg-creator .claude/skills/time-svg-creator
$ curl -fsSL --create-dirs -o .claude/agents/development-workflows-research-agent.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/development-workflows-research-agent.md
$ curl -fsSL --create-dirs -o .claude/agents/presentation-curator.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/presentation-curator.md
$ curl -fsSL --create-dirs -o .claude/agents/presentation-learning-journey.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/presentation-learning-journey.md
$ curl -fsSL --create-dirs -o .claude/agents/presentation-vibe-coding.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/presentation-vibe-coding.md
$ curl -fsSL --create-dirs -o .claude/agents/time-agent.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/time-agent.md
$ curl -fsSL --create-dirs -o .claude/agents/weather-agent.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/weather-agent.md
$ curl -fsSL --create-dirs -o .claude/agents/workflow-claude-commands-agent.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/workflows/best-practice/workflow-claude-commands-agent.md
$ curl -fsSL --create-dirs -o .claude/agents/workflow-claude-settings-agent.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/workflows/best-practice/workflow-claude-settings-agent.md
$ curl -fsSL --create-dirs -o .claude/agents/workflow-claude-skills-agent.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/workflows/best-practice/workflow-claude-skills-agent.md
$ curl -fsSL --create-dirs -o .claude/agents/workflow-claude-subagents-agent.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/workflows/best-practice/workflow-claude-subagents-agent.md
$ curl -fsSL --create-dirs -o .claude/agents/workflow-concepts-agent.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/workflows/best-practice/workflow-concepts-agent.md
$ curl -fsSL --create-dirs -o .claude/agents/development-workflows-research-agent.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/.claude/agents/workflows/development-workflows-research-agent.md
$ curl -fsSL --create-dirs -o .claude/agents/time-agent.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/agent-teams/.claude/agents/time-agent.md
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/development-workflows/rpi/.claude/agents/code-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/constitutional-validator.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/development-workflows/rpi/.claude/agents/constitutional-validator.md
$ curl -fsSL --create-dirs -o .claude/agents/documentation-analyst-writer.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/development-workflows/rpi/.claude/agents/documentation-analyst-writer.md
$ curl -fsSL --create-dirs -o .claude/agents/product-manager.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/development-workflows/rpi/.claude/agents/product-manager.md
$ curl -fsSL --create-dirs -o .claude/agents/requirement-parser.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/development-workflows/rpi/.claude/agents/requirement-parser.md
$ curl -fsSL --create-dirs -o .claude/agents/senior-software-engineer.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/development-workflows/rpi/.claude/agents/senior-software-engineer.md
$ curl -fsSL --create-dirs -o .claude/agents/technical-cto-advisor.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/development-workflows/rpi/.claude/agents/technical-cto-advisor.md
$ curl -fsSL --create-dirs -o .claude/agents/ux-designer.md https://raw.githubusercontent.com/clxzl/claude-code-best-practice-cn/main/development-workflows/rpi/.claude/agents/ux-designer.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "ask": [
      "Bash(rm *)",
      "Bash(rmdir *)",
      "Bash(shred *)",
      "Bash(unlink *)",
      "Bash(dd *)",
      "Bash(mkfs *)",
      "Bash(fdisk *)",
      "Bash(chmod *)",
      "Bash(chown *)",
      "Bash(git *)",
      "Bash(gh *)",
      "Bash(npm *)",
      "Bash(pip *)",
      "Bash(pip3 *)",
      "Bash(yarn *)",
      "Bash(pnpm *)",
      "Bash(docker *)",
      "Bash(kubectl *)",
      "Bash(firebase *)",
      "Bash(gcloud *)",
      "Bash(wget *)",
      "Bash(kill *)",
      "Bash(killall *)",
      "Bash(pkill *)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py"
          }
        ]
      }
    ]
  }
}

MCP servers (3)

serversourceest. tokens
Playwright MCP · "playwright" npm 7.5k
Context7 npm 1.2k
DeepWiki npm 900

Skills (6)

Subagents (21)

development-workflows-research-agent
model: sonnet
研究 Agent,用于获取 GitHub 仓库、统计 agents/skills/commands 数量、获取 star 数,并分析 Claude Code 工作流仓库
presentation-curator
model: sonnet
当用户想要更新、修改或修复演示幻灯片、结构、样式或权重时,主动使用此 Agent
presentation-learning-journey
model: sonnet
当用户想要更新、修改、重新排列或修复 LEARNING-JOURNEY 演示文稿(`presentation/learning-journey/index.html`)时,主动使用此代理——包括幻灯片、结构、样式、旅程条级别或天数/级别组织。不要将此代理用于 vibe-coding 演示文稿(请改用 `presentation-vibe-coding`)。
presentation-vibe-coding
model: sonnet
当用户想要更新、修改或修复 VIBE-CODING 演示文稿(`presentation/vibe-coding-to-agentic-engineering/index.html`)时,主动使用此 Agent — 包括幻灯片、结构、样式或等级转换。不要将此 Agent 用于 learning-journey 演示文稿(请改用 `presentation-learning-journey`)。
time-agent
model: haiku
使用此 Agent 显示巴基斯坦标准时间(PKT,UTC+5)的当前时间。
weather-agent
model: sonnet
当你需要获取阿联酋迪拜的天气数据时,请主动使用此 Agent。此 Agent 使用其预加载的 weather-fetcher skill 从 Open-Meteo 获取实时温度。
workflow-claude-commands-agent
model: opus
研究 Agent,用于获取 Claude Code 文档、读取本地 commands 报告并分析漂移
workflow-claude-settings-agent
model: opus
研究 Agent,用于获取 Claude Code 文档、读取本地设置报告并分析偏差
workflow-claude-skills-agent
model: opus
研究 Agent,用于获取 Claude Code 文档、读取本地 skills 报告并分析漂移
workflow-claude-subagents-agent
model: opus
研究 Agent,用于获取 Claude Code 文档、读取本地 subagents 报告并分析漂移
workflow-concepts-agent
model: opus
研究 Agent,用于获取 Claude Code 文档和变更日志、读取本地 README 概念部分并分析偏差
development-workflows-research-agent
model: sonnet
研究 Agent,用于获取 GitHub 仓库、统计 agents/skills/commands 数量、获取 star 数,并分析 Claude Code 工作流仓库
time-agent
model: haiku
使用此 agent 获取迪拜(阿联酋)的当前时间(Asia/Dubai 时区,UTC+4)。此 agent 使用其预加载的 time-fetcher skill 获取实时迪拜时间。
code-reviewer
model: opus
细致、有建设性的审查者,关注正确性、清晰度、安全性和可维护性。
constitutional-validator
model: opus
验证路线图项目、功能和技术决策是否符合项目的章程、原则和核心价值观。确保所有提案在实施前与使命、既定方法论和设计原则保持一致。
documentation-analyst-writer
model: opus
当你需要分析现有文档并创建严格遵循 claude.md 中定义的项目特定文档标准的新文档或更新文档时使用此 Agent。此 Agent 擅长维护与既定文档模式的一致性,确保技术准确性,并产出清晰、结构良好的文档。
product-manager
model: opus
将高层需求转化为清晰、可执行的 PRD,包含验收标准和范围。
requirement-parser
model: sonnet
分析功能需求描述并提取结构化的需求、目标、约束和元数据,供下游规划 agents 使用。
senior-software-engineer
model: opus
务实的独立贡献者,合理规划、交付可逆的小增量并附带测试,编写清晰的 PR。
technical-cto-advisor
model: opus
当你需要将技术决策与工程原则和组织标准对齐时使用此 Agent。此 Agent 充当 CTO,在文档创建之前根据既定的工程框架、风险评估方法论和业务对齐标准评估技术建议。它确保所有技术决策遵循系统方法论、基于证据的风险降低和 AI 优先开发原则,同时保持与企业成功指标的对齐。
ux-designer
model: opus
产出简洁、易用的 UX 设计简报,包含流程、状态和注释。

Hooks (22)

eventmatcherruns
PreToolUse*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
PermissionRequest*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
PostToolUse*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
PostToolUseFailure*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
UserPromptSubmit*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
Notification*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
Stop*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
SubagentStart*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
SubagentStop*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
PreCompact*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
PostCompact*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
SessionStart*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
SessionEnd*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
Setup*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
TeammateIdle*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
TaskCompleted*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
ConfigChange*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
WorktreeCreate*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
WorktreeRemove*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
InstructionsLoaded*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
Elicitation*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py
ElicitationResult*python3 ${CLAUDE_PROJECT_DIR}/.claude/hooks/scripts/hooks.py

Slash commands (12)

/time-command/weather-orchestrator/workflows/best-practice/workflow-claude-commands/workflows/best-practice/workflow-claude-settings/workflows/best-practice/workflow-claude-skills/workflows/best-practice/workflow-claude-subagents/workflows/best-practice/workflow-concepts/workflows/development-workflows/time-orchestrator/rpi/implement/rpi/plan/rpi/research

Permissions

deny (0)
—
ask (24)
Bash(rm *)
Bash(rmdir *)
Bash(shred *)
Bash(unlink *)
Bash(dd *)
Bash(mkfs *)
Bash(fdisk *)
Bash(chmod *)
Bash(chown *)
Bash(git *)
Bash(gh *)
Bash(npm *)
Bash(pip *)
Bash(pip3 *)
Bash(yarn *)
Bash(pnpm *)
Bash(docker *)
Bash(kubectl *)
Bash(firebase *)
Bash(gcloud *)
Bash(wget *)
Bash(kill *)
Bash(killall *)
Bash(pkill *)
allow (25)
Edit(*)
Write(*)
NotebookEdit(*)
Bash
WebFetch(domain:*)
WebSearch
mcp__*
mcp__ide__*
mcp__chrome-devtools__*
mcp__claude-in-chrome__*
mcp__playwright__*
mcp__reddit-mcp-server__search_reddit
mcp__reddit-mcp-server__get_post_details
mcp__tavily-web-search__tavily_search
mcp__tavily-web-search__tavily_extract
WebFetch(domain:api.open-meteo.com)
WebFetch(domain:raw.githubusercontent.com)
WebFetch(domain:docs.anthropic.com)
WebFetch(domain:support.claude.com)
WebFetch(domain:github.com)
WebFetch(domain:api.github.com)
WebFetch(domain:json.schemastore.org)
WebFetch(domain:claudelog.com)
WebFetch(domain:www.eesel.ai)
WebFetch(domain:shipyard.build)

Similar rigs

copied ✓