By skymanbp
A Claude Code plugin and LLM-agnostic rule pack that enforces systematic thinking, verified citations, and root-cause analysis — eliminating reactive, lazy AI behavior. v0.20 collapses the agent's reply skeleton into a fixed YAML schema (cc-enslaver: block whose field names ARE the existing Stop-hook detection markers, so no detector changed) and adds Stop layer (h): a hard-enforced one-sentence plain-language TL;DR (大白话总结) required on every done-claim reply, plus a 大白话 line on every block reason. v0.19 adds cwd-fallback for project edicts path resolution when CLAUDE_PROJECT_DIR fails to propagate.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
打印 cc-enslaver 九条核心规则的可勾选检查清单(改前 / 改后 / 收敛验证 / 任务忠实 / 改前必读·写前必想 / 系统式修改)。
管理 cc-enslaver 圣旨(用户自定义硬规则;项目级 + 全局;list / add / remove / reload / path)。
列出(或删除)超过 N 天未被触碰的 cc-enslaver 会话状态文件。默认 dry-run(仅打印),加 --apply 才真正删除。
让 agent 重新核对最近回复中的所有 file:line 引用与事实性陈述,并报告漂移/缺失。
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
A Claude Code plugin and LLM-agnostic rule pack that eliminates lazy AI behavior — reactive patches, guessed citations, surface-level "fixes", half-finished work — by enforcing systematic thinking, verification, and root-cause analysis at every layer of the agent loop.
中文用户请直接看 → 中文说明
LLM coding agents (Claude Code, Cursor, Copilot, Cline, Aider, etc.) frequently fall into predictable lazy patterns:
| Lazy pattern | What it looks like |
|---|---|
| Reactive patching | Sees a bug, slaps a try/except around it, declares done. |
| Guessed citations | Cites file paths, line numbers, or APIs that don't exist. |
| Keyword-search-only | Greps once, edits, never reads the surrounding architecture. |
| Memory dependence | Acts on stale recollection instead of re-reading the current file. |
| Root-cause bypass | Adds sleep for races, --no-verify for hooks, swallows exceptions. |
| Half-finished work | Stops at "should work", leaves TODOs, doesn't verify the whole flow. |
| Premature done-claim | Claims "fixed" without re-running the original failing case, no edge cases, no comparison evidence. |
cc-enslaver ships a layered defense against all seven, currently 9 built-in rules + user-defined Imperial Edicts (圣旨) + 8 Stop-hook gates (v0.20.0):
New in v0.20 — 📋 Structured YAML reporting + plain-language TL;DR: every reply now ends with a fixed ```yaml
cc-enslaver:block (改前 / 改中 / 收敛 / 忠实 / 收尾 / tldr; English mirrorbefore / edits / convergence / fidelity / closing / tldr) — the audit trail is scannable at a glance instead of drifting free-form prose. A new Stop layer (h) hard-enforces a one-sentencetldr(大白话总结) on every done-claim reply, and every block reason now carries a大白话:takeaway. The schema's field names ARE the existing Stop-hook detection markers, so no detector changed — old emoji-markdown and new YAML reply forms both pass.From v0.18 — 🧹 Opt-in auto-GC on SessionStart: set
CC_ENSLAVER_AUTO_GC_DAYS=30and the SessionStart hook automatically prunes session-state files older than N days. Rate-limited to once per 24h via a marker file so rapid session restarts don't re-scan. Default off (backward-compatible); the manual/cc-enslaver:gcslash command still works and shares the sameprune_old_sessions()deletion routine.From v0.17 — 🌐 Imperial Edicts go bilingual: with
CC_ENSLAVER_LANG=en, the soft-layer injection and the PreToolUse DENY reason both flip to English ("Imperial Edicts" / "Imperial Edict E01 violation"). Default Chinese ("圣旨") preserved. Plus Windows portability fixes: file-claim regex now matches drive-letter paths (C:\Users\...\x.py), andmanage_edicts.pyforces UTF-8 stdout.From v0.16 — 🕵️ Stop Layer (g) file-claim verification: read_guard captures per-file mtime baselines on first encounter; stop_guard parses
I edited X.py/我修改了 Y.mdclaims and BLOCKs the Stop when the on-disk mtime contradicts. Conservative-by-design (no baseline / any ambiguity → pass). Escape hatch:CC_ENSLAVER_DISABLE_LAYER_G=1.From v0.15 — 🌍 English prompts mirror: set
CC_ENSLAVER_LANG=enand the hook injectsprompts/en/{session-start,user-prompt}.mdinstead of the Chinese canonical.From v0.14 — ⚡ Three more Bash bypass patterns (
git rebase --skip,--break-system-packages,rm -rfon root/$HOME/~) getPreToolUse(Bash)DENY. 🏛️ Edicts--globalflag:add --globalwrites to~/.claude/cc-enslaver/edicts.tomlfor personal cross-project rules.From v0.13 — 🔁 Rule-09 rolling-patch hard layer:
PreToolUse(Edit|Write)physically DENYs the 4th small Edit (≤ 10 lines AND < 200 chars) to the same file in one session unless a systematic rewrite (≥ 50 lines OR ≥ 1500 chars) resets the counter. Seerules/09-systematic-modification.md§"Edit/Write 频率层".From v0.12 — 🏛️ Imperial Edicts (圣旨): user-defined per-project hard rules loaded from
.claude/cc-enslaver/edicts.tomlwith PreToolUse(Edit|Write|Bash) DENY and/cc-enslaver:edictCRUD slash command. Seedocs/EDICTS.md. Stop-hook block reasons render as uniform status tables. Soft-layer prompts thinned 54%.
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 claimnpx claudepluginhub skymanbp/cc-enslaver --plugin cc-enslaverUniversal radial-tree exploration engine for Claude Code. One `tree` skill + swappable presets (brainstorm / attack / design / code-audit) for divergent ideation, adversarial critique, and design-space exploration. 12 framings × hard-ban-on-incomplete-leaves × stable convergence. See CHANGELOG.md for per-version history.
Persistent memory for Claude Code — automatic save/restore across compactions and sessions. Anti-patch reconcile-on-write, forced PROGRESS.md handoff, live PLAN.md anchor with plan-refiner / plan-guardian subagents, FTS5 search, AI-judged extraction with Haiku + local Ollama fallback.
Scientific paper writing + review + ideation pipeline for top-tier journals (ApJ/MNRAS/PRD/JCAP-class). Ships 8 skills (paper, paper-review, figure-review, paper-style, brainstorm, mainline, paper-attack-tree, final-review) and 7 corpus-driven style tools. See CHANGELOG.md for per-version history.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Comprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Comprehensive startup business analysis with market sizing (TAM/SAM/SOM), financial modeling, team planning, and strategic research
v9.44.1 — Patch release for Gemini environment/version detection and qwen auth gating. Run /octo:setup.