~ / rigs / open-coder-ai / chock-catalog

open-coder-ai/chock-catalog

Policies that stop your coding agent from doing the thing you would have caught in review. The policy catalog for Chock: git-hook gates, command guards, and agent rules with replayed evals.

stack: Python
share on X
ARCHETYPE
Skill Collector
Ten-plus skills loaded on demand. A procedural-knowledge library.
CONTEXT TAX · EVERY TURN
~7.4k tokens
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 33/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit open-coder-ai/chock-catalog/.claude ./rig-chock-catalog  # 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 open-coder-ai/chock-catalog/.agents/policies/agent-discipline/skills/agent-discipline .claude/skills/agent-discipline
$ npx degit open-coder-ai/chock-catalog/.agents/policies/block-curl-pipe-sh/skills/block-curl-pipe-sh .claude/skills/block-curl-pipe-sh
$ npx degit open-coder-ai/chock-catalog/.agents/policies/block-destructive-commands/skills/block-destructive-commands .claude/skills/block-destructive-commands
$ npx degit open-coder-ai/chock-catalog/.agents/policies/block-invisible-unicode/skills/block-invisible-unicode .claude/skills/block-invisible-unicode
$ npx degit open-coder-ai/chock-catalog/.agents/policies/block-no-verify/skills/block-no-verify .claude/skills/block-no-verify
$ npx degit open-coder-ai/chock-catalog/.agents/policies/block-unapproved-egress/skills/block-unapproved-egress .claude/skills/block-unapproved-egress
$ npx degit open-coder-ai/chock-catalog/.agents/policies/block-wildcard-agent-permissions/skills/block-wildcard-agent-permissions .claude/skills/block-wildcard-agent-permissions
$ npx degit open-coder-ai/chock-catalog/.agents/policies/code-safety/skills/code-safety .claude/skills/code-safety
$ npx degit open-coder-ai/chock-catalog/.agents/policies/context-hygiene/skills/context-hygiene .claude/skills/context-hygiene
$ npx degit open-coder-ai/chock-catalog/.agents/policies/firecrawl-fallback-only/skills/firecrawl-fallback-only .claude/skills/firecrawl-fallback-only
$ npx degit open-coder-ai/chock-catalog/.agents/policies/git-safety/skills/git-safety .claude/skills/git-safety
$ npx degit open-coder-ai/chock-catalog/.agents/policies/injection-defense/skills/injection-defense .claude/skills/injection-defense
$ npx degit open-coder-ai/chock-catalog/.agents/policies/memory-discipline/skills/memory-discipline .claude/skills/memory-discipline
$ npx degit open-coder-ai/chock-catalog/.agents/policies/pin-github-actions/skills/pin-github-actions .claude/skills/pin-github-actions
$ npx degit open-coder-ai/chock-catalog/.agents/policies/protect-agent-config/skills/protect-agent-config .claude/skills/protect-agent-config
$ npx degit open-coder-ai/chock-catalog/.agents/policies/protect-ci-workflows/skills/protect-ci-workflows .claude/skills/protect-ci-workflows
$ npx degit open-coder-ai/chock-catalog/.agents/policies/protect-commit-privacy/skills/protect-commit-privacy .claude/skills/protect-commit-privacy
$ npx degit open-coder-ai/chock-catalog/.agents/policies/protect-main-branch/skills/protect-main-branch .claude/skills/protect-main-branch
$ npx degit open-coder-ai/chock-catalog/.agents/policies/scan-secrets/skills/scan-secrets .claude/skills/scan-secrets
$ npx degit open-coder-ai/chock-catalog/.agents/policies/token-efficiency/skills/token-efficiency .claude/skills/token-efficiency
$ npx degit open-coder-ai/chock-catalog/.agents/policies/verify-catalog-conformance/skills/verify-catalog-conformance .claude/skills/verify-catalog-conformance
$ npx degit open-coder-ai/chock-catalog/.agents/policies/verify-dependency-exists/skills/verify-dependency-exists .claude/skills/verify-dependency-exists
$ npx degit open-coder-ai/chock-catalog/.agents/policies/verify-mcp-allowlist/skills/verify-mcp-allowlist .claude/skills/verify-mcp-allowlist
$ npx degit open-coder-ai/chock-catalog/.agents/skills/eval .claude/skills/eval
$ npx degit open-coder-ai/chock-catalog/.agents/skills/optimize .claude/skills/optimize
$ npx degit open-coder-ai/chock-catalog/.agents/skills/policy-init .claude/skills/policy-init
$ npx degit open-coder-ai/chock-catalog/.agents/skills/validate .claude/skills/validate
$ npx degit open-coder-ai/chock-catalog/agentic-security/agentic-code-security/skills/agentic-code-security .claude/skills/agentic-code-security
$ npx degit open-coder-ai/chock-catalog/agentic-security/block-unpinned-agent-components/skills/block-unpinned-agent-components .claude/skills/block-unpinned-agent-components
$ npx degit open-coder-ai/chock-catalog/agentic-security/block-unsafe-code-execution/skills/block-unsafe-code-execution .claude/skills/block-unsafe-code-execution
$ npx degit open-coder-ai/chock-catalog/agentic-security/block-wildcard-iam/skills/block-wildcard-iam .claude/skills/block-wildcard-iam
$ npx degit open-coder-ai/chock-catalog/agentic-security/iam-policy-scan/skills/iam-policy-scan .claude/skills/iam-policy-scan
$ npx degit open-coder-ai/chock-catalog/agentic-security/owasp-asi01-agent-goal-hijack/skills/owasp-asi01-agent-goal-hijack .claude/skills/owasp-asi01-agent-goal-hijack
$ npx degit open-coder-ai/chock-catalog/agentic-security/owasp-asi02-tool-misuse/skills/owasp-asi02-tool-misuse .claude/skills/owasp-asi02-tool-misuse
$ npx degit open-coder-ai/chock-catalog/agentic-security/owasp-asi03-identity-privilege-abuse/skills/owasp-asi03-identity-privilege-abuse .claude/skills/owasp-asi03-identity-privilege-abuse
$ npx degit open-coder-ai/chock-catalog/agentic-security/owasp-asi04-agentic-supply-chain/skills/owasp-asi04-agentic-supply-chain .claude/skills/owasp-asi04-agentic-supply-chain
$ npx degit open-coder-ai/chock-catalog/agentic-security/owasp-asi05-unexpected-code-execution/skills/owasp-asi05-unexpected-code-execution .claude/skills/owasp-asi05-unexpected-code-execution
$ npx degit open-coder-ai/chock-catalog/agentic-security/owasp-asi06-memory-context-poisoning/skills/owasp-asi06-memory-context-poisoning .claude/skills/owasp-asi06-memory-context-poisoning
$ npx degit open-coder-ai/chock-catalog/agentic-security/owasp-asi07-insecure-inter-agent-communication/skills/owasp-asi07-insecure-inter-agent-communication .claude/skills/owasp-asi07-insecure-inter-agent-communication
$ npx degit open-coder-ai/chock-catalog/agentic-security/owasp-asi08-cascading-failures/skills/owasp-asi08-cascading-failures .claude/skills/owasp-asi08-cascading-failures

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": "Bash|PowerShell",
        "hooks": [
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --guard \".agents/policies/block-curl"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --guard \".agents/policies/block-dest"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --guard \".agents/policies/block-no-v"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --guard \".agents/policies/block-unap"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --guard \".agents/policies/protect-ag"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --guard \".agents/policies/protect-ci"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --guard \".agents/policies/protect-co"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --guard \".agents/policies/verify-mcp"
          }
        ]
      },
      {
        "matcher": "Write|Edit|MultiEdit|NotebookEdit",
        "hooks": [
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --gate \".chock/compiled/block-invisi"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --gate \".chock/compiled/block-wildca"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --gate \".chock/compiled/pin-github-a"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --gate \".chock/compiled/protect-agen"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --gate \".chock/compiled/scan-secrets"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --gate \".chock/compiled/verify-mcp-a"
          }
        ]
      },
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --tool-call \".chock/compiled/firecra"
          },
          {
            "type": "command",
            "command": "git -c \"alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh\" chock-hook .chock/bin/claude_code.py --tool-call \".chock/compiled/token-e"
          }
        ]
      }
    ]
  }
}

Skills (77)

agent-disciplineblock-curl-pipe-shblock-destructive-commandsblock-invisible-unicodeblock-no-verifyblock-unapproved-egressblock-wildcard-agent-permissionscode-safetycontext-hygienefirecrawl-fallback-onlygit-safetyinjection-defensememory-disciplinepin-github-actionsprotect-agent-configprotect-ci-workflowsprotect-commit-privacyprotect-main-branchscan-secretstoken-efficiencyverify-catalog-conformanceverify-dependency-existsverify-mcp-allowlistevaloptimizepolicy-initvalidateagentic-code-securityblock-unpinned-agent-componentsblock-unsafe-code-executionblock-wildcard-iamiam-policy-scanowasp-asi01-agent-goal-hijackowasp-asi02-tool-misuseowasp-asi03-identity-privilege-abuseowasp-asi04-agentic-supply-chainowasp-asi05-unexpected-code-executionowasp-asi06-memory-context-poisoningowasp-asi07-insecure-inter-agent-communicationowasp-asi08-cascading-failuresowasp-asi09-human-agent-trustowasp-asi10-rogue-agentsagent-devenv-autoexecagent-permissions-scana<redacted>block-fetch-exec-in-filesblock-hook-bypass-in-filesblock-persistence-shapesblock-secret-store-readsblock-test-skipsblock-unguarded-agent-spawnchock-miseci-github-actions-securitycompromised-package-iocdockerfile-compose-securityguard-deletionguard-memory-writeshardening-flagsjava-securitylimit-diff-sizelockfile-integrityno-a11y-regressionopaque-blob-guardpackage-lifecycle-scriptsprotect-test-integrityrefname-filename-metacharregistry-configreview-like-a-red-teamrtk-dangerous-actions-blockerscan-hidden-contentscan-instruction-filesscan-secret-filesscan-secrets-entropyscan-suppression-markerseu-ai-act-high-risk-triageeu-ai-act-prohibited-practiceseu-ai-act-transparency

Hooks (27)

eventmatcherruns
PreToolUseBash|PowerShellgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --guard ".agents/policies/block-curl
PreToolUseBash|PowerShellgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --guard ".agents/policies/block-dest
PreToolUseWrite|Edit|MultiEdit|NotebookEditgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/block-invisi
PreToolUseBash|PowerShellgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --guard ".agents/policies/block-no-v
PreToolUseBash|PowerShellgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --guard ".agents/policies/block-unap
PreToolUseWrite|Edit|MultiEdit|NotebookEditgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/block-wildca
PreToolUse*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --tool-call ".chock/compiled/firecra
PreToolUseWrite|Edit|MultiEdit|NotebookEditgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/pin-github-a
PreToolUseWrite|Edit|MultiEdit|NotebookEditgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/protect-agen
PreToolUseBash|PowerShellgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --guard ".agents/policies/protect-ag
PreToolUseBash|PowerShellgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --guard ".agents/policies/protect-ci
PreToolUseBash|PowerShellgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --guard ".agents/policies/protect-co
PreToolUseWrite|Edit|MultiEdit|NotebookEditgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/scan-secrets
PreToolUse*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --tool-call ".chock/compiled/token-e
PreToolUseWrite|Edit|MultiEdit|NotebookEditgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/verify-mcp-a
PreToolUseBash|PowerShellgit -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --guard ".agents/policies/verify-mcp
SessionStart*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py
Stop*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/block-invisi
Stop*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/block-wildca
Stop*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/pin-github-a
Stop*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/protect-agen
Stop*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/scan-secrets
Stop*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --gate ".chock/compiled/verify-mcp-a
PostToolUse*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --record ".chock/compiled/firecrawl-
PostToolUse*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --record ".chock/compiled/token-effi
PostToolUseFailure*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --record ".chock/compiled/firecrawl-
PostToolUseFailure*git -c "alias.chock-hook=!test -f .chock/bin/launch.sh || { echo chock: no .chock/bin/launch.sh here, run chock sync --repo . >&2; exit 2; }; sh .chock/bin/launch.sh" chock-hook .chock/bin/claude_code.py --record ".chock/compiled/token-effi

Cursor rules (1)

chock · always

Similar rigs

copied ✓