By chanjoongx
XML protocol framework + false-positive catalog for Claude Code. Mechanical guardrails against AI refactoring mistakes via hooks, tool-scoped subagents, and path-scoped rules.
Use PROACTIVELY for ambiguous or compound code-quality requests. Top-level orchestrator. Delegate here when the user asks for "full project checkup", compound commands like "clean and optimize", or ambiguous requests. Reads CLAUDE.md, classifies MD files, routes to craft-specialist or perf-specialist.
Structural refactor agent. Delegate here for refactor, cleanup, anti-pattern removal, readability improvements, dead-code removal, or any structural quality work. Never adds new features. Read-only by default; edits require explicit user approval.
Performance optimization agent. Delegate here for speed, bundle size, Web Vitals, profiling. Measurement-first — refuses to optimize without baseline numbers. Preserves CRAFT structural integrity.
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Uses power tools
Uses Bash, Write, or Edit tools
Uses power tools
Uses Bash, Write, or Edit tools
███████╗████████╗███████╗████████╗██╗ ██╗███████╗███████╗██████╗
██╔════╝╚══██╔══╝██╔════╝╚══██╔══╝██║ ██╔╝██╔════╝██╔════╝██╔══██╗
███████╗ ██║ █████╗ ██║ █████╔╝ █████╗ █████╗ ██████╔╝
╚════██║ ██║ ██╔══╝ ██║ ██╔═██╗ ██╔══╝ ██╔══╝ ██╔═══╝
███████║ ██║ ███████╗ ██║ ██║ ██╗███████╗███████╗██║
╚══════╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝
Stop Claude from "helpfully" refactoring your intentional code.
npx stetkeep install
This is the one-command minimal install: protocols, subagents, slash commands, path-scoped rules. Next session of claude, type /brain-scan and you're working.
For full mechanical enforcement (hooks + permissions deny-lists), the Install section below has a two-step recommended flow: one extra cp command.
Full walkthrough: BOOTSTRAP_GUIDE.md.
Two things other Claude Code projects don't ship:
Prose prompts ("be careful when refactoring, prefer readability over cleverness...") don't survive 20K-token contexts. XML-tagged directives do. Anthropic's own prompting guide recommends XML tags explicitly as a way for Claude to parse prompts more accurately. We built three protocols around it:
<routing> / <mode> / <inhibit> — decides where a command goes<anti_patterns> / <safety_net> / <false_positives> — structural refactor discipline<pre_check> / <perf_budget> / <measurement_gate> — measurement-first performance work~1–2K tokens each (BRAIN ~1K · CRAFT ~1.5K · PERF ~1.8K). Claude's attention lands on XML-delimited sections more reliably than on Markdown prose headers.
The 16-entry registry of "patterns Claude will mistakenly flag as problems." Examples:
| What Claude sees | What Claude will say | What it actually is |
|---|---|---|
| 1000-line config / data file | "God File (A1). Split it." | A data table. Splitting loses context. |
Deliberate inline for loop | "Duplication (A3). Extract." | Profiled hot path. 10× faster than reduce. |
Plain <img> element | "Use next/image." | Below-fold. Not the LCP element. |
Array.map().map().map() | "Collapse into reduce." | V8 optimizes this; readability wins. |
When Claude matches one of these, the Safety Net flags it 🔴 Low confidence and asks before editing. Catalog is under <false_positives> in CRAFT.md and PERF.md.
No competitor ships this.
On top of the XML framework, stetkeep ships a five-layer defense:
permissions.deny hard-blocks edits to legacy/, generated/, vendor/ (deterministic)deny/ask/allow JSON (deterministic)craft-specialist / perf-specialist can't create new files; edits to existing files require explicit user approval (structural)src/** file access (heuristic)Layers A / B / C fire regardless of model attention. Layers D / E bias behavior. Honest breakdown in ARCHITECTURE.md §1.
This part is not novel — TDD-Guard, claude-guardrails, and others already ship hook-based enforcement. stetkeep's wedge is the XML framework + FP catalog above; hooks are just the vehicle.
npx claudepluginhub chanjoongx/stetkeep --plugin stetkeepSession-local metacognition harness for long-running Claude Code work. When suggestions get reverted, Opus 4.7 reasons about why and injects guidance into the next turn.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Curate auto-memory, promote learnings to CLAUDE.md and rules, extract proven patterns into reusable skills.
Memory compression system for Claude Code - persist context across sessions
Editorial "Web Designer" bundle for Claude Code from Antigravity Awesome Skills.