~ / rigs / erclx / canon

erclx/canon

Runs your agent's work and keeps its code good, on one setup for every repo

↗ GitHub ★ 2 MIT updated 23d ago project Claude Code Claude plugin
share on X
ARCHETYPE
Skill Collector
Ten-plus skills loaded on demand. A procedural-knowledge library.
CONTEXT TAX · EVERY TURN
~8.7k 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 erclx/canon/.claude ./rig-canon  # 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 erclx/canon/.claude/skills/internal-claude .claude/skills/internal-claude
$ npx degit erclx/canon/.claude/skills/internal-docs .claude/skills/internal-docs
$ npx degit erclx/canon/.claude/skills/internal-governance .claude/skills/internal-governance
$ npx degit erclx/canon/.claude/skills/internal-rule-audit .claude/skills/internal-rule-audit
$ npx degit erclx/canon/.claude/skills/internal-sandbox-check .claude/skills/internal-sandbox-check
$ npx degit erclx/canon/.claude/skills/internal-scripts .claude/skills/internal-scripts
$ npx degit erclx/canon/.claude/skills/internal-shipped-reference .claude/skills/internal-shipped-reference
$ npx degit erclx/canon/.claude/skills/internal-tooling .claude/skills/internal-tooling
$ npx degit erclx/canon/.claude/skills/internal-upstream-digest .claude/skills/internal-upstream-digest
$ npx degit erclx/canon/.claude/skills/internal-web .claude/skills/internal-web
$ npx degit erclx/canon/claude/skills/api-design .claude/skills/api-design
$ npx degit erclx/canon/claude/skills/auto-ship .claude/skills/auto-ship
$ npx degit erclx/canon/claude/skills/backlog-triage .claude/skills/backlog-triage
$ npx degit erclx/canon/claude/skills/build-in-slices .claude/skills/build-in-slices
$ npx degit erclx/canon/claude/skills/canon-cli .claude/skills/canon-cli
$ npx degit erclx/canon/claude/skills/canon-feedback-triage .claude/skills/canon-feedback-triage
$ npx degit erclx/canon/claude/skills/canon-feedback .claude/skills/canon-feedback
$ npx degit erclx/canon/claude/skills/ci-workflow .claude/skills/ci-workflow
$ npx degit erclx/canon/claude/skills/code-craft .claude/skills/code-craft
$ npx degit erclx/canon/claude/skills/codebase-layout .claude/skills/codebase-layout
$ npx degit erclx/canon/claude/skills/context-fold .claude/skills/context-fold
$ npx degit erclx/canon/claude/skills/create-rule .claude/skills/create-rule
$ npx degit erclx/canon/claude/skills/create-skill .claude/skills/create-skill
$ npx degit erclx/canon/claude/skills/decision-escalate .claude/skills/decision-escalate
$ npx degit erclx/canon/claude/skills/deploy-app .claude/skills/deploy-app
$ npx degit erclx/canon/claude/skills/deprecation-migration .claude/skills/deprecation-migration
$ npx degit erclx/canon/claude/skills/design-identity .claude/skills/design-identity
$ npx degit erclx/canon/claude/skills/design-record .claude/skills/design-record
$ npx degit erclx/canon/claude/skills/design-taste .claude/skills/design-taste
$ npx degit erclx/canon/claude/skills/docs-sync .claude/skills/docs-sync
$ npx degit erclx/canon/claude/skills/document-health .claude/skills/document-health
$ npx degit erclx/canon/claude/skills/document-repair .claude/skills/document-repair
$ npx degit erclx/canon/claude/skills/draw-figure .claude/skills/draw-figure
$ npx degit erclx/canon/claude/skills/git-branch .claude/skills/git-branch
$ npx degit erclx/canon/claude/skills/git-commit .claude/skills/git-commit
$ npx degit erclx/canon/claude/skills/git-followup .claude/skills/git-followup
$ npx degit erclx/canon/claude/skills/git-issue .claude/skills/git-issue
$ npx degit erclx/canon/claude/skills/git-pr .claude/skills/git-pr
$ npx degit erclx/canon/claude/skills/git-ship .claude/skills/git-ship
$ npx degit erclx/canon/claude/skills/git-split .claude/skills/git-split

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Agent",
      "Task",
      "Bash(canon pr merge:*)",
      "Bash(gh pr merge:*)",
      "Agent",
      "Task",
      "Bash(canon pr merge:*)",
      "Bash(gh pr merge:*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Grep|Glob",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/index-reminder.sh"
          },
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/index-reminder.sh"
          }
        ]
      },
      {
        "matcher": "WebSearch",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/search-reminder.sh"
          },
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/search-reminder.sh"
          }
        ]
      },
      {
        "matcher": "Write|Edit|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/scratch-guard.sh"
          },
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/memory-guard.sh"
          }
        ]
      },
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/dev-command-reminder.sh"
          },
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/memory-guard.sh"
          },
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/bare-flag-repair.sh"
          },
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/review-post-scan.sh"
          },
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/review-post-scan.sh"
          }
        ]
      },
      {
        "matcher": "Write|Edit",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/scratch-guard.sh"
          }
        ]
      }
    ]
  }
}

Skills (80)

Hooks (30)

eventmatcherruns
PreToolUseGrep|Glob"$CLAUDE_PROJECT_DIR"/.claude/hooks/index-reminder.sh
PreToolUseWebSearch"$CLAUDE_PROJECT_DIR"/.claude/hooks/search-reminder.sh
PreToolUseWrite|Edit|MultiEdit"$CLAUDE_PROJECT_DIR"/.claude/hooks/scratch-guard.sh
PreToolUseWrite|Edit|MultiEdit"$CLAUDE_PROJECT_DIR"/.claude/hooks/memory-guard.sh
PreToolUseBash"$CLAUDE_PROJECT_DIR"/.claude/hooks/dev-command-reminder.sh
PreToolUseBash"$CLAUDE_PROJECT_DIR"/.claude/hooks/memory-guard.sh
PreToolUseBash"$CLAUDE_PROJECT_DIR"/.claude/hooks/bare-flag-repair.sh
PreToolUseBash"$CLAUDE_PROJECT_DIR"/.claude/hooks/review-post-scan.sh
PostToolUseEdit|Write|MultiEdit"$CLAUDE_PROJECT_DIR"/.claude/hooks/standards-audit.sh
PostToolUseEdit|Write|MultiEdit"$CLAUDE_PROJECT_DIR"/.claude/hooks/records-index.sh
PostToolUseEdit|Write|MultiEdit"$CLAUDE_PROJECT_DIR"/.claude/hooks/board-validate.sh
PostToolUseEdit|Write|MultiEdit"$CLAUDE_PROJECT_DIR"/.claude/hooks/path-form.sh
PostToolUseBash"$CLAUDE_PROJECT_DIR"/.claude/hooks/pr-create-log.sh
SessionStart*"$CLAUDE_PROJECT_DIR"/.claude/hooks/cloud-setup.sh
SessionStartstartup"$CLAUDE_PROJECT_DIR"/.claude/hooks/upstream-due.sh
PreCompactmanual"$CLAUDE_PROJECT_DIR"/.claude/hooks/precompact-handoff.sh
PreCompactauto"$CLAUDE_PROJECT_DIR"/.claude/hooks/precompact-handoff.sh
Stop*"$CLAUDE_PROJECT_DIR"/.claude/hooks/silent-turn.sh
Stop*"$CLAUDE_PROJECT_DIR"/.claude/hooks/reply-links.sh
PreToolUseGrep|Glob"$CLAUDE_PROJECT_DIR"/.claude/hooks/index-reminder.sh
PreToolUseWebSearch"$CLAUDE_PROJECT_DIR"/.claude/hooks/search-reminder.sh
PreToolUseWrite|Edit"$CLAUDE_PROJECT_DIR"/.claude/hooks/scratch-guard.sh
PreToolUseBash"$CLAUDE_PROJECT_DIR"/.claude/hooks/review-post-scan.sh
PostToolUseEdit|Write|MultiEdit"$CLAUDE_PROJECT_DIR"/.claude/hooks/standards-audit.sh
PostToolUseEdit|Write|MultiEdit"$CLAUDE_PROJECT_DIR"/.claude/hooks/records-index.sh
PostToolUseEdit|Write|MultiEdit"$CLAUDE_PROJECT_DIR"/.claude/hooks/board-validate.sh
PostToolUseEdit|Write|MultiEdit"$CLAUDE_PROJECT_DIR"/.claude/hooks/path-form.sh
PostToolUseBash"$CLAUDE_PROJECT_DIR"/.claude/hooks/pr-create-log.sh
Stop*"$CLAUDE_PROJECT_DIR"/.claude/hooks/silent-turn.sh
Stop*"$CLAUDE_PROJECT_DIR"/.claude/hooks/reply-links.sh

Permissions

deny (8)
Agent
Task
Bash(canon pr merge:*)
Bash(gh pr merge:*)
Agent
Task
Bash(canon pr merge:*)
Bash(gh pr merge:*)
ask (0)
—
allow (0)
—

Similar rigs

copied ✓