~ / rigs / Caspian-Sun / claude-code-workflow

Caspian-Sun/claude-code-workflow

AI-driven R&D workflow framework: 8-step SDLC, hard gates, @rules traceability chain. Bilingual (EN/ZH).

↗ GitHub ★ 10 MIT updated 1mo ago personal setup Claude Code
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
~2.2k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit Caspian-Sun/claude-code-workflow/.claude ./rig-claude-code-workflow  # 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 Caspian-Sun/claude-code-workflow/.claude/skills/ext-a11y-check .claude/skills/ext-a11y-check
$ npx degit Caspian-Sun/claude-code-workflow/.claude/skills/ext-changelog .claude/skills/ext-changelog
$ npx degit Caspian-Sun/claude-code-workflow/.claude/skills/ext-dep-audit .claude/skills/ext-dep-audit
$ npx degit Caspian-Sun/claude-code-workflow/.claude/skills/ext-perf-audit .claude/skills/ext-perf-audit
$ npx degit Caspian-Sun/claude-code-workflow/.claude/skills/prd-import .claude/skills/prd-import
$ curl -fsSL --create-dirs -o .claude/agents/bug-fixer.md https://raw.githubusercontent.com/Caspian-Sun/claude-code-workflow/main/.claude/agents/bug-fixer.md
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/Caspian-Sun/claude-code-workflow/main/.claude/agents/code-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/meta-auditor.md https://raw.githubusercontent.com/Caspian-Sun/claude-code-workflow/main/.claude/agents/meta-auditor.md
$ curl -fsSL --create-dirs -o .claude/agents/test-writer.md https://raw.githubusercontent.com/Caspian-Sun/claude-code-workflow/main/.claude/agents/test-writer.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": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/hooks/pre-commit-check.sh"
          }
        ]
      }
    ]
  }
}

Skills (5)

Subagents (4)

bug-fixerFix a **single** triaged bug (from bug-reports entries or verbal descriptions normalized by /bug-check). Locate root cause → minimal fix → run tests → return fix report. Suitable for parallel spawning
code-reviewerPerform **read-only** code review on specified files or directories, scanning for issues per project rules (coding-style / no-hardcode / file-docs / testing), and outputting a structured report. Does
meta-auditorGod-mode engineering meta-auditor. Scans .claude/ + docs/ + workspace/src/, outputs structured observation reports to docs/retrospectives/. Observes and suggests only — does not modify any .claude/ or
test-writerGenerate Vitest tests for specified source files. Strictly reads business rules from JSDoc @rules — one it() per rule, no expanding or rewriting. Suitable for parallel spawning by /code or /test (gene

Hooks (3)

eventmatcherruns
PostToolUseEdit|Write.claude/hooks/check-hardcode.sh
ConversationStart*.claude/hooks/check-tasks-status.sh
PreToolUseBash.claude/hooks/pre-commit-check.sh

Slash commands (14)

/bug-check/build/code/deploy/fix/meta-audit/plan-check/plan/prd-check/prd/release/review/start/test

Similar rigs

copied ✓