claudecode-patterns
Run Claude Code as a team. Plan-first, gate-disciplined, customizable to your stack — without forking anyone's prompts.
TL;DR
A team-grade Claude Code distribution. Configure via sdlc.yml instead of forking prompts.
Hard gates between each. The implementer agent refuses to start without strategy approval. Gate 1 is configurable: strict (human-approved) or auto / "trust mode" (specifier self-approves) — per-stack via plan.yaml, per-issue via gate:auto / gate:human label.
/orchestrate runs whole epics in parallel — queue approved issues, wake up to validated PRs. Each issue runs through its own gates independently.
- Swap task management tools (Linear ↔ GitHub Issues ↔ Jira) by changing one config value. Same agents, same commands.
- Tune artifact shapes (specs, plans, session logs, anything you author) through dialog with the canvas-author agent. Schema-validated, versioned, no prompt edits.
Quickstart
# 1. Install the plugin (Claude Code marketplace)
/plugin marketplace add pattern-stack/claudecode-patterns
/plugin install sdlc
# 2. Scaffold this project's config (interactive — 4 questions)
cd your-project
/sdlc:setup
# language: typescript | python | go
# quality_profile: strict | fast
# task_management: github | linear | jira
# team_key: ACME ← your tracker prefix
# (also writes .claude/sdlc.justfile symlink + wires your Justfile via `mod sdlc`)
# 3. (Optional, GitHub Projects users) Add `project_number: <n>` to .claude/sdlc.yml
# The discover-tracker SessionStart hook auto-loads Status field IDs every
# session. No extra command needed; specifier auto-moves Status when set.
# 4. Run the loop
/sdlc:plan "Add Redis caching to the user service"
# (iterate, approve)
/sdlc:sync-issues .ai-docs/stacks/redis-caching/plan.yaml
/sdlc:design ACME-101 # strict: review on tracker, apply state:strategy-approved
# auto: specifier auto-approves (gate:auto label or plan auto_approve: true)
/sdlc:develop ACME-101 # or /sdlc:orchestrate state:strategy-approved
That's the whole flow. All commands are namespaced as /sdlc:<cmd> to avoid collision with Claude Code built-ins (notably /init, which generates CLAUDE.md and is unrelated to /sdlc:setup).
The hard part is the first 5 minutes deciding what your sdlc.yml should say. After that, the system runs.
Optional: live telemetry dashboard (ap)
The plugin emits Claude Code lifecycle events (SessionStart, PreToolUse, Stop, …) to a local dashboard if one is running. The dashboard is the separate @agentic-patterns/cli package on a deliberately decoupled install path — sdlc works without it; telemetry hooks silently no-op when ap is absent.
npm i -g @agentic-patterns/cli
# Then start a fresh Claude Code session in your project — the
# SessionStart hook auto-launches `ap playground` in the background
# at http://localhost:3456 if it isn't already running.
/sdlc:setup probes for ap and prints the status so you don't have to remember.
Status line (installed automatically)
The plugin ships plugin/scripts/statusline.sh — a centered, ANSI-dim line surfacing the active ticket + branch + stack + PR + CI rollup + dashboard pill. Each segment auto-detects its source and drops out silently when absent:
- Project — the working directory's name, shown when the branch carries no ticket. On macOS,
bash plugin/scripts/dir-link/install.sh makes it a link: Cmd+click copies the path, Cmd+Shift+click splits a herdr pane there. A plain click is not available — Claude Code captures the mouse in its own pane and handles unmodified clicks itself, opening only http(s). herdr's Cmd+D splits into the same directory without any link.
- Ticket — parsed from the branch using
team_key from .claude/sdlc.yml (e.g. AP-16, PSC-42).
- Branch — current branch name (suppressed on
main / master).
- Stack — first line of
st status when graphite-cli st reports a tracked stack.
- PR / CI —
gh pr view for the current branch, cached 20s. CI collapses to CI 2 failing / CI 1 running / CI 4 ✓.
- Dashboard — clickable colored dot pointing at the local cc-viewer (green when
/health responds, red otherwise).