~ / rigs / cus45 / ccg-switch

cus45/ccg-switch

管理您的 Claude · Codex · Gemini 配置

↗ GitHub ★ 43 MIT updated today project Claude CodeCodex
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~2.0k tokens
Moderate · 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 cus45/ccg-switch/.claude ./rig-ccg-switch  # 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.

$ npx degit cus45/ccg-switch/.agents/skills/trellis-before-dev .claude/skills/trellis-before-dev
$ npx degit cus45/ccg-switch/.agents/skills/trellis-brainstorm .claude/skills/trellis-brainstorm
$ npx degit cus45/ccg-switch/.agents/skills/trellis-break-loop .claude/skills/trellis-break-loop
$ npx degit cus45/ccg-switch/.agents/skills/trellis-check .claude/skills/trellis-check
$ npx degit cus45/ccg-switch/.agents/skills/trellis-continue .claude/skills/trellis-continue
$ npx degit cus45/ccg-switch/.agents/skills/trellis-finish-work .claude/skills/trellis-finish-work
$ npx degit cus45/ccg-switch/.agents/skills/trellis-meta .claude/skills/trellis-meta
$ npx degit cus45/ccg-switch/.agents/skills/trellis-start .claude/skills/trellis-start
$ npx degit cus45/ccg-switch/.agents/skills/trellis-update-spec .claude/skills/trellis-update-spec
$ curl -fsSL --create-dirs -o .claude/agents/trellis-check.md https://raw.githubusercontent.com/cus45/ccg-switch/main/.claude/agents/trellis-check.md
$ curl -fsSL --create-dirs -o .claude/agents/trellis-implement.md https://raw.githubusercontent.com/cus45/ccg-switch/main/.claude/agents/trellis-implement.md
$ curl -fsSL --create-dirs -o .claude/agents/trellis-research.md https://raw.githubusercontent.com/cus45/ccg-switch/main/.claude/agents/trellis-research.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": "Task",
        "hooks": [
          {
            "type": "command",
            "command": "python .claude/hooks/inject-subagent-context.py"
          }
        ]
      },
      {
        "matcher": "Agent",
        "hooks": [
          {
            "type": "command",
            "command": "python .claude/hooks/inject-subagent-context.py"
          }
        ]
      }
    ]
  }
}

Skills (9)

Subagents (3)

trellis-check|
trellis-implement|
trellis-research|

Hooks (6)

eventmatcherruns
SessionStartstartuppython .claude/hooks/session-start.py
SessionStartclearpython .claude/hooks/session-start.py
SessionStartcompactpython .claude/hooks/session-start.py
PreToolUseTaskpython .claude/hooks/inject-subagent-context.py
PreToolUseAgentpython .claude/hooks/inject-subagent-context.py
UserPromptSubmit*python .claude/hooks/inject-workflow-state.py

Slash commands (2)

/trellis/continue/trellis/finish-work

Similar rigs

copied ✓