repository-standards/core
The repository standard: align, verify, drift 0. A method a repository can be measured against, and the tree it ships.
field: Developer tools workflow: Planning & specsTesting & TDDCI/CD & deployGit & commitsPR / code review
stack: JavaScript
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
GUARDRAILS
5/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 53/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code
$ npx degit repository-standards/core/.claude ./rig-core # 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 repository-standards/core/skills/align-to-standards .claude/skills/align-to-standards $ npx degit repository-standards/core/skills/record-run .claude/skills/record-run $ npx degit repository-standards/core/standard/.claude/skills/add-to-backlog .claude/skills/add-to-backlog $ npx degit repository-standards/core/standard/.claude/skills/adr-write .claude/skills/adr-write $ npx degit repository-standards/core/standard/.claude/skills/bdr-write .claude/skills/bdr-write $ npx degit repository-standards/core/standard/.claude/skills/discovery-digest .claude/skills/discovery-digest $ npx degit repository-standards/core/standard/.claude/skills/idea-write .claude/skills/idea-write $ npx degit repository-standards/core/standard/.claude/skills/pre-pr-review .claude/skills/pre-pr-review $ npx degit repository-standards/core/standard/.claude/skills/product-write .claude/skills/product-write $ npx degit repository-standards/core/standard/.claude/skills/roles-write .claude/skills/roles-write $ npx degit repository-standards/core/standard/.claude/skills/show-backlog .claude/skills/show-backlog $ npx degit repository-standards/core/standard/.claude/skills/spec-clarify .claude/skills/spec-clarify $ npx degit repository-standards/core/standard/.claude/skills/spec-impact .claude/skills/spec-impact $ npx degit repository-standards/core/standard/.claude/skills/spec-implement .claude/skills/spec-implement $ npx degit repository-standards/core/standard/.claude/skills/spec-plan .claude/skills/spec-plan $ npx degit repository-standards/core/standard/.claude/skills/spec-reconcile .claude/skills/spec-reconcile $ npx degit repository-standards/core/standard/.claude/skills/spec-specify .claude/skills/spec-specify $ npx degit repository-standards/core/standard/.claude/skills/spec-tasks .claude/skills/spec-tasks $ npx degit repository-standards/core/standard/.claude/skills/spec-update .claude/skills/spec-update $ npx degit repository-standards/core/standard/.claude/skills/sprint-close .claude/skills/sprint-close $ npx degit repository-standards/core/standard/.claude/skills/sprint-open .claude/skills/sprint-open $ npx degit repository-standards/core/standard/.claude/skills/timeline-update .claude/skills/timeline-update $ npx degit repository-standards/core/standard/.claude/skills/update-to-latest .claude/skills/update-to-latest
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(sudo *)",
"Bash(su *)",
"Bash(rm -rf *)",
"Bash(rm -fr *)",
"Bash(rm -r *)",
"Bash(rm -Rf *)",
"Bash(rm -rF *)",
"Bash(dd *)",
"Bash(mkfs *)",
"Bash(diskutil erase*)",
"Bash(diskutil partition*)",
"Bash(shred *)",
"Bash(shutdown *)",
"Bash(reboot *)",
"Bash(halt *)",
"Bash(killall *)",
"Bash(chmod 777 *)",
"Bash(chmod -R 777 *)",
"Bash(git push --force *)",
"Bash(git push --force)",
"Bash(git push -f *)",
"Bash(git push -f)",
"Bash(git push --force-with-lease *)",
"Bash(git push --delete *)",
"Bash(gh repo delete *)",
"Bash(gh release delete *)",
"Bash(gh secret set *)",
"Bash(gh secret delete *)",
"Bash(gh variable set *)",
"Bash(gh variable delete *)",
"Bash(gh api -X DELETE *)",
"Bash(gh api --method DELETE *)",
"Bash(npm publish *)",
"Bash(npm publish)",
"Bash(pnpm publish *)",
"Bash(pnpm publish)",
"Bash(pg_restore *)",
"Bash(prisma migrate *)",
"Bash(prisma db push *)",
"Bash(npx prisma migrate *)",
"Bash(npx prisma db push *)",
"Bash(drizzle-kit *)",
"Bash(npx drizzle-kit *)",
"Bash(knex migrate*)",
"Bash(npx knex migrate*)",
"Bash(node-pg-migrate *)",
"Bash(npx node-pg-migrate *)",
"Bash(typeorm migration*)",
"Bash(npx typeorm migration*)",
"Bash(kysely migrate*)",
"Bash(npx kysely migrate*)",
"Read(**/.env)",
"Read(**/.env.*)",
"Read(**/*.pem)",
"Read(**/id_rsa*)",
"Read(**/id_ed25519*)",
"Read(~/.ssh/**)",
"Read(~/.aws/**)",
"Edit(~/.ssh/**)",
"Write(~/.ssh/**)"
],
"ask": [
"Bash(rm *)",
"Bash(rmdir *)",
"Bash(git push *)",
"Bash(git push)",
"Bash(git reset --hard *)",
"Bash(git reset --hard)",
"Bash(git clean *)",
"Bash(git branch -D *)",
"Bash(git stash drop *)",
"Bash(git stash clear)",
"Bash(docker rm *)",
"Bash(docker rmi *)",
"Bash(docker volume rm *)",
"Bash(docker system prune *)",
"Bash(docker system prune)",
"Bash(fly deploy *)",
"Bash(fly deploy)",
"Bash(flyctl deploy *)",
"Bash(fly secrets set *)",
"Bash(fly secrets unset *)",
"Bash(fly ssh console *)",
"Bash(flyctl ssh console *)",
"Bash(cdk deploy *)",
"Bash(cdk destroy *)",
"Bash(npx cdk deploy *)",
"Bash(npx cdk destroy *)",
"Bash(terraform apply *)",
"Bash(terraform destroy *)",
"Bash(aws ecs update-service *)",
"Bash(psql *)",
"Bash(psql)",
"Bash(pgcli *)",
"Bash(pg_dump *)",
"Bash(pg_dumpall *)",
"Bash(fly postgres *)",
"Bash(flyctl postgres *)",
"Bash(fly pg *)",
"Bash(flyctl pg *)",
"Bash(fly mpg *)",
"Bash(flyctl mpg *)",
"Bash(fly proxy *)",
"Bash(flyctl proxy *)",
"Bash(gh pr merge *)",
"Bash(gh pr close *)",
"Bash(brew uninstall *)",
"Bash(launchctl *)",
"Bash(crontab *)"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit|NotebookEdit|Bash",
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PROJECT_DIR:-.}\"/standard/.claude/hooks/elicitation-guard.mjs || printf '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"Blocked by repository policy: the elicitatio"
},
{
"type": "command",
"command": "node \"${CLAUDE_PROJECT_DIR:-.}\"/.claude/hooks/elicitation-guard.mjs || printf '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"Blocked by repository policy: the elicitation guard c"
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "\"${CLAUDE_PROJECT_DIR:-.}\"/.claude/hooks/guards.sh || printf '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"deny\",\"permissionDecisionReason\":\"Blocked by repository policy: the agent guards could not be run (.clau"
}
]
}
]
}
} Skills (23)
align-to-standardsrecord-runadd-to-backlogadr-writebdr-writediscovery-digestidea-writepre-pr-reviewproduct-writeroles-writeshow-backlogspec-clarifyspec-impactspec-implementspec-planspec-reconcilespec-specifyspec-tasksspec-updatesprint-closesprint-opentimeline-updateupdate-to-latest
Hooks (3)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Write|Edit|NotebookEdit|Bash | node "${CLAUDE_PROJECT_DIR:-.}"/standard/.claude/hooks/elicitation-guard.mjs || printf '{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"deny","permissionDecisionReason":"Blocked by repository policy: the elicitatio |
| PreToolUse | Bash | "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/guards.sh || printf '{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"deny","permissionDecisionReason":"Blocked by repository policy: the agent guards could not be run (.clau |
| PreToolUse | Write|Edit|NotebookEdit|Bash | node "${CLAUDE_PROJECT_DIR:-.}"/.claude/hooks/elicitation-guard.mjs || printf '{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"deny","permissionDecisionReason":"Blocked by repository policy: the elicitation guard c |
Permissions
deny (60)
Bash(sudo *)
Bash(su *)
Bash(rm -rf *)
Bash(rm -fr *)
Bash(rm -r *)
Bash(rm -Rf *)
Bash(rm -rF *)
Bash(dd *)
Bash(mkfs *)
Bash(diskutil erase*)
Bash(diskutil partition*)
Bash(shred *)
Bash(shutdown *)
Bash(reboot *)
Bash(halt *)
Bash(killall *)
Bash(chmod 777 *)
Bash(chmod -R 777 *)
Bash(git push --force *)
Bash(git push --force)
Bash(git push -f *)
Bash(git push -f)
Bash(git push --force-with-lease *)
Bash(git push --delete *)
Bash(gh repo delete *)
Bash(gh release delete *)
Bash(gh secret set *)
Bash(gh secret delete *)
Bash(gh variable set *)
Bash(gh variable delete *)
Bash(gh api -X DELETE *)
Bash(gh api --method DELETE *)
Bash(npm publish *)
Bash(npm publish)
Bash(pnpm publish *)
Bash(pnpm publish)
Bash(pg_restore *)
Bash(prisma migrate *)
Bash(prisma db push *)
Bash(npx prisma migrate *)
Bash(npx prisma db push *)
Bash(drizzle-kit *)
Bash(npx drizzle-kit *)
Bash(knex migrate*)
Bash(npx knex migrate*)
Bash(node-pg-migrate *)
Bash(npx node-pg-migrate *)
Bash(typeorm migration*)
Bash(npx typeorm migration*)
Bash(kysely migrate*)
Bash(npx kysely migrate*)
Read(**/.env)
Read(**/.env.*)
Read(**/*.pem)
Read(**/id_rsa*)
Read(**/id_ed25519*)
Read(~/.ssh/**)
Read(~/.aws/**)
Edit(~/.ssh/**)
Write(~/.ssh/**)
ask (47)
Bash(rm *)
Bash(rmdir *)
Bash(git push *)
Bash(git push)
Bash(git reset --hard *)
Bash(git reset --hard)
Bash(git clean *)
Bash(git branch -D *)
Bash(git stash drop *)
Bash(git stash clear)
Bash(docker rm *)
Bash(docker rmi *)
Bash(docker volume rm *)
Bash(docker system prune *)
Bash(docker system prune)
Bash(fly deploy *)
Bash(fly deploy)
Bash(flyctl deploy *)
Bash(fly secrets set *)
Bash(fly secrets unset *)
Bash(fly ssh console *)
Bash(flyctl ssh console *)
Bash(cdk deploy *)
Bash(cdk destroy *)
Bash(npx cdk deploy *)
Bash(npx cdk destroy *)
Bash(terraform apply *)
Bash(terraform destroy *)
Bash(aws ecs update-service *)
Bash(psql *)
Bash(psql)
Bash(pgcli *)
Bash(pg_dump *)
Bash(pg_dumpall *)
Bash(fly postgres *)
Bash(flyctl postgres *)
Bash(fly pg *)
Bash(flyctl pg *)
Bash(fly mpg *)
Bash(flyctl mpg *)
Bash(fly proxy *)
Bash(flyctl proxy *)
Bash(gh pr merge *)
Bash(gh pr close *)
Bash(brew uninstall *)
Bash(launchctl *)
Bash(crontab *)
allow (0)
—
Similar rigs
martinffx/atelier
An atelier for your Agent: spec-driven workflows, deep thinking, and code quality.
Skill Collector 1.0k tok · · Q0
lbruton/SessionFlow
Semantic search over Claude Code session transcripts. Recovers information lost to context compression.
Skill Collector 10.3k tok · · Q23
developzoneio/dz-kit
Role-based agents and skills for a spec-driven delivery workflow (Claude Code plugin)
Skill Collector 2.5k tok · · Q0
sriwebcoder/claude-sprint-loop
Sprint rhythm for solo Claude Code developers. Each loop compounds — context, retros, and carry-overs stack automatically.
Minimalist 1.8k tok · · Q0