~ / rigs / mlophez / polix-ai

mlophez/polix-ai

Declarative guardrails for Claude Code: one polix.yaml decides what the agent may not touch, what must pass and what runs at every step.

↗ GitHub ★ 4 Apache-2.0 updated 6d ago project Claude CodeCodex Claude plugin
stack: CobraGo
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~1.1k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
2/5
Pre-tool screening hook · No YOLO mode · details
Quality 15/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit mlophez/polix-ai/.claude ./rig-polix-ai  # 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 mlophez/polix-ai/plugins/polix/skills/add-rule .claude/skills/add-rule
$ npx degit mlophez/polix-ai/plugins/polix/skills/audit .claude/skills/audit
$ npx degit mlophez/polix-ai/plugins/polix/skills/doctor .claude/skills/doctor
$ npx degit mlophez/polix-ai/plugins/polix/skills/init .claude/skills/init
$ npx degit mlophez/polix-ai/plugins/polix/skills/plan .claude/skills/plan
$ npx degit mlophez/polix-ai/plugins/polix/skills/review .claude/skills/review
$ npx degit mlophez/polix-ai/plugins/polix/skills/workflow .claude/skills/workflow

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": "Edit|Write|MultiEdit|NotebookEdit|Bash",
        "hooks": [
          {
            "type": "command",
            "command": "polix hook claude"
          }
        ]
      }
    ]
  }
}

Skills (7)

Hooks (9)

eventmatcherruns
SessionStart*polix hook claude
SessionStartstartuppolix update --hook
UserPromptSubmit*polix hook claude
PreToolUseEdit|Write|MultiEdit|NotebookEdit|Bashpolix hook claude
PostToolUseEdit|Write|MultiEdit|NotebookEdit|Bashpolix hook claude
PostToolUseFailureEdit|Write|MultiEdit|NotebookEdit|Bashpolix hook claude
SubagentStop*polix hook claude
Stop*polix hook claude
SubagentStart*polix hook claude

Similar rigs

copied ✓