~ / rigs / lhyman1701 / gated-orchestration-template

lhyman1701/gated-orchestration-template

A Claude Code project template that makes an AI agent build software under enforcement — deterministic machine gates, automatic test→requirement traceability, and an evidence-gated completion contract — instead of on model goodwill. Ships w

↗ GitHub ★ 0 no license updated 4mo ago project Claude Code
share on X
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
CONTEXT TAX · EVERY TURN
~700 tokens
Featherweight · 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 lhyman1701/gated-orchestration-template/.claude ./rig-gated-orchestration-template  # 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 lhyman1701/gated-orchestration-template/.claude/skills/entity-matching .claude/skills/entity-matching
$ npx degit lhyman1701/gated-orchestration-template/.claude/skills/provenance-tracking .claude/skills/provenance-tracking
$ npx degit lhyman1701/gated-orchestration-template/.claude/skills/rigor2 .claude/skills/rigor2
$ npx degit lhyman1701/gated-orchestration-template/.claude/skills/structured-parsing .claude/skills/structured-parsing
$ npx degit lhyman1701/gated-orchestration-template/.claude/skills/traceability .claude/skills/traceability
$ curl -fsSL --create-dirs -o .claude/agents/auditor.md https://raw.githubusercontent.com/lhyman1701/gated-orchestration-template/master/.claude/agents/auditor.md
$ curl -fsSL --create-dirs -o .claude/agents/build-executor.md https://raw.githubusercontent.com/lhyman1701/gated-orchestration-template/master/.claude/agents/build-executor.md
$ curl -fsSL --create-dirs -o .claude/agents/kb-validator.md https://raw.githubusercontent.com/lhyman1701/gated-orchestration-template/master/.claude/agents/kb-validator.md
$ curl -fsSL --create-dirs -o .claude/agents/research-executor.md https://raw.githubusercontent.com/lhyman1701/gated-orchestration-template/master/.claude/agents/research-executor.md
$ curl -fsSL --create-dirs -o .claude/agents/traceability-checker.md https://raw.githubusercontent.com/lhyman1701/gated-orchestration-template/master/.claude/agents/traceability-checker.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": "*",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/hooks/cost_budget_abort.sh"
          }
        ]
      },
      {
        "matcher": "Write|Edit|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/skills/rigor2/hooks/rigor2-spec-gate.sh"
          },
          {
            "type": "command",
            "command": ".claude/skills/rigor2/hooks/rigor2-halt-gate.sh"
          },
          {
            "type": "command",
            "command": ".claude/hooks/pre_tool_use_block_frozen_dirs.sh"
          },
          {
            "type": "command",
            "command": ".claude/hooks/block_forbidden_keyword_in_settings.sh"
          }
        ]
      },
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/skills/rigor2/hooks/rigor2-bash-secret-gate.sh"
          }
        ]
      },
      {
        "matcher": "Task",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/skills/rigor2/hooks/rigor2-cove-isolation.sh"
          }
        ]
      },
      {
        "matcher": "WebFetch|WebSearch|mcp__fetch__fetch",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/skills/rigor2/hooks/rigor2-source-quality.sh"
          }
        ]
      }
    ]
  }
}

Skills (5)

Subagents (5)

auditorIndependent reviewer invoked at every phase boundary. Verifies code quality, test integrity, traceability completeness, and adherence to the project's hard requirements. Reports findings (PASSED / WAR
build-executorDrives the build phase (prompts/02_build_prompt.md). Produces the application source and tests, reading the frozen knowledge directory as the source of truth. Reads STATE.md to resume; follows hard ta
kb-validatorValidates the knowledge directory's integrity. Run after the research phase completes, or any time the build phase hits an unexpected knowledge-base structure. Checks every cross-reference, every JSON
research-executorDrives the research phase (prompts/01_research_prompt.md). Produces the project's knowledge directory (default kb/) of authoritative, cited domain knowledge. Reads STATE.md to resume; follows hard tas
traceability-checkerChecks the requirements traceability matrix for completeness and accuracy. Cross-references the matrix against the knowledge base and the actual test suite. Identifies orphaned requirements and orphan

Hooks (16)

eventmatcherruns
PreToolUse*.claude/hooks/cost_budget_abort.sh
PreToolUseWrite|Edit|MultiEdit.claude/skills/rigor2/hooks/rigor2-spec-gate.sh
PreToolUseWrite|Edit|MultiEdit.claude/skills/rigor2/hooks/rigor2-halt-gate.sh
PreToolUseWrite|Edit|MultiEdit.claude/hooks/pre_tool_use_block_frozen_dirs.sh
PreToolUseWrite|Edit|MultiEdit.claude/hooks/block_forbidden_keyword_in_settings.sh
PreToolUseBash.claude/skills/rigor2/hooks/rigor2-bash-secret-gate.sh
PreToolUseTask.claude/skills/rigor2/hooks/rigor2-cove-isolation.sh
PreToolUseWebFetch|WebSearch|mcp__fetch__fetch.claude/skills/rigor2/hooks/rigor2-source-quality.sh
PostToolUseWrite|Edit|MultiEdit|Bash.claude/skills/rigor2/hooks/rigor2-mcp-audit.sh
PostToolUseWrite|Edit|MultiEdit|Bash.claude/skills/rigor2/hooks/rigor2-no-blockers.sh
PostToolUseWrite|Edit|MultiEdit|Bash.claude/hooks/post_task_update_state.sh
SubagentStart*.claude/skills/rigor2/hooks/rigor2-context-quarantine.sh
Stop*.claude/skills/rigor2/hooks/rigor2-completion-gate.sh
Stop*.claude/skills/rigor2/hooks/rigor2-evidence-gate.sh
Stop*.claude/skills/rigor2/hooks/rigor2-verifier-independence.sh
Stop*.claude/skills/rigor2/hooks/rigor2-no-false-blocked.sh

Slash commands (11)

/addfeature/analyze/audit/build/clarify/kb-check/kbgraph/research/resume/status/traceability

Similar rigs

copied ✓