By cssmith615
Smart context injection for Claude Code. Injects only relevant rules per prompt, remembers architectural decisions, and catches contradictions in real-time. No bloated CLAUDE.md — just the right context at the right time.
Give Claude the right rules at the right time. Nothing more.
Chuck is a Claude Code plugin that automatically injects relevant rules into each prompt, remembers your architectural decisions, and catches contradictions in real-time — without a bloated CLAUDE.md.
Context injection — Reads your prompt, scores it against your domain rules using semantic matching (TF-IDF), and injects only what's relevant. React rules when building components. Git rules when committing. Nothing for unrelated prompts.
Decision Ledger — Stores architectural decisions with reasoning (use Zustand, not Redux — boilerplate) and automatically injects them when the topic surfaces. Claude never re-suggests what you already rejected.
Quality Monitor — Watches every Write/Edit and warns immediately if Claude starts writing code that contradicts an active decision. Zero tokens when clean, ~30–50t only on contradiction.
Install this plugin through the Claude Code plugin manager. Chuck requires Python 3.
After installing, initialize Chuck in your project:
npm install -g chuck-core
chuck init
After chuck init, your project will have a .chuck/ directory:
.chuck/
├── manifest.json # Domain config and token budget
├── domains/ # Rule files per domain
├── decisions/ # Architectural decision records
└── sessions/ # Local usage data (gitignored)
Use the built-in Chuck Setup Wizard to generate your manifest.json visually — select your stack, adjust the token budget, and copy the result.
chuck decide "Use Zustand for state management" --tags state,react
# Prompts for rejected alternatives and reason
chuck init # Auto-detect stack and generate starter rules
chuck list # Show active domains and token costs
chuck stats # See which rules are firing
chuck suggest # Get suggestions based on unmatched prompts
chuck sync # Push/pull rules via git
chuck decide # Log and manage architectural decisions
chuck decide:audit # Find stale decisions that never fired
chuck compact # Generate session handoff brief
This plugin includes two interactive HTML tools:
Chuck Setup Wizard (/chuck:setup-wizard) — visually configure your manifest.json. Pick your stack, set token budget, copy the result.
Chuck Decision Logger (/chuck:decision-logger) — log decisions through a form. Fill in decision, rejected alternatives, and reason. Copies the pre-filled chuck decide command.
npm install -g chuck-coreApache 2.0
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.
npx claudepluginhub cssmith615/chuck-pluginAutomatic context engineering — observes your coding sessions and generates rules, suggestions, skills, and hooks so Claude gets smarter on your codebase over time
Make your AI agent code with your project's architecture, rules, and decisions.
(Alpha) Persistent memory, architectural decisions, and safety guardrails for Claude Code. Your agent starts every session with full project context — stack, decisions, patterns, safety rules, and a handoff from the previous session.
Custom commands, skills, agents, rules, hooks, and output styles for Claude Code - session continuity and modern CLI tooling for real-world development workflows
Interactive skill that analyzes a task, proposes an agent team composition, and creates the team after user confirmation
Permanent coding companion for Claude Code — survives any update. MCP-based terminal pet with ASCII art, stats, reactions, and personality.