~ / rigs / developzone5 / sanad

developzone5/sanad

Sanad - a senior-engineer OS for Claude Code: an always-on rulebook plus a gated loop (spec, braintrust, gate, qa, ship). Nothing ships without proof.

↗ GitHub ★ 3 MIT updated 1d ago project Claude Code
stack: JavaScript
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~5.3k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 30/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit developzone5/sanad/agents ./rig-sanad/agents
$ npx degit developzone5/sanad/skills ./rig-sanad/skills
$ npx degit developzone5/sanad/hooks ./rig-sanad/hooks

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 developzone5/sanad/codex/skills/braintrust .claude/skills/braintrust
$ npx degit developzone5/sanad/codex/skills/gate .claude/skills/gate
$ npx degit developzone5/sanad/codex/skills/sanad .claude/skills/sanad
$ npx degit developzone5/sanad/codex/skills/ship .claude/skills/ship
$ npx degit developzone5/sanad/codex/skills/spec .claude/skills/spec
$ npx degit developzone5/sanad/skills/demo .claude/skills/demo
$ npx degit developzone5/sanad/skills/explain-pr .claude/skills/explain-pr
$ npx degit developzone5/sanad/skills/full-output-enforcement .claude/skills/full-output-enforcement
$ npx degit developzone5/sanad/skills/impeccable .claude/skills/impeccable
$ npx degit developzone5/sanad/skills/sanad-implementation .claude/skills/sanad-implementation
$ npx degit developzone5/sanad/skills/worktree .claude/skills/worktree
$ curl -fsSL --create-dirs -o .claude/agents/braintrust-expert-sonnet.md https://raw.githubusercontent.com/developzone5/sanad/main/agents/braintrust-expert-sonnet.md
$ curl -fsSL --create-dirs -o .claude/agents/braintrust-expert.md https://raw.githubusercontent.com/developzone5/sanad/main/agents/braintrust-expert.md
$ curl -fsSL --create-dirs -o .claude/agents/independent-reviewer.md https://raw.githubusercontent.com/developzone5/sanad/main/agents/independent-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/routine-reviewer.md https://raw.githubusercontent.com/developzone5/sanad/main/agents/routine-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/routing-boss.md https://raw.githubusercontent.com/developzone5/sanad/main/agents/routing-boss.md
$ curl -fsSL --create-dirs -o .claude/agents/sonnet-worker.md https://raw.githubusercontent.com/developzone5/sanad/main/agents/sonnet-worker.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Bash(gh pr merge*)",
      "PowerShell(gh pr merge*)",
      "Bash(gh release create*)",
      "PowerShell(gh release create*)",
      "Bash(git add .)",
      "PowerShell(git add .)",
      "Bash(git add -A*)",
      "PowerShell(git add -A*)"
    ],
    "ask": [
      "Bash(git push*)",
      "PowerShell(git push*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "node"
          },
          {
            "type": "command",
            "command": "node"
          },
          {
            "type": "command",
            "command": "node"
          }
        ]
      },
      {
        "matcher": "PowerShell",
        "hooks": [
          {
            "type": "command",
            "command": "node"
          },
          {
            "type": "command",
            "command": "node"
          },
          {
            "type": "command",
            "command": "node"
          }
        ]
      },
      {
        "matcher": "Edit|Write|MultiEdit|NotebookEdit|Bash|PowerShell",
        "hooks": [
          {
            "type": "command",
            "command": "node"
          }
        ]
      }
    ]
  }
}

Skills (11)

Subagents (6)

braintrust-expert-sonnet
model: sonnet
One practical braintrust specialist seat (Pragmatist, Performance expert, Product advocate or Test designer). Read-only Sonnet (newest) at xhigh effort; the prompt names the seat and its question. Dee
braintrust-expert
model: opus
One deep-risk braintrust specialist seat (Architect, Skeptic, Database optimizer, Security auditor, Authenticity reviewer, Client state, or an added domain specialist). Read-only Opus (newest) at xhig
independent-reviewer
model: opus
Sanad Step 3.5 Pass A reviewer. Read-only Opus (newest) at xhigh effort that traces a list of concrete inputs through the risk files of a finished code change (auth/tenant, DB/concurrency, money, file
routine-reviewer
model: sonnet
Sanad Step 3.5 Pass B reviewer and every re-check after a fix. Read-only Sonnet (newest) at xhigh effort that checks the whole diff (backend, frontend, i18n, tests, comments) against Done means and th
routing-boss
model: fable
Sanad routing boss and braintrust final reviewer. Read-only Fable (newest) at xhigh effort; routes uncertain or sensitive implementation work and later reviews specialist reports for the final design
sonnet-worker
model: sonnet
Sonnet (newest) worker for Sanad `direct`-route edits only (typo, rename, text/i18n, one obvious mechanical line — no behavior, access, data or shared-contract change) for test-only items (tests for c

Hooks (9)

eventmatcherruns
PreToolUseBashnode
PreToolUseBashnode
PreToolUseBashnode
PreToolUsePowerShellnode
PreToolUsePowerShellnode
PreToolUsePowerShellnode
PreToolUseEdit|Write|MultiEdit|NotebookEdit|Bash|PowerShellnode
Stop*node
SessionStart*node

Permissions

deny (8)
Bash(gh pr merge*)
PowerShell(gh pr merge*)
Bash(gh release create*)
PowerShell(gh release create*)
Bash(git add .)
PowerShell(git add .)
Bash(git add -A*)
PowerShell(git add -A*)
ask (2)
Bash(git push*)
PowerShell(git push*)
allow (57)
Bash(git status*)
Bash(git log*)
Bash(git diff*)
Bash(git branch*)
Bash(git show*)
Bash(git blame*)
Bash(git add *)
Bash(git commit*)
Bash(git fetch*)
PowerShell(git add *)
PowerShell(git commit*)
PowerShell(git fetch*)
PowerShell(git status*)
PowerShell(git log*)
PowerShell(git diff*)
PowerShell(git branch*)
PowerShell(git show*)
PowerShell(git blame*)
PowerShell(Get-ChildItem*)
PowerShell(Get-Content*)
PowerShell(Test-Path*)
PowerShell(Get-Command*)
Bash(dotnet build*)
Bash(dotnet test*)
Bash(dotnet watch*)
Bash(dotnet run*)
Bash(dotnet ef*)
Bash(npm test*)
Bash(npm ci*)
Bash(pnpm *)
Bash(yarn *)
Bash(pytest*)
Bash(gh pr view*)
Bash(gh pr list*)
Bash(gh pr checks*)
Bash(gh pr diff*)
Bash(gh run list*)
Bash(gh run view*)
Bash(gh repo view*)
PowerShell(dotnet build*)
PowerShell(dotnet test*)
PowerShell(dotnet watch*)
PowerShell(dotnet run*)
PowerShell(dotnet ef*)
PowerShell(npm test*)
PowerShell(npm ci*)
PowerShell(pnpm *)
PowerShell(yarn *)
PowerShell(pytest*)
PowerShell(gh pr view*)
PowerShell(gh pr list*)
PowerShell(gh pr checks*)
PowerShell(gh pr diff*)
PowerShell(gh run list*)
PowerShell(gh run view*)
PowerShell(gh repo view*)
Read(~/.claude/codex-reviews/**)

Similar rigs

copied ✓