Skip to content

About

Shared SDLC framework for Claude Code and Codex: user-global specialist agents and workflow skills selected by model judgment, with evidence-based guidance for delivery, quality gates and code review. Optional background checks only observe and report; repair is an explicit foreground step.

Topics

Resources

Contributing

Security policy

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

237 Commits

Folders and files

Repository files navigation

SDLC Agents — Claude Code and Codex

License: MIT Version Claude Code Codex Agents Skills MCP

One framework repository, with an integration for each coding agent. Share domain procedures and specialist roles; keep provider-specific runtime behavior in its adapter. Describe a task naturally or select a workflow explicitly. Selection uses model judgment.

New here? Describe the result you want in plain words. The default "Start building" guidance asks the assistant to handle technical choices, ask only what matters, and explain how to try the result. See Start building for the defaults and the features that stay optional until you choose to set them up.

Claude Code Codex
User-global install ./install.sh ./install-codex.sh --user
Skills 30 source bundles 42 workflows + 13 specialist guides = 55 bundles
Specialists 13 Markdown agent definitions 13 TOML definitions plus guide fallbacks
Instructions ~/.claude/CLAUDE.md and rules Managed block in ~/.codex/AGENTS.md and rules resource
Runtime integration Core hooks + statusline; opt-in analytics / watchdog / notifications Opt-in native evidence hooks; remaining gaps

Requirements: macOS/Linux, Bash and Git. The Claude installer also requires curl and needs jq to seed and reconcile settings.json (statusline and validation use it too). Codex building/installing additionally needs Python 3.11+ and declared Python dependencies, including PyYAML and Requests for the bundled health checker. MCP examples use npx where applicable. MCP connections are not auto-registered. See INSTALL.md for both installation paths and codex/README.md for Codex ownership, updates, rollback and hook trust.

Setting up another laptop? A clone or pull gets the source only. Nothing installs, updates or logs in by itself. On a fresh machine, follow the initial install. On a laptop that already has the framework, inspect the installed state before pulling, then follow the upgrade procedure. Both routes, and the checks that show the setup is done, are in INSTALL.md: Setting up another laptop.


User-global setup

git clone https://github.com/pfangueiro/claude-code-agents.git
cd claude-code-agents
# Claude Code
./install.sh --dry-run
./install.sh

# Codex: use Python 3.11+ and this environment for installation/updates
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r codex/requirements.txt
./install-codex.sh --user --dry-run
./install-codex.sh --user

This block is for a fresh install. If the framework is already installed on this machine, follow Upgrading an existing installation instead, which inspects local state before pulling.

Install the integration you use, or both. Claude loads from ~/.claude; Codex loads skills from ~/.agents/skills and definitions/state from ~/.codex. No per-project copy is required with the default user profile. Project instructions, disabled skills, alternate profiles and host capabilities can affect effective behavior.

The Claude install ships core components (agents, skills, commands, rules, hooks, statusline, settings) by default. The observability dashboard, the launchd watchdog and desktop notifications are opt-in, each behind a positive flag — ./install.sh --with-analytics, --with-watchdog (macOS) and --with-notifications. Omitting a flag on an existing install preserves whatever is already there; it never removes it.

Delivery workflow

Three portable skills carry an implementation outcome through review and publication in either integration: delivery (task contract, roles, separately authorized states), repo-context (read-only repository discovery) and verified-handoff (check receipts bound to an exact commit). The delivery rule routes implementation work through them, and the provider-neutral commit-pr command is the single publication contract for both editions: commit, then required checks and an independent verdict on that exact candidate, then confirmation that the pushed head is the reviewed one. A new commit is not covered by the earlier verdict or receipts: they stay history for their original input, and the new head needs current evidence and a verdict covering its delta (acceptance by task).

  • Availability is not execution. Installing or loading these workflows changes what a session can follow; nothing is implemented, reviewed, merged or deployed until a real tool call or process does it and its receipt is collected. Receipts are evidence of a run, not proof of review, CI or deployment.
  • Default roles. The rule assigns a default pair: a coordinator that verifies independently and a separate implementing execution. Explicit owner or project instructions override that pair; the default never starts a dispatcher.
  • Project policy. Base branch, required checks, review, release and attribution come from the project's own instructions. Project rules and owner instructions act as the policy adapter; the workflows do not assume a default branch, CI gate or ticket key.
  • Nothing runs in the background. No watcher, daemon, scheduler, GitHub auto-merge, hook or hook trust is added. Gates are instructions plus receipts the session collects, not an enforced sandbox.
  • Optional local persistent controller. delivery also ships scripts/controller.py and its engine, an operator CLI for one repository on one host. It stays off until you run setup for a repository. It keeps private state outside the repository, queues owner-approved plans, and runs only as a foreground process you start, with a durable STOP. One Claude account is enough. Publication needs an actual Codex review of the integrated candidate. Worktrees are removed only by an explicit cleanup-workspaces under STOP. No skill, command or agent count changes. See docs/PERSISTENT-DELIVERY.md.
  • Optional references. delivery ships task-specific acceptance guidance and optional repository-measurement limits; verified-handoff ships an opt-in agent-guidance evaluation that compares baseline and candidate instruction files on a synthetic corpus through a local adapter you supply. Provider runs are opt-in and never automatic in ordinary delivery, quality gates or CI (offline fake-adapter behaviour tests do run in CI); its process separation is not an OS sandbox, and a small pilot is not proof of effectiveness. Both integrations export the same references.

Codex receives them through ./install-codex.sh --user as $sdlc-delivery, $sdlc-repo-context and $sdlc-verified-handoff (implicit) and $sdlc-commit-pr (explicit-only). For an existing Claude install, update just these resources without rerunning the broad installer:

python3 scripts/install-delivery.py --dry-run   # report paths, change nothing
python3 scripts/install-delivery.py             # install or update
python3 scripts/install-delivery.py --check     # nonzero if installed bytes drift
python3 scripts/install-delivery.py --uninstall # remove owned files, restore adopted originals

It targets CLAUDE_CONFIG_DIR when set, otherwise ~/.claude; pass --claude-home to choose another existing profile deliberately. It manages only skills/delivery, skills/repo-context, skills/verified-handoff, rules/delivery.md and commands/commit-pr.md, records per-file hashes and the source commit in .sdlc-delivery/manifest.json, and never touches settings, hooks, credentials, models, CLAUDE.md or daemons. Installed bytes come from the Git objects of the source HEAD commit, not the working tree. A managed path that differs from HEAD, carries an assume-unchanged or skip-worktree flag, or has an untracked or ignored file beside it (Python caches aside) marks the consumed source dirty: --dry-run reports it and installation refuses. Only those consumed paths are inspected, so provenance is scoped: the manifest records source_sha, consumed_source_dirty, consumed_source_scopes and whole_tree_state: "not-inspected", and the CLI says the rest of the working tree was not inspected. An uncommitted edit elsewhere in the repository neither blocks installation nor is claimed clean. Manifests written by earlier versions carried an unqualified source_dirty flag; the next install rewrites them in the scoped format, and --check reports that rewrite as drift until then. Symlinked source resources and committed symlinks or submodules are refused in every mode; source inspection runs no fsmonitor, filter or hook. Foreign or customized files and symlinked destinations are refused before writing. A commit-pr.md copied by an earlier full install is adopted only with --baseline <full commit SHA> whose shipped bytes match it exactly; uninstall then restores those original bytes. Caught write errors roll back; a process kill or power loss mid-write is not guaranteed to. The broad ./install.sh --update also copies these files by basename. When it writes the bytes the manifest records (the same clean source commit), the manifest stays clean. When it writes different bytes (for example, if you run it first after a pull), --check fails and the delivery installer refuses to overwrite or remove them. When upgrading, run the delivery installer first; see Upgrading an existing installation.

Quality, review and evaluation

Both editions share one evidence-based quality contract:

Need Use Outcome
Review a change /review-pr (command), the code-quality agent, code-review-checklist Findings at an exact base/head, classed as runtime-reproduced, source-proven, unverified or nonblocking; INCOMPLETE when required evidence is missing
Run required checks /quality-gate (command), verified-handoff receipts Per-check PASS/FAIL/UNAVAILABLE/NOT_APPLICABLE; overall FAIL, INCOMPLETE or PASS for the completed scope
Decide what counts as done Acceptance by task, repository measurements Task-specific evidence; unknowns are reported, never counted as zero
Compare instruction changes Agent evaluation Opt-in baseline vs candidate on a synthetic corpus; a pilot is not proof of efficacy
Choose a model per task (opt-in) Model policy INHERIT by default; PLAN_READY only for an approved, evaluated binding the exact surface supports; verify compares requested and observed model

The contract uses no grades and no unmeasured metrics. The 2026-10-24 acceptance of this contract is archived as a historical record. It records observations at those revisions and does not certify the current tree.

Open a session in a project and describe the work:

"Build a REST API with JWT authentication"
"This query is running slow"
"Check for security vulnerabilities"
"Deploy to production"

Or invoke a workflow or specialist explicitly. The same request maps across editions:

# Claude Code
/review-pr                       # review the current change
/quality-gate --fix              # required checks -> PASS / FAIL / INCOMPLETE
"Use code-quality to review src/auth.ts"

# Codex (sdlc- prefixed; explicit-only commands stay explicit)
$sdlc-review-pr                  # review the current change
$sdlc-quality-gate               # run the project quality gate
$sdlc-agent-code-quality         # apply the code-quality role guide inline

Selection, availability and limits

  • Selection is model-directed, not deterministic. The model reads agent and skill descriptions and chooses or delegates by judgment; the cue words above are hints, not a keyword router, and activation is never guaranteed. Name a workflow or specialist explicitly when you want a specific one.
  • Availability is not execution. Installing or loading a workflow only makes it selectable; nothing is implemented, reviewed, merged or deployed until a real tool call or process does it. No scheduler or GitHub auto-merge drives that SDLC work in the background, and the portable delivery workflows and the Codex adapter add no background watcher or daemon at all. The optional delivery controller runs only as a foreground process an owner starts, and merges only through its owner-authorized, gated effect. (The Claude install can add one opt-in launchd watchdog with --with-watchdog — documented below — but it is observe-only: it reports drift and keeps backups, and never installs, repairs, implements, reviews, merges or deploys anything.)
  • Global by default, overridable per project. Both editions install user-global and apply in every project (Claude from ~/.claude; Codex skills from ~/.agents/skills, definitions and state from ~/.codex). A project's own instructions, disabled skills, an alternate profile, or host capabilities change effective behavior; a --project Codex install is an explicit alternative to the user-global one.
  • Not complete parity. The editions share domain procedures and specialist roles, not identical runtime behavior. Codex ports are listed with their limits in codex/FEATURES.md; several Claude-only runtime features (dashboard, watchdog, notifications, the custom statusline renderer and snapshots) are unported, and Claude's file-scoped ESLint feedback hook is unported too — opt-in post-edit lint checks are available instead, and neither edition rewrites files on edit. Codex hooks are opt-in and user-trusted.

Codex examples include $sdlc-execute, $sdlc-review-pr and $sdlc-agent-code-quality. Native profile routing depends on the host; guides provide a fallback. The archived cross-project and CLI validation confirmed global discovery and reviewer use for both integrations as of 2026-10-12.

Before you run it: see What the install does to your machine for the exact paths written, the opt-in background daemon, and how to reverse it. ./install.sh --dry-run prints every path this selection would touch without touching any of them.


Claude edition components

Component Count What It Does
Agents 13 Model-selected SDLC specialists (planning through production)
Skills 30 Modular knowledge packages (git, Docker, CI/CD, K8s, SRE, IaC, observability, delivery, repo-context, verified-handoff, experiment-loop, scheduled-tasks, worktree-workflow, remote-triggers, context-escalation, diverge, etc.)
Command templates 12 /commit-pr, /review-pr, /compact, /new-feature, /create-jira, /build-fix, /tdd, /quality-gate, /checkpoint, /save-session, /resume-session, /optimize; /security-scan comes from a skill
MCP Servers 4 context7, sequential-thinking, playwright, github
Rules 8 Instructions for security, code quality, fix quality, verification, framework integrity, anti-anchoring, delivery routing and the "Start building" default experience; native permissions/sandbox enforce access boundaries
Hooks 10 Agent tracking, session lifecycle, permission auditing, file protection, edit-time lint feedback, debug detection, pre-compact snapshots, notifications

Available Agents

The Typical cues column lists the kind of request each specialist suits. It is not a keyword trigger: the model reads the agent descriptions and selects or delegates by judgment, so wording, context and the other specialists all affect the choice. You can always name a specialist explicitly. Selection is not deterministic and activation is not guaranteed.

Agent Typical cues Does What Model
architecture-planner design, architecture, system System design, API specs, ADRs Sonnet
code-quality review, refactor, quality Code review, best practices Sonnet
security-auditor security, auth, vulnerability OWASP scanning, security fixes Opus
test-automation test, coverage, TDD Test generation, coverage analysis Sonnet
performance-optimizer slow, optimize, bottleneck Profiling, caching, optimization Sonnet
devops-automation deploy, CI/CD, Docker Deployment, containerization Sonnet
documentation-maintainer document, README, guide Docs, API specs Haiku
database-architect database, SQL, schema Query optimization, migrations Sonnet
frontend-specialist UI, React, frontend Components, responsive design Sonnet
api-backend API, backend, endpoint REST/GraphQL, business logic Sonnet
incident-commander CRITICAL, outage, emergency Rapid response, root cause Opus
sre-specialist SLO, reliability, on-call, runbook SRE, SLOs, capacity, chaos eng Sonnet
meta-agent create an agent for… Generates new custom agents Opus

The model column is each Claude agent file's static default: a compatible starting point, not a calibrated optimum or a capability ranking. Codex inherits its active model; these aliases and provider pricing are not translated. Per-task model and effort selection in either edition is an owner opt-in (model policy), off on every host until its owner writes a private policy.


How Agents Collaborate

The model coordinates specialists by judgment — it is not an automatic or deterministic hand-off engine. For "Build a user registration system" a typical model-directed sequence looks like the graph below, but the actual path depends on the request and the model's decisions, and each step is a separate call that runs only when the model makes it. Nothing is dispatched in the background.

graph LR
    A[architecture-planner] --> B[frontend-specialist]
    A --> C[api-backend]
    C --> D[database-architect]
    B --> E[test-automation]
    C --> E
    E --> F[code-quality]
    F --> G[security-auditor]
    G --> H[devops-automation]
Loading

See .claude/lib/agent-coordination.md for the coordination patterns these specialists follow.


Installation

The following commands and machine effects describe the Claude installer. For Codex use ./install-codex.sh --user, then --user --check to verify or repeat --user to update. Removal is --user --uninstall; customized owned files cause a conflict rather than being overwritten. Full Codex instructions.

Command What It Does
./install.sh Install core to ~/.claude: agents, skills, commands, rules, core hooks, statusline, settings. Analytics, watchdog and notifications are opt-in (below)
./install.sh [--with-analytics] [--with-watchdog] [--with-notifications] Add the opt-in components: dashboard assets + claude-obs alias; the launchd watchdog (macOS); the desktop notify hook. Default-off; omitting a flag on an existing install preserves that component
./install.sh --dry-run Print every path this selection would touch — changes nothing
./install.sh --update Reconcile ~/.claude to the checked-out source. Replaces same-name framework files and drifted framework settings keys; follow the upgrade procedure
./install.sh --upgrade Migrate from an old per-project install: reconcile, confirm + tear down old copies, then self-verify (details)
./install.sh --uninstall Remove the framework from ~/.claude — snapshots first, asks first (details)
./install.sh --help Show all options

Verify Installation

./validate.sh
# All validations passed! (full + --quick modes)

# Codex installed state (use the installation's Python environment)
./install-codex.sh --user --check

# Read-only cross-integration status (writes nothing; no installer/validate called)
python3 scripts/framework-status.py          # human-readable, --user scope
python3 scripts/framework-status.py --json    # machine-readable

scripts/framework-status.py reports the source repository SHA, each integration's installed source SHA and owned-integrity state (not_installed / clean / drift / error), native CLI presence, whether optional Codex hooks are configured (with trust reported UNKNOWN — grant it in native /hooks), and MCP connectivity (UNKNOWN — servers are discovered at runtime). The source SHA is its own repository's HEAD, resolved while ignoring inherited Git selectors (GIT_DIR, GIT_WORK_TREE, …) so a foreign repository in the environment cannot misattribute it. It reuses the existing read-only checkers (codex/framework.py --check and scripts/install-delivery.py --check) and never writes — not even a source .pyc — locks, repairs, runs the broad installer or validate.sh, executes project scripts, probes the network or starts MCP servers; it does not read config.toml, auth.json, settings.json or secrets. Scope flags: --user (default) inspects the user-global installs, --project PATH inspects a project Codex install, --claude-home PATH overrides the Claude home; a requested scope that does not match the installed manifest (e.g. --project against a user install) is reported as an error, never silently relabelled clean. Exit status: 0 nothing wrong, 1 drift, 2 error. (The Codex integrity check needs the declared Codex Python dependencies.)

One entry point: ./framework

In the source checkout, ./framework (default status) is a friendlier front door to the same read-only checks: it shows whether installed files match their own install records, then compares them with this checkout. ./framework settings shows optional extras with how to change each one and saves display preferences only when you pass a settings option. ./framework update runs the safe updater for an existing installation (a read-only plan, then an explicit apply with a verified backup; it never pulls source or rewrites your settings). You can simply ask the agent to "update the installed framework and preserve my settings". Fresh installs still use ./install.sh and ./install-codex.sh. It is not installed on your PATH: from other folders run the installed helper python3 ~/.claude/lib/framework_settings.py (or python3 ~/.codex/framework/settings.py). Details and limits: docs/FRAMEWORK-CONTROL.md.

Installed components live under ~/.claude/ — verify with ls ~/.claude/agents ~/.claude/skills ~/.claude/commands ~/.claude/rules.


What the install does to your machine

./install.sh writes to your home directory. The core paths below install by default; the analytics dashboard (--with-analytics), the launchd watchdog (--with-watchdog) and the desktop notify hook (--with-notifications) are opt-in and are written only when you pass their flag. Run ./install.sh --dry-run first to see the exact list for your selection, resolved against your actual $HOME.

Paths written

Path What lands there On re-install
~/.claude/agents/ 13 agent .md files Replaced (heals drift)
~/.claude/skills/ 30 skill directories Replaced per-skill (rm -rf then copy)
~/.claude/commands/ 12 executable templates + README (13 Markdown files) Replaced
~/.claude/rules/ 8 rule .md files Replaced
~/.claude/lib/ 4 reference files (templates, patterns, coordination, MCP guide) plus the read-only status/settings helper framework_settings.py Replaced
~/.claude/hooks/ 6 core .sh hooks (+chmod +x) always, plus 2 analytics hooks (--with-analytics) and 1 notify hook (--with-notifications); 2 reference .json configs Framework-named hooks replaced; foreign hooks are preserved (no broad prune); retired framework names pruned by name
~/.claude/output-styles/concise.md Code-first output style Replaced on drift by install, --update and --upgrade; removed by --uninstall
~/.claude/statusline.sh Status bar script Replaced only when it differs from source
~/.claude/analytics/ collector.py, server.py, dashboard.html, schema.sql Only with --with-analytics; a customized copy is preserved, not overwritten
~/.claude/daemon/ Watchdog script Only with --with-watchdog (macOS only)
~/.claude/settings.json Seeded from template if absent; otherwise only framework-owned keys are reconciled — see below Merged, never wholesale-replaced
~/.claude/CLAUDE.md Personal preferences, from template, with your name/email from git config Only if absent. Never touched again, including by --update
~/.claude/.framework-path
~/.claude/.framework-version
~/.claude/.watchdog-plist.sha
Markers the observer and installer read Rewritten

Written outside ~/.claude:

Path Why Notes
~/Library/LaunchAgents/com.claude-code-agents.framework-watchdog.plist The hourly observe-only watchdog daemon (reports + backups, no repair) macOS only, --with-watchdog
~/.zshrc or ~/.bashrc Appends a claude-obs alias for the dashboard (3 lines) Only with --with-analytics; idempotent — guarded by a grep, added once

Created later at runtime, not by the installer: ~/.claude/analytics/*.jsonl and claude-obs.db (hooks and the collector), ~/.claude/snapshots/ (the daemon), ~/.claude/sessions/ (pre-compact auto-snapshots, 10 kept per project). The optional delivery controller writes nothing until you run its setup or init. It then writes only the private state directory you name and a binding and lock file in that repository's Git directory. No installer touches them (guide).

In settings.json, only these keys are framework-owned: .hooks (framework hook events replaced per event on drift, matched by exact command path so foreign bindings are preserved; a fresh seed wires only the core events, and the analytics/notification events are added only with their flag), .permissions, .attribution, and .statusLine (replaced on drift), plus .env (add-only — your values are never overwritten, and a valid CLAUDE_CODE_EFFORT_LEVEL you set is preserved). Every other key you set is left alone. Want different permissions or attribution? Put them in settings.local.json, which takes precedence.

It is framework-scoped — your own content survives

For ~/.claude/{agents,skills,commands,rules,lib}, the install manages exactly the basenames the framework currently ships or has explicitly retired. A personal file whose name is neither shipped nor retired is never touched — not overwritten, not pruned. Preservation is by non-colliding name, not by origin, so two name collisions are the exception: because each shipped file is copied by basename, a personal file that shares a currently-shipped name (e.g. your own code-quality.md) is overwritten by the shipped copy, and a personal file left at an explicitly-retired framework name is eligible for pruning.

Hooks are framework-scoped too, and foreign hooks are preserved. The sync copies every current source hook (core always; the analytics and notify hooks only with their flag) and makes them executable. There is deliberately no broad "prune every file not in source" sweep: a .sh/.json in ~/.claude/hooks/ whose name the framework does not currently ship has no ownership proof — it may be your own hook — so it is retained, not removed. Retiring a framework hook is handled explicitly, by name, the same fail-closed way as retired skills and lib files. Likewise in settings.json, framework hook events are reconciled by exact command path so foreign bindings are kept verbatim, and the .permissions block is replaced wholesale on drift; keep custom permissions in settings.local.json.

Measured, not assumed: with a personal skill, agent, command and rule planted in a throwaway HOME, two consecutive --update runs left all four byte-identical and the skills directory at 27 framework + 1 personal. A working machine here carries 14 personal skills alongside the framework's 27; all 41 are present. (Measured when the framework shipped 27 skills.)

The background daemon (opt-in — --with-watchdog, macOS)

With --with-watchdog on macOS, the install registers an hourly launchd agent (com.claude-code-agents.framework-watchdog, StartInterval 3600). It is observe-only: each cycle it runs validate.sh --quick --json (no --heal), git fscks the repo, writes daily snapshots to ~/.claude/snapshots/ with 7-day retention, and caps the diagnostic logs. On drift it records a finding — it does not fork an installer, migrate or repair; repair is an explicit ./install.sh --update the owner runs. It makes no network requests. A fresh install without the flag registers no daemon.

launchctl list | grep claude-code-agents            # is it running?
tail -f ~/.claude/analytics/watchdog.log            # what did it do?
launchctl bootout gui/$(id -u)/com.claude-code-agents.framework-watchdog   # stop it

Full operational detail: SELF-HEALING.md.

Platform contract

macOS Linux / WSL
Agents, skills, commands, rules, lib Yes Yes
Core hooks, statusline, settings reconcile Yes Yes
Observability dashboard (opt-in --with-analytics) Yes Yes
SessionStart drift check (observe-only) Yes Yes
Hourly watchdog daemon (opt-in --with-watchdog) Yes No — the daemon is Darwin-gated and silently skipped
Daily snapshots + retention (produced by the watchdog) Yes (with --with-watchdog) No

Nothing auto-heals on either platform: the SessionStart check and the watchdog only detect and report drift. Repair is always an explicit ./install.sh --update. The watchdog's extra value on macOS is out-of-band visibility and backups — for example, after an external wholesale rewrite of ~/.claude/settings.json that drops the .hooks block (which disables the SessionStart hook itself), the watchdog still runs, records the drift and keeps a userconfig-*.tgz snapshot. On Linux/WSL, or without the watchdog, there is no out-of-band observer, so run ./install.sh --update by hand if the statusline or hooks disappear.

Reversing it

./install.sh --dry-run     # preview every path, change nothing
./install.sh --uninstall   # remove the framework (asks first, snapshots first)

--dry-run and --uninstall read the same source-derived enumeration of framework-owned paths, so the preview cannot drift from the removal.

--uninstall asks for confirmation at your terminal, writes a full ~/.claude tarball to ~/.claude/snapshots/preuninstall-<UTC>.tgz and aborts if that snapshot fails, unloads and removes the launchd plist, deletes the framework's own files, and surgically strips the framework's hook bindings and statusLine out of settings.json — leaving settings.json.pre-uninstall.bak beside it. It keeps your own skills, agents and commands, your CLAUDE.md, projects/, todos/, telemetry, and snapshots. It prints the restore command on the way out.

Do not rm -rf ~/.claude: that directory also holds your own Claude Code data. Snapshot restore commands: SELF-HEALING.md.

Threat model, reporting, and the repo's security posture: SECURITY.md.


Slash Commands

Project Workflow

Command Usage What It Does
/commit-pr /commit-pr [message] Commit, run required checks and an independent review on that exact commit, then push and open the PR; merge, release and ticket updates only when authorized
/review-pr /review-pr 123 Independent review at the exact base/head: validated correctness, security, test and doc findings; missing required evidence is INCOMPLETE; publishes only when authorized
/security-scan /security-scan [path] OWASP scanning, secrets detection, dependency audit
/compact /compact [note] Write HANDOFF.md with session context, then compact conversation
/new-feature /new-feature PROJ-123 desc Create feature branch from latest main
/create-jira /create-jira epic Title Create JIRA issue and assign to you

Developer Workflow

Command Usage What It Does
/build-fix /build-fix [path] Auto-detect build system, fix errors one at a time with regression guard
/tdd /tdd <feature> Enforce RED-GREEN-REFACTOR: failing test → implement → refactor
/quality-gate /quality-gate [path] [--fix] Runs the project's declared format, lint, type/build and behavioral checks with receipts; per-check PASS/FAIL/UNAVAILABLE/NOT_APPLICABLE, overall FAIL/INCOMPLETE/PASS for the completed scope
/checkpoint /checkpoint <name> Named save points captured as refs/checkpoint/<name> snapshots (Git plumbing, not branches); branch, index, worktree and stashes stay untouched, recovery is explicit
/save-session /save-session [id] Save structured session state with mandatory "What Did NOT Work" section
/resume-session /resume-session [id] Resume from a saved session with context briefing and file state verification
/optimize /optimize <metric> [--iterations N] Autonomous metric-driven improvement loop: measure → improve → keep/revert

Skills System

Skills provide domain knowledge that agents apply. 30 included:

Skill What It Provides
git-workflow Branching strategies, conventional commits, PR workflows
code-review-checklist 10-category review framework, security checklist
deployment-runbook Blue-green deployment, rollback procedures, health checks
api-contract-testing OpenAPI validation, PACT testing, mock servers
ui-guidelines React/Next.js patterns, Ant Design, responsive design
ci-cd-templates GitHub Actions, GitLab CI, deployment strategies
docker-deployment Multi-stage builds, Docker Compose, security
execute Orchestrated task engine: decompose goals, plan dependencies, parallel execution
investigate 8-phase root cause analysis: observe, reproduce, trace, hypothesize, prove, fix, prevent
library-docs MCP-powered: fetch docs for React, Next.js, Vue, etc.
deep-analysis MCP-powered: structured reasoning with branching and revision (rewritten)
diverge Divergent ideation: isolated parallel sub-agents + critic pass; the divergent complement to deep-analysis
deep-read 6-phase codebase reading engine: scope, map, trace, deep read, connect, report
handoff Session continuity — write HANDOFF.md for cross-session context
context-escalation Five-level context-pressure policy: truncate → drop-reads → fork-subagent → /compact → handoff
security-scan Security scanner (secrets, OWASP, dependencies, file permissions)
kubernetes-ops K8s manifests, Helm, Karpenter, GitOps (ArgoCD/Flux), network policies, troubleshooting
observability-stack OpenTelemetry, Prometheus/Grafana, RED/USE metrics, SLI/SLO monitoring, alerting
sre-runbooks On-call handbook, postmortem templates, SLO/error budgets, chaos engineering, capacity planning
infrastructure-as-code Terraform/CDK/Pulumi patterns, IaC testing pyramid, CI/CD for infra, state management
experiment-loop Autonomous experimentation pattern: modify → measure → keep/discard (autoresearch-inspired)
scheduled-tasks CronCreate/CronDelete/CronList for recurring prompts, polling, reminders
worktree-workflow Git worktree isolation via EnterWorktree/ExitWorktree — explicit-request-only, session-scoped, single-instance (not a parallelism mechanism)
remote-triggers Cloud scheduled tasks (formerly routines) and remote triggers where exposed: live-schema and execution-environment discovery, account scope, owner-authorized create/update/run and tool receipts
browser-testing E2E testing with Playwright MCP — visual regression, responsive design, codegen
multi-agent-orchestration Coordinator pattern, teams, background agents, worker restrictions, SendMessage
skill-creator Create your own custom skills
delivery Provider-neutral delivery: outcome contract, implementer/verifier roles, receipts, separately authorized review/publish/merge/deploy states; optional local persistent controller (off until set up)
repo-context Read-only repository discovery: Git root, HEAD, dirty state, instructions, manifests and command candidates as data
verified-handoff Run checks into receipts bound to an exact commit and verify a declared check manifest before claiming results

The reading and diagnostic skills — deep-read and investigate — share one evidence-reporting convention in their reports: each finding is marked as observed (directly inspected, stating whether the basis is source inspection or an actual runtime capture — reading code is not proof the runtime path executed), derived from named premises, or inferred and still to verify; unknowns, contradictions and truncated or partial coverage are preserved rather than smoothed over; negatives are bounded to what was actually searched or read; and runtime-behavior checks are reported separately from static conclusions. It qualifies how findings are reported and adds no phase, gate, schema or runtime. The approach adapts, in our own words, the evidence-reporting practices of the REA project — its reporting discipline only, not its runtime or tooling.

Create Your Own Skill

python3 .claude/skills/skill-creator/scripts/init_skill.py my-skill --path .claude/skills

MCP Integration

4 Model Context Protocol servers, provided as an example config (.mcp.json.example) — install does not register them; add the ones you want to Claude Code with the commands below:

Server What It Does
context7 Fetch documentation for 100+ libraries on-demand
sequential-thinking Deep structured reasoning (31,999 thinking tokens)
playwright Browser automation and E2E testing
github PR/issue management via GitHub API

Manual MCP Setup

claude mcp add context7 -- npx @upstash/context7-mcp@latest
claude mcp add sequential-thinking-server -- npx @modelcontextprotocol/server-sequential-thinking
claude mcp add playwright -- npx @executeautomation/playwright-mcp-server
claude mcp add github -- npx -y @modelcontextprotocol/server-github

Always-Loaded Rules

The installer places eight rule files in ~/.claude/rules/, which Claude Code loads as user-level instructions in every session. The rules guide the model. Native permissions and sandboxing enforce access boundaries:

  • security.md — No secrets in commits, parameterized queries, input validation, security headers, least privilege
  • code-quality.md — Sufficient relevant current source before edits (no read-count quota), no dead code, single responsibility, early returns, explicit error handling, descriptive naming
  • fix-quality.md — Root cause analysis before fixing, never suppress errors, minimal changes, test-driven fixing
  • verification.md — Verify every implementation with the smallest complete set of checks for the affected behavior plus the project's required gates (no blanket build or full suite per edit), one owner per check with receipt reuse at the same exact input, test-driven bug fixes; PASS/FAIL/INCOMPLETE from evidence, with unknown never counted as zero
  • framework-integrity.md — Hooks must enforce invariants or produce evidence; read-only checkers detect drift, and only an explicit installer run repairs it; snapshots have documented restore paths
  • anti-anchoring.md — Name the obvious pick + a non-obvious alternative + a trap on open-ended judgment calls; escalate consequential open decisions to /diverge
  • delivery.md — Route implementation outcomes through /delivery with a default role pair that owner or project instructions override; report states only from receipts
  • user-experience.md — "Start building" defaults: work from the described outcome in plain language, ask only when a material requirement is missing, a choice is consequential or authority is needed, and keep updates short. Owner and project instructions prevail; configured models, accounts, permissions, required checks and independent review are unchanged, and optional features are never activated silently (see Start building)

These quality rules — and the matching code-quality agent and code-review-checklist skill — ask for right-sized, reuse-first changes: make the smallest complete change a requirement needs (its callers, tests and docs included), reach for an existing project helper, then the platform or an already-installed dependency, before writing new code, and split or extract on evidence of divergent responsibility rather than a line count. The same guidance is built into the Codex edition's generated rules.md, so both editions review by one standard. The reuse-first framing is adapted in our own words from the Ponytail project.


Hooks

10 hook events across 9 command hooks (the source set). The 6 core hooks install by default; agent-tracker.sh and session-end.sh install only with --with-analytics, and notify.sh only with --with-notifications. Installed to ~/.claude/hooks/:

Hook Event What It Does
session-start-healthcheck.sh SessionStart Fast-path framework drift check; on drift it logs a finding and reports that an explicit install.sh --update is needed — it never forks the installer or repairs
file-protection.sh PreToolUse Blocks edits to sensitive files (.env, *.key, *.pem, secrets/)
post-edit-lint.sh PostToolUse File-scoped, check-only ESLint feedback on an edited TS/JS file from the nearest project-local install, run from the session's working directory so config discovery is unchanged (never --fix, no PATH/npx fallback, bounded output, never blocks); warns on debug statements. Feedback only, not an acceptance gate
notify.sh Notification Desktop alert when Claude needs attention
agent-tracker.sh SubagentStart/Stop Real-time agent lifecycle tracking to analytics
session-end.sh SessionEnd Logs session completion for observability
smart-guard.sh PermissionRequest Auto-approves safe reads, audits dangerous operations
pre-compact.sh PreCompact Auto-saves session snapshot before context compaction
post-compact.sh PostCompact Verifies session snapshot was saved after compaction

Phase 2 reference configs (opt-in, not enabled by default):

  • smart-file-guard.json — prompt hook: LLM-based file protection
  • pre-commit-review.json — agent hook: automated code review before commit

Architecture

Installed once, user-global under ~/.claude/ — Claude Code loads it in every project:

~/.claude/
├── agents/          # 13 model-selected SDLC agents
├── commands/        # 12 executable templates + README
├── skills/          # 30 modular knowledge packages
├── rules/           # 8 instruction/guidance rule sets (native permissions enforce access, not these)
├── lib/             # Templates, patterns, coordination protocol
├── hooks/           # 6 core command hooks (+ analytics/notify hooks when selected) + 2 reference configs
├── daemon/          # launchd watchdog — observe-only validate + snapshots — opt-in (--with-watchdog), macOS only
├── analytics/       # Observability dashboard + ingested session logs — opt-in (--with-analytics)
├── snapshots/       # Daily repo/config/memory snapshots (written by the watchdog when installed)
├── sessions/        # Pre-compact auto-snapshots (written by the PreCompact hook)
├── statusline.sh    # Rich status bar — ends line 1 with a framework-status glyph (✓ = recent admitted watchdog --quick installed-integrity result, NOT the full validator / project tests / CI; ⚠ drift-or-degraded; ? unknown — no self-healing glyph)
└── settings.json    # hook events (core wired by default), permissions, model config

Plus, only when their flag is passed: the watchdog plist outside ~/.claude (~/Library/LaunchAgents/com.claude-code-agents.framework-watchdog.plist, --with-watchdog, macOS) and a claude-obs alias (--with-analytics) appended once to your shell rc. See What the install does to your machine.

See EXTENSIBILITY.md for the complete guide on Skills, MCP, Slash Commands, and Subagents.


Usage Examples

These examples are illustrative. The model picks specialists by judgment, so a real session may take a different path. Name a specialist or workflow explicitly when you need a specific one.

Building a feature:

You: "Build a shopping cart with Stripe integration"
  → architecture-planner designs the system
  → api-backend implements payment logic
  → database-architect creates order schema
  → security-auditor validates payment security
  → test-automation generates tests
  → documentation-maintainer documents the API

Performance issue:

You: "The product search is running really slow"
  → performance-optimizer profiles the code
  → database-architect optimizes queries
  → code-quality suggests improvements

Production emergency:

You: "CRITICAL: Production API is returning 500 errors!"
  → incident-commander takes charge (Opus)
  → security-auditor checks for breaches
  → devops-automation prepares rollback

Observability Dashboard

Optional analytics dashboard — installed only with ./install.sh --with-analytics — that reads Claude Code's native JSONL session logs. The collector and server are Python stdlib only over a single SQLite database and make no network calls; the only runtime dependency is browser-side — dashboard.html loads Chart.js from a CDN (cdn.jsdelivr.net) to draw its charts (see Observability Dashboard). The collector never runs on its own; you invoke it with claude-obs.

# Quick start (after install)
claude-obs

# Or run manually
python3 ~/.claude/analytics/collector.py    # Ingest JSONL → SQLite
python3 ~/.claude/analytics/server.py --open # Serve dashboard at localhost:3141

server.py mints a fresh per-launch access token and prints a launch URL that carries it after a # fragment (--open opens that URL for you). The fragment never reaches the server, so the token stays out of access logs; the dashboard page captures it once, drops it from the address bar/history, and keeps it in that tab's session storage. Every API request needs the token, so open the printed URL rather than a bare localhost:3141. Each restart mints a new token and invalidates the old one.

Dashboard panels:

  • Summary cards — total cost, projects, sessions, agent activations, input/output tokens
  • Daily cost & sessions — dual-axis bar+line chart with configurable time ranges (7d/14d/30d/All)
  • Cost by project — horizontal bar chart ranking projects by spend
  • Agent activations — which agents are used most and across how many projects
  • Model distribution — doughnut chart showing Opus/Sonnet/Haiku cost split
  • Top projects by tokens — token consumption per project
  • Sessions table — recent sessions with project, duration, cost, model, and agents used

Architecture:

  • Data source: ~/.claude/projects/**/*.jsonl (Claude Code writes these automatically)
  • Collector (collector.py): incremental JSONL scanner with per-file watermarks, per-model cost estimation (Opus/Sonnet/Haiku pricing)
  • Storage: SQLite with WAL mode at ~/.claude/analytics/claude-obs.db
  • Server (server.py): 6 JSON API endpoints + static file server on localhost:3141
  • Dashboard (dashboard.html): single-file dark-themed UI that loads Chart.js from cdn.jsdelivr.net — the one browser-side, runtime third-party dependency

What it reads, and where the data goes. The collector reads Claude Code's own session transcripts — ~/.claude/projects/**/*.jsonl, across every project on the machine, not just this one — plus the three JSONL streams the framework's hooks write (agent-events.jsonl, session-summaries.jsonl, permission-audit.jsonl). Those transcripts contain your prompts and Claude's responses, so the SQLite database derived from them is as sensitive as your session history.

Your data stays local. collector.py makes no network calls of any kind; server.py binds 127.0.0.1:3141 — loopback only, not reachable from your network — and your transcripts, database and API are never uploaded, phoned home, or shared. The collector and server need no third-party packages. The one runtime network dependency is browser-side: dashboard.html fetches Chart.js from cdn.jsdelivr.net, so the charts need your browser to reach that CDN (offline, the page and local API still work but the charts will not draw); no framework data is sent to the CDN. Delete ~/.claude/analytics/claude-obs.db at any time; the next claude-obs run rebuilds it.

CLI options:

python3 collector.py --full          # Rebuild: remove the DB and re-ingest everything
python3 collector.py --db /path/to.db # Custom database path
python3 server.py --port 8080        # Custom port
python3 server.py --open             # Auto-open browser

Collection is incremental, tracking a byte watermark per source file. If a source log is truncated, rotated or replaced (it shrinks below its watermark), the collector refuses rather than replay or silently drop data: it leaves the database, history and watermark untouched and exits nonzero, telling you to rebuild. --full is that rebuild — it is destructive by design, removing claude-obs.db and re-ingesting from the transcripts — and it only runs when you invoke it, never automatically.

Installed only with ./install.sh --with-analytics (default-off); the collector never runs on its own. Data stays entirely local.


Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/my-feature)
  3. Run ./validate.sh, bash tests/gap/run.sh --prove --jobs 4 and the Codex suite (what to test)
  4. Commit your changes (git commit -m 'feat: add my feature')
  5. Push and open a Pull Request

Read docs/FAILURE-MODES.md before adding any check, guard, or fix — it is the taxonomy of the nine defect classes that actually shipped here, with the real examples. Full flow and the two hard rules: CONTRIBUTING.md.


Roadmap

  • VS Code extension
  • Observability dashboard
  • Lifecycle hooks (agent tracking, permission auditing, session lifecycle)
  • Additional specialized agents
  • Multi-language support
  • Team collaboration features
  • Custom agent marketplace

License

MIT License - see LICENSE for details.

Support


Describe the task, or name the workflow or specialist you want.

About

Shared SDLC framework for Claude Code and Codex: user-global specialist agents and workflow skills selected by model judgment, with evidence-based guidance for delivery, quality gates and code review. Optional background checks only observe and report; repair is an explicit foreground step.

Topics

Resources

Contributing

Security policy

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages