rubensrdev/ruleref
Árbitro de reglamentos de juegos de mesa para iOS: importa el PDF, busca la regla y la ves en su página original, resaltada. Sin conexión. Proyecto final de AI Expert (DevExpert).
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
up to ~7.5k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
5/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 66/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code $ claude mcp add cupertino -- cupertino serve $ claude mcp add xcode -- xcrun mcpbridge $ npx degit rubensrdev/ruleref/.claude ./rig-ruleref # 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.
$ claude mcp add cupertino -- cupertino serve $ claude mcp add xcode -- xcrun mcpbridge
$ npx degit rubensrdev/ruleref/.agents/skills/build-brief .claude/skills/build-brief $ npx degit rubensrdev/ruleref/.agents/skills/feature-flow .claude/skills/feature-flow $ npx degit rubensrdev/ruleref/.agents/skills/feature-implementer .claude/skills/feature-implementer $ npx degit rubensrdev/ruleref/.agents/skills/feature-spec .claude/skills/feature-spec $ npx degit rubensrdev/ruleref/.agents/skills/feature-validator .claude/skills/feature-validator $ npx degit rubensrdev/ruleref/.agents/skills/xcode-mcp .claude/skills/xcode-mcp
$ curl -fsSL --create-dirs -o .claude/agents/feature-implementer.md https://raw.githubusercontent.com/rubensrdev/ruleref/main/.claude/agents/feature-implementer.md $ curl -fsSL --create-dirs -o .claude/agents/feature-validator.md https://raw.githubusercontent.com/rubensrdev/ruleref/main/.claude/agents/feature-validator.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 *)",
"Bash(git reset --hard *)",
"Read(/**/.env)",
"Read(/**/.env.*)",
"Edit(/**/*.xcodeproj/**)",
"Edit(/**/*.xcworkspace/**)",
"Edit(/.git/**)",
"mcp__pencil",
"mcp__xcode__XcodeWrite",
"mcp__xcode__XcodeUpdate",
"mcp__xcode__XcodeMakeDir",
"mcp__xcode__XcodeMV",
"mcp__xcode__XcodeRM",
"mcp__xcode__XcodeNewProject",
"mcp__xcode__XcodeNewTarget",
"mcp__xcode__AddEntitlement",
"mcp__xcode__AddInfoPlist",
"mcp__xcode__UpdateTargetBuildSetting",
"mcp__xcode__UpdateFileCompilerFlags",
"mcp__xcode__StringCatalogEdit",
"mcp__xcode__LocalizationPlanner"
],
"ask": [
"Bash(git push *)",
"mcp__xcode__BuildProject",
"mcp__xcode__RunAllTests",
"mcp__xcode__RunSomeTests",
"mcp__xcode__RenderPreview",
"mcp__xcode__RunProject",
"mcp__xcode__StopProject",
"mcp__xcode__RunCodeSnippet",
"mcp__xcode__InvokeDebuggerCommand",
"mcp__xcode__DeviceInteractionStartSession",
"mcp__xcode__DeviceInteractionStartWorkspaceSession",
"mcp__xcode__DeviceInteractionInstallAndRun",
"mcp__xcode__DeviceInteractionSynthesize",
"mcp__xcode__DeviceInteractionEndSession",
"mcp__xcode__XcodeSwitchScheme",
"mcp__xcode__XcodeSwitchRunDestination",
"mcp__xcode__XcodeSwitchTestPlan",
"mcp__xcode__StringCatalogRead",
"mcp__xcode__StringCatalogContext",
"mcp__xcode__GetTopCrashIssues",
"mcp__xcode__GetCrashIssueLogs",
"mcp__xcode__GetTopFieldPerformanceIssues",
"mcp__xcode__GetFieldPerformanceIssueLogs"
]
},
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/protect-files.sh"
},
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/spec-approval-guard.sh"
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-dangerous-commands.sh"
},
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/secrets-commit-guard.sh"
},
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/spec-approval-guard.sh"
}
]
},
{
"matcher": "mcp__xcode__.*",
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/xcode-mcp-write-guard.sh"
}
]
}
]
}
} MCP servers (2)
| server | source | est. tokens |
|---|---|---|
| cupertino | binary | 2.5k |
| xcrun · "xcode" | binary | 2.5k |
Skills (6)
Subagents (2)
| feature-implementer model: opus | Implements one RuleRef feature from its approved spec, or applies a validator repair brief to it, and leaves it passing with evidence. Use when the orchestrator delegates implementing or repairing a f |
| feature-validator model: opus | Independent, read-only validator for one RuleRef feature. Use after a feature is passing to get an accept, revise or block verdict. It never implements and never edits files. |
Hooks (8)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Write|Edit | "$CLAUDE_PROJECT_DIR"/.claude/hooks/protect-files.sh |
| PreToolUse | Write|Edit | "$CLAUDE_PROJECT_DIR"/.claude/hooks/spec-approval-guard.sh |
| PreToolUse | Bash | "$CLAUDE_PROJECT_DIR"/.claude/hooks/block-dangerous-commands.sh |
| PreToolUse | Bash | "$CLAUDE_PROJECT_DIR"/.claude/hooks/secrets-commit-guard.sh |
| PreToolUse | Bash | "$CLAUDE_PROJECT_DIR"/.claude/hooks/spec-approval-guard.sh |
| PreToolUse | mcp__xcode__.* | "$CLAUDE_PROJECT_DIR"/.claude/hooks/xcode-mcp-write-guard.sh |
| PostToolUse | Write|Edit | "$CLAUDE_PROJECT_DIR"/.claude/hooks/constitution-lint.sh |
| Stop | * | "$CLAUDE_PROJECT_DIR"/.claude/hooks/stop-build-gate.sh |
Permissions
deny (21)
Bash(gh pr merge *)
Bash(git reset --hard *)
Read(/**/.env)
Read(/**/.env.*)
Edit(/**/*.xcodeproj/**)
Edit(/**/*.xcworkspace/**)
Edit(/.git/**)
mcp__pencil
mcp__xcode__XcodeWrite
mcp__xcode__XcodeUpdate
mcp__xcode__XcodeMakeDir
mcp__xcode__XcodeMV
mcp__xcode__XcodeRM
mcp__xcode__XcodeNewProject
mcp__xcode__XcodeNewTarget
mcp__xcode__AddEntitlement
mcp__xcode__AddInfoPlist
mcp__xcode__UpdateTargetBuildSetting
mcp__xcode__UpdateFileCompilerFlags
mcp__xcode__StringCatalogEdit
mcp__xcode__LocalizationPlanner
ask (23)
Bash(git push *)
mcp__xcode__BuildProject
mcp__xcode__RunAllTests
mcp__xcode__RunSomeTests
mcp__xcode__RenderPreview
mcp__xcode__RunProject
mcp__xcode__StopProject
mcp__xcode__RunCodeSnippet
mcp__xcode__InvokeDebuggerCommand
mcp__xcode__DeviceInteractionStartSession
mcp__xcode__DeviceInteractionStartWorkspaceSession
mcp__xcode__DeviceInteractionInstallAndRun
mcp__xcode__DeviceInteractionSynthesize
mcp__xcode__DeviceInteractionEndSession
mcp__xcode__XcodeSwitchScheme
mcp__xcode__XcodeSwitchRunDestination
mcp__xcode__XcodeSwitchTestPlan
mcp__xcode__StringCatalogRead
mcp__xcode__StringCatalogContext
mcp__xcode__GetTopCrashIssues
mcp__xcode__GetCrashIssueLogs
mcp__xcode__GetTopFieldPerformanceIssues
mcp__xcode__GetFieldPerformanceIssueLogs
allow (30)
Bash(./init.sh)
Bash(./init.sh *)
Bash(xcodebuild -list *)
Bash(xcodebuild build *)
Bash(xcodebuild test *)
Bash(xcodebuild build-for-testing *)
Bash(xcodebuild test-without-building *)
Bash(xcrun simctl list *)
Bash(git add *)
Bash(git commit *)
mcp__cupertino__*
mcp__xcode__XcodeListWorkspaces
mcp__xcode__XcodeOpenWorkspace
mcp__xcode__XcodeCloseWorkspace
mcp__xcode__XcodeRead
mcp__xcode__XcodeGlob
mcp__xcode__XcodeGrep
mcp__xcode__XcodeLS
mcp__xcode__XcodeListRunDestinations
mcp__xcode__XcodeListSchemes
mcp__xcode__XcodeListTargets
mcp__xcode__XcodeListTestPlans
mcp__xcode__XcodeListTemplates
mcp__xcode__GetTargetBuildSettings
mcp__xcode__GetFileCompilerFlags
mcp__xcode__GetBuildLog
mcp__xcode__GetTestList
mcp__xcode__GetConsoleOutput
mcp__xcode__XcodeRefreshCodeIssuesInFile
mcp__xcode__DocumentationSearch
Similar rigs
Gary-Ash/dotfiles
My macOS software developer system "dot" files
Pragmatist 7.5k tok · · Q15
goodmai/basalt
Turn your Mac into a local LLM server: MLX on Metal, OpenAI + Anthropic API + MCP, pure Swift. Point Claude Code at it.
Skill Collector 5.3k tok · · Q0
heltondoria/claude-code-sdd-kit
Specification-Driven Development toolkit for Claude Code — skills, hooks, agents, and templates for TDD-first project workflows
Skill Collector 2.2k tok · · Q0
awahids/noskill
Skill dan agent untuk kerja development seperti tim engineering: tiket dikerjakan developer, dicek reviewer, diuji QA, lalu masuk DONE. Kodenya hanya mengubah yang diminta, memakai ulang yang sudah ada, dan setiap klaim selesai disertai buk
Skill Collector 254 tok · · Q0