~ / rigs / henriquesakata / cerne

henriquesakata/cerne

Living documentation for AI-assisted projects: your agent reads only what is current. Single binary, git-backed.

↗ GitHub ★ 5 Apache-2.0 updated 4d ago project Claude Code Claude plugin
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~4.9k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 35/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit henriquesakata/cerne/.claude ./rig-cerne  # 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 henriquesakata/cerne/internal/skills/cerne-authoring .claude/skills/cerne-authoring
$ npx degit henriquesakata/cerne/internal/skills/cerne-self-learning .claude/skills/cerne-self-learning
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/henriquesakata/cerne/main/.claude/agents/code-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/dev.md https://raw.githubusercontent.com/henriquesakata/cerne/main/.claude/agents/dev.md
$ curl -fsSL --create-dirs -o .claude/agents/gauntlet-prep.md https://raw.githubusercontent.com/henriquesakata/cerne/main/.claude/agents/gauntlet-prep.md

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": "Write",
        "hooks": [
          {
            "type": "command",
            "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/no-new-case-dir.sh\""
          }
        ]
      },
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/go-precommit-build.sh\""
          }
        ]
      },
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/cerne-work-gate.sh\""
          }
        ]
      }
    ]
  }
}

Skills (2)

Subagents (3)

code-reviewer
model: sonnet
Fresh-context reviewer for cerne (Go CLI + embedded React UI). Use to review a feature's diff against its spec's numbered criteria, for correctness only. Never reviews code it built.
dev
model: sonnet
Senior implementer for cerne. Use to implement one approved feature (F-NNNN) delegated by the tech lead, following its plan.md, with strict TDD, focused tests, a draft PR and a result.md with evidence
gauntlet-prep
model: sonnet
Prepares the two sides of a cerne Gauntlet round and the blind judge's file — throwaway fixtures, identical scripts per side, masked transcripts — so the tech lead only reviews and spawns the judge. N

Hooks (10)

eventmatcherruns
SessionStart*bash "$CLAUDE_PROJECT_DIR/.claude/hooks/cerne-register-reminder.sh"
PreToolUseWritebash "$CLAUDE_PROJECT_DIR/.claude/hooks/no-new-case-dir.sh"
PreToolUseBashbash "$CLAUDE_PROJECT_DIR/.claude/hooks/go-precommit-build.sh"
PreToolUseEdit|Writebash "$CLAUDE_PROJECT_DIR/.claude/hooks/cerne-work-gate.sh"
PostToolUseBashbash "$CLAUDE_PROJECT_DIR/.claude/hooks/register-reference-reminder.sh"
PostToolUseBashbash "$CLAUDE_PROJECT_DIR/.claude/hooks/cerne-work-bind.sh"
SubagentStart*bash "$CLAUDE_PROJECT_DIR/.claude/hooks/cerne-subagent-context.sh"
Stop*bash "$CLAUDE_PROJECT_DIR/.claude/hooks/cerne-stop-closeout.sh"
PreCompactmanual|autobash "$CLAUDE_PROJECT_DIR/.claude/hooks/cerne-precompact.sh"
UserPromptSubmit*bash "$CLAUDE_PROJECT_DIR/.claude/hooks/cerne-prompt-notes.sh"

Permissions

deny (0)
—
ask (0)
—
allow (16)
mcp__plugin_context-mode_context-mode__ctx_search
Bash(cerne show *)
Bash(cerne status)
Bash(cerne status *)
Bash(cerne brief)
Bash(cerne brief *)
Bash(cerne ask *)
Bash(cerne note list)
Bash(cerne note list *)
Bash(cerne work list)
Bash(cerne work list *)
Bash(glab mr list *)
Bash(glab mr view *)
Bash(glab ci list *)
Bash(glab ci view *)
Bash(glab ci status *)

Similar rigs

copied ✓