~ / rigs / BhodiSea / next-expo-supabase-agent-harness

BhodiSea/next-expo-supabase-agent-harness

A CLI that scaffolds a Next.js and Expo (React Native) monorepo on Supabase, with Claude Code hooks and CI gates that block an agent turn or a merge until validation passes.

↗ GitHub ★ 8 Apache-2.0 updated 19d ago personal setup Claude CodeCodex Claude plugin
share on X
ARCHETYPE
YOLO Cowboy
Permissions? Never heard of 'em. Ships at the speed of `--dangerously-skip-permissions`.
CONTEXT TAX · EVERY TURN
up to ~11.1k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
4/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · Sandbox or ask-first rules · details
Quality 54/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit BhodiSea/next-expo-supabase-agent-harness/.claude ./rig-next-expo-supabase-agent-harness  # 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 BhodiSea/next-expo-supabase-agent-harness/plugin/skills/authoring-e2ee-feature .claude/skills/authoring-e2ee-feature
$ npx degit BhodiSea/next-expo-supabase-agent-harness/plugin/skills/authoring-vertical-slice .claude/skills/authoring-vertical-slice
$ npx degit BhodiSea/next-expo-supabase-agent-harness/plugin/skills/designing-mobile-ui .claude/skills/designing-mobile-ui
$ curl -fsSL --create-dirs -o .claude/agents/accessibility-reviewer.md https://raw.githubusercontent.com/BhodiSea/next-expo-supabase-agent-harness/main/template/base/.claude/agents/accessibility-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/architecture-reviewer.md https://raw.githubusercontent.com/BhodiSea/next-expo-supabase-agent-harness/main/template/base/.claude/agents/architecture-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/citation-verifier.md https://raw.githubusercontent.com/BhodiSea/next-expo-supabase-agent-harness/main/template/base/.claude/agents/citation-verifier.md
$ curl -fsSL --create-dirs -o .claude/agents/dal-author.md https://raw.githubusercontent.com/BhodiSea/next-expo-supabase-agent-harness/main/template/base/.claude/agents/dal-author.md
$ curl -fsSL --create-dirs -o .claude/agents/design-reviewer.md https://raw.githubusercontent.com/BhodiSea/next-expo-supabase-agent-harness/main/template/base/.claude/agents/design-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/migration-rls-author.md https://raw.githubusercontent.com/BhodiSea/next-expo-supabase-agent-harness/main/template/base/.claude/agents/migration-rls-author.md
$ curl -fsSL --create-dirs -o .claude/agents/mobile-security-reviewer.md https://raw.githubusercontent.com/BhodiSea/next-expo-supabase-agent-harness/main/template/base/.claude/agents/mobile-security-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/security-reviewer.md https://raw.githubusercontent.com/BhodiSea/next-expo-supabase-agent-harness/main/template/base/.claude/agents/security-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/test-author.md https://raw.githubusercontent.com/BhodiSea/next-expo-supabase-agent-harness/main/template/base/.claude/agents/test-author.md
$ curl -fsSL --create-dirs -o .claude/agents/torvalds-reviewer.md https://raw.githubusercontent.com/BhodiSea/next-expo-supabase-agent-harness/main/template/base/.claude/agents/torvalds-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/web-security-reviewer.md https://raw.githubusercontent.com/BhodiSea/next-expo-supabase-agent-harness/main/template/base/.claude/agents/web-security-reviewer.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(git push --force:*)",
      "Bash(git push -f:*)",
      "Bash(git reset --hard:*)",
      "Bash(sudo:*)",
      "Read(./**/.env)",
      "Read(./**/.env.*)",
      "Read(./.dev-auth/**)",
      "Read(~/.ssh/**)",
      "Read(./**/*.keystore)",
      "Read(./**/*.jks)",
      "Read(./**/*.p8)",
      "Read(./**/*.p12)",
      "Read(./**/credentials.json)",
      "Bash(curl:*)",
      "Bash(wget:*)",
      "Bash(rm -rf:*)",
      "Bash(rm -fr:*)",
      "Bash(rm -Rf:*)",
      "Bash(rm -fR:*)",
      "Bash(rm -r -f:*)",
      "Bash(rm -R -f:*)",
      "Bash(git push --force:*)",
      "Bash(git push -f:*)",
      "Bash(git reset --hard:*)",
      "Bash(pnpm exec expo prebuild*)",
      "Bash(eas credentials:*)",
      "Read(./.env)",
      "Read(./.env.local)",
      "Read(./.env.*.local)",
      "Read(./**/.env)",
      "Read(./**/.env.local)",
      "Read(./**/.env.*.local)",
      "Read(./.dev-auth/**)",
      "Read(./**/*.keystore)",
      "Read(./**/*.jks)",
      "Read(./**/*.p8)",
      "Read(./**/*.p12)",
      "Read(./**/*.mobileprovision)",
      "Read(./**/google-services.json)",
      "Read(./**/GoogleService-Info.plist)",
      "Read(./**/credentials.json)",
      "Read(~/.ssh/**)",
      "Edit(~/.claude/settings.json)",
      "Write(~/.claude/settings.json)",
      "Edit(~/.claude/settings.local.json)",
      "Write(~/.claude/settings.local.json)",
      "Edit(./.claude/hooks/**)",
      "Write(./.claude/hooks/**)",
      "Edit(./.claude/settings.json)",
      "Write(./.claude/settings.json)",
      "Edit(./.claude/settings.local.json)",
      "Write(./.claude/settings.local.json)",
      "Edit(./.mcp.json)",
      "Write(./.mcp.json)",
      "Edit(./.harness/**)",
      "Write(./.harness/**)",
      "Edit(./apps/mobile/android/**)",
      "Write(./apps/mobile/android/**)",
      "Edit(./apps/mobile/ios/**)",
      "Write(./apps/mobile/ios/**)"
    ],
    "ask": [
      "Bash(git push --force-with-lease:*)",
      "Bash(git push --delete:*)",
      "Bash(git tag -d:*)",
      "Bash(git clean:*)",
      "Bash(rm -rf ~:*)",
      "Bash(rm -rf /Users:*)",
      "Bash(rm -rf .:*)",
      "Bash(rm -rf ..:*)",
      "Bash(npm publish:*)",
      "Bash(pnpm publish:*)",
      "Bash(gh release delete:*)",
      "Bash(gh repo delete:*)",
      "Bash(docker compose down -v:*)",
      "Bash(docker volume rm:*)",
      "Bash(docker volume prune:*)",
      "Bash(docker system prune:*)",
      "Bash(git push --force-with-lease:*)",
      "Bash(git push --delete:*)",
      "Bash(git tag -d:*)",
      "Bash(git clean:*)",
      "Bash(docker compose down -v:*)",
      "Bash(docker volume rm:*)",
      "Bash(docker volume prune:*)",
      "Bash(docker system prune:*)",
      "Bash(pnpm publish:*)",
      "Bash(npm publish:*)",
      "Bash(sudo:*)",
      "Bash(eas build:*)",
      "Bash(eas submit:*)",
      "Bash(eas update:*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash|Monitor|PowerShell",
        "hooks": [
          {
            "type": "command",
            "command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/pretool-bash-guard.mjs\""
          },
          {
            "type": "command",
            "command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/launch.mjs\" pretool-bash-guard.mjs"
          }
        ]
      },
      {
        "matcher": "Edit|Write|MultiEdit|NotebookEdit",
        "hooks": [
          {
            "type": "command",
            "command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/pretool-write-guard.mjs\""
          },
          {
            "type": "command",
            "command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/launch.mjs\" pretool-write-guard.mjs"
          }
        ]
      },
      {
        "matcher": "mcp__.*",
        "hooks": [
          {
            "type": "command",
            "command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/launch.mjs\" pretool-mcp-guard.mjs"
          }
        ]
      }
    ]
  }
}

MCP servers (2)

serversourceest. tokens
corpus_search local / custom 2.5k
rls_verify local / custom 2.5k

Skills (3)

Subagents (11)

accessibility-reviewer
model: sonnet
>
architecture-reviewer
model: fable
>
citation-verifier
model: sonnet
>
dal-author
model: opus
>
design-reviewer
model: sonnet
>
migration-rls-author
model: opus
>
mobile-security-reviewer
model: opus
>
security-reviewer
model: opus
>
test-author
model: sonnet
>
torvalds-reviewer
model: opus
>
web-security-reviewer
model: opus
>

Hooks (14)

eventmatcherruns
PreToolUseBash|Monitor|PowerShellnode "$CLAUDE_PROJECT_DIR/.claude/hooks/pretool-bash-guard.mjs"
PreToolUseEdit|Write|MultiEdit|NotebookEditnode "$CLAUDE_PROJECT_DIR/.claude/hooks/pretool-write-guard.mjs"
Stop*node "$CLAUDE_PROJECT_DIR/.claude/hooks/stop-factory-gate.mjs"
PostToolUseEdit|Write|MultiEdit|NotebookEditnode "$CLAUDE_PROJECT_DIR/.claude/hooks/posttool-factory-check.mjs"
SessionStartstartup|resumebash "$CLAUDE_PROJECT_DIR/.claude/hooks/session-start-cloud.sh"
PostToolUseEdit|Write|MultiEditnode "$CLAUDE_PROJECT_DIR/.claude/hooks/launch.mjs" posttool-fast-check.mjs
PostToolUseEdit|Write|MultiEditnode "$CLAUDE_PROJECT_DIR/.claude/hooks/launch.mjs" posttool-source-check.mjs
PreToolUseBash|Monitor|PowerShellnode "$CLAUDE_PROJECT_DIR/.claude/hooks/launch.mjs" pretool-bash-guard.mjs
PreToolUseEdit|Write|MultiEdit|NotebookEditnode "$CLAUDE_PROJECT_DIR/.claude/hooks/launch.mjs" pretool-write-guard.mjs
PreToolUsemcp__.*node "$CLAUDE_PROJECT_DIR/.claude/hooks/launch.mjs" pretool-mcp-guard.mjs
SessionStart*node "$CLAUDE_PROJECT_DIR/.claude/hooks/session-brief.mjs"
Stop*node "$CLAUDE_PROJECT_DIR/.claude/hooks/launch.mjs" stop-validate-gate.mjs
SubagentStart*node "$CLAUDE_PROJECT_DIR/.claude/hooks/launch.mjs" subagent-verdict.mjs
SubagentStop*node "$CLAUDE_PROJECT_DIR/.claude/hooks/launch.mjs" subagent-verdict.mjs

Slash commands (7)

/adr/new-action/new-feature/new-migration/rls-check/verify-citations/verify-invariants

Permissions

deny (60)
Bash(git push --force:*)
Bash(git push -f:*)
Bash(git reset --hard:*)
Bash(sudo:*)
Read(./**/.env)
Read(./**/.env.*)
Read(./.dev-auth/**)
Read(~/.ssh/**)
Read(./**/*.keystore)
Read(./**/*.jks)
Read(./**/*.p8)
Read(./**/*.p12)
Read(./**/credentials.json)
Bash(curl:*)
Bash(wget:*)
Bash(rm -rf:*)
Bash(rm -fr:*)
Bash(rm -Rf:*)
Bash(rm -fR:*)
Bash(rm -r -f:*)
Bash(rm -R -f:*)
Bash(git push --force:*)
Bash(git push -f:*)
Bash(git reset --hard:*)
Bash(pnpm exec expo prebuild*)
Bash(eas credentials:*)
Read(./.env)
Read(./.env.local)
Read(./.env.*.local)
Read(./**/.env)
Read(./**/.env.local)
Read(./**/.env.*.local)
Read(./.dev-auth/**)
Read(./**/*.keystore)
Read(./**/*.jks)
Read(./**/*.p8)
Read(./**/*.p12)
Read(./**/*.mobileprovision)
Read(./**/google-services.json)
Read(./**/GoogleService-Info.plist)
Read(./**/credentials.json)
Read(~/.ssh/**)
Edit(~/.claude/settings.json)
Write(~/.claude/settings.json)
Edit(~/.claude/settings.local.json)
Write(~/.claude/settings.local.json)
Edit(./.claude/hooks/**)
Write(./.claude/hooks/**)
Edit(./.claude/settings.json)
Write(./.claude/settings.json)
Edit(./.claude/settings.local.json)
Write(./.claude/settings.local.json)
Edit(./.mcp.json)
Write(./.mcp.json)
Edit(./.harness/**)
Write(./.harness/**)
Edit(./apps/mobile/android/**)
Write(./apps/mobile/android/**)
Edit(./apps/mobile/ios/**)
Write(./apps/mobile/ios/**)
ask (30)
Bash(git push --force-with-lease:*)
Bash(git push --delete:*)
Bash(git tag -d:*)
Bash(git clean:*)
Bash(rm -rf ~:*)
Bash(rm -rf /Users:*)
Bash(rm -rf .:*)
Bash(rm -rf ..:*)
Bash(npm publish:*)
Bash(pnpm publish:*)
Bash(gh release delete:*)
Bash(gh repo delete:*)
Bash(docker compose down -v:*)
Bash(docker volume rm:*)
Bash(docker volume prune:*)
Bash(docker system prune:*)
Bash(git push --force-with-lease:*)
Bash(git push --delete:*)
Bash(git tag -d:*)
Bash(git clean:*)
Bash(docker compose down -v:*)
Bash(docker volume rm:*)
Bash(docker volume prune:*)
Bash(docker system prune:*)
Bash(pnpm publish:*)
Bash(npm publish:*)
Bash(sudo:*)
Bash(eas build:*)
Bash(eas submit:*)
Bash(eas update:*)
allow (85)
Bash
Read
WebFetch
WebSearch
Read(//**)
Grep
Glob
WebFetch(domain:supabase.com)
Bash(pnpm install --frozen-lockfile)
Bash(pnpm install --frozen-lockfile --prefer-offline)
Bash(pnpm test)
Bash(GITHUB_BASE_REF=main CI=true pnpm test)
Bash(pnpm exec eslint .)
Bash(pnpm exec eslint . --max-warnings 0)
Bash(pnpm exec tsc --noEmit)
Bash(pnpm exec knip)
Bash(node scripts/check-syntax.mjs)
Bash(node scripts/hygiene.mjs)
Bash(node scripts/check-reuse.mjs)
Bash(node scripts/check-claims.mjs)
Bash(node scripts/check-release-lockstep.mjs)
Bash(node scripts/check-plugin-manifest.mjs)
Bash(node scripts/check-canary-coverage.mjs)
Bash(node scripts/generate-floor.mjs --check)
Bash(node scripts/generate-skill-references.mjs --check)
Bash(node scripts/check-complexity-ratchet.mjs)
Bash(node scripts/check-rule-integrity.mjs)
Bash(node scripts/check-escape-registry.mjs)
Bash(node scripts/check-demo-index.mjs)
Bash(node scripts/check-tier-coverage.mjs)
Bash(node scripts/check-ramp-ledger.mjs)
Bash(node scripts/check-dependency-channel.mjs)
Bash(node scripts/check-obligations.mjs)
Bash(node scripts/check-essential-eight-evidence.mjs)
Bash(node scripts/check-conformance-evidence.mjs)
Bash(node scripts/check-ci-preconditions.mjs)
Bash(node scripts/check-seeded-migrations.mjs)
Bash(node scripts/check-eol-target.mjs)
Bash(node scripts/check-sbom-drift.mjs)
Bash(node scripts/check-released-shas.mjs --verify-tags)
Bash(node installer/cli.mjs init --dir /tmp/scratch --tier core --yes)
Bash(pnpm validate)
Bash(pnpm typecheck)
Bash(pnpm lint)
Bash(pnpm lint:fix)
Bash(pnpm knip)
Bash(pnpm arch)
Bash(pnpm format)
Bash(pnpm test)
Bash(pnpm test:*)
Bash(pnpm exec vitest*)
Bash(pnpm exec jest*)
Bash(pnpm exec biome:*)
Bash(pnpm exec tsc:*)
Bash(pnpm exec eslint*)
Bash(pnpm exec knip*)
Bash(pnpm exec depcruise*)
Bash(pnpm exec expo config*)
Bash(pnpm exec expo export*)
Bash(pnpm exec expo install --check*)

Similar rigs

copied ✓