~ / rigs / xiaopixiu2019 / dotfiles-claude

xiaopixiu2019/dotfiles-claude

No description.

↗ GitHub ★ 0 no license updated 6mo ago personal setup Claude Code
share on X
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
CONTEXT TAX · EVERY TURN
~1.6k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
2/5
Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit xiaopixiu2019/dotfiles-claude/agents ./rig-dotfiles-claude/agents
$ npx degit xiaopixiu2019/dotfiles-claude/commands ./rig-dotfiles-claude/commands
$ npx degit xiaopixiu2019/dotfiles-claude/skills ./rig-dotfiles-claude/skills

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.

$ npx degit xiaopixiu2019/dotfiles-claude/skills/backend-patterns .claude/skills/backend-patterns
$ npx degit xiaopixiu2019/dotfiles-claude/skills/coding-standards .claude/skills/coding-standards
$ npx degit xiaopixiu2019/dotfiles-claude/skills/frontend-patterns .claude/skills/frontend-patterns
$ npx degit xiaopixiu2019/dotfiles-claude/skills/skill-creator .claude/skills/skill-creator
$ npx degit xiaopixiu2019/dotfiles-claude/skills/terminal-log-solution .claude/skills/terminal-log-solution
$ npx degit xiaopixiu2019/dotfiles-claude/skills/verification-loop .claude/skills/verification-loop
$ npx degit xiaopixiu2019/dotfiles-claude/skills/wechat-article .claude/skills/wechat-article
$ curl -fsSL --create-dirs -o .claude/agents/architect.md https://raw.githubusercontent.com/xiaopixiu2019/dotfiles-claude/main/agents/architect.md
$ curl -fsSL --create-dirs -o .claude/agents/build-error-resolver.md https://raw.githubusercontent.com/xiaopixiu2019/dotfiles-claude/main/agents/build-error-resolver.md
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/xiaopixiu2019/dotfiles-claude/main/agents/code-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/planner.md https://raw.githubusercontent.com/xiaopixiu2019/dotfiles-claude/main/agents/planner.md
$ curl -fsSL --create-dirs -o .claude/agents/security-reviewer.md https://raw.githubusercontent.com/xiaopixiu2019/dotfiles-claude/main/agents/security-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/tdd-guide.md https://raw.githubusercontent.com/xiaopixiu2019/dotfiles-claude/main/agents/tdd-guide.md

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

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "tool == \"Edit\" || tool == \"Write\"",
        "hooks": [
          {
            "type": "command",
            "command": "~/.claude/hooks/strategic-compact/suggest-compact.sh"
          }
        ]
      }
    ]
  }
}

Skills (7)

Subagents (6)

architect
model: opus
Software architecture specialist for system design, scalability, and technical decision-making. Use PROACTIVELY when planning new features, refactoring large systems, or making architectural decisions
build-error-resolver
model: opus
Build and TypeScript error resolution specialist. Use PROACTIVELY when build fails or type errors occur. Fixes build/type errors only with minimal diffs, no architectural edits. Focuses on getting the
code-reviewer
model: opus
Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code. MUST BE USED for all code changes.
planner
model: opus
Expert planning specialist for complex features and refactoring. Use PROACTIVELY when users request feature implementation, architectural changes, or complex refactoring. Automatically activated for p
security-reviewer
model: opus
Security vulnerability detection and remediation specialist. Use PROACTIVELY after writing code that handles user input, authentication, API endpoints, or sensitive data. Flags secrets, SSRF, injectio
tdd-guide
model: opus
Test-Driven Development specialist enforcing write-tests-first methodology. Use PROACTIVELY when writing new features, fixing bugs, or refactoring code. Ensures 80%+ test coverage.

Hooks (7)

eventmatcherruns
SessionStart*~/.claude/hooks/memory-persistence/session-start.sh
PreCompact*~/.claude/hooks/memory-persistence/pre-compact.sh
PreToolUsetool == "Edit" || tool == "Write"~/.claude/hooks/strategic-compact/suggest-compact.sh
PostToolUsetool == "Edit" && tool_input.file_path matches "\\.(ts|tsx|js|jsx)$"#!/bin/bash input=$(cat) file_path=$(echo "$input" | jq -r '.tool_input.file_path // ""') if [ -n "$file_path" ] && [ -f "$file_path" ]; then if command -v prettier >/dev/null 2>&1; then prettier --write "$file_path" 2>&1 | head -5 >
PostToolUsetool == "Edit" && tool_input.file_path matches "\\.(ts|tsx|js|jsx)$"#!/bin/bash input=$(cat) file_path=$(echo "$input" | jq -r '.tool_input.file_path // ""') if [ -n "$file_path" ] && [ -f "$file_path" ]; then console_logs=$(grep -n "console\\.log" "$file_path" 2>/dev/null || true) if [ -n "$console
Stop*#!/bin/bash input=$(cat) if git rev-parse --git-dir > /dev/null 2>&1; then modified_files=$(git diff --name-only HEAD 2>/dev/null | grep -E '\.(ts|tsx|js|jsx)$' || true) if [ -n "$modified_files" ]; then has_console=false wh
Stop*~/.claude/hooks/memory-persistence/session-end.sh

Slash commands (6)

/build-fix/code-review/orchestrate/plan/tdd/verify

Permissions

deny (0)
—
ask (0)
—
allow (1)
mcp__pencil

Similar rigs

copied ✓