By manutej
Senior-engineer guardrails that stop AI coding agents from shipping slop. Nine composable skills + an always-on rules constitution + a /senior-review gate with an execution-evidence Definition of Done. Forces strategic (durable) code over tactical (fast-but-disposable) code, grounded in The Pragmatic Programmer, Fowler's Refactoring, Ousterhout's A Philosophy of Software Design, and empirical AI-code-quality research.
Detection lens for Fowler's five smell families — names the smell, states the change-cost, and hands the fix to `refactoring-patterns`. Use when reviewing a diff, auditing a module, or deciding whether to gate a merge. Triggers: "does this code have smells", "review for smells", "is this clean", "what's wrong with this design", "this class is getting big", "why is every change touching 12 files", "switch on type", "this method is too long", "is this AI slop".
Makes schema, migration, and data-shape changes safe to ship. Use when writing a database migration, altering a table, adding/renaming/dropping a column, changing the shape of an API payload / event / serialized object, backfilling data, or reviewing any diff that touches persistent state. Catches one-shot breaking changes, NOT NULL without backfill, missing/untested rollbacks, nullability drift, and backfills that lock production tables. Enforces expand→migrate→ contract, one-deploy-window backward compatibility, and dry-run-on-a-copy evidence. Triggers: "write a migration", "alter table", "add a column", "rename this field", "change the schema", "is this migration safe", "change this response/event shape", "backfill".
Stops duplication and reinvention — the failure GitClear measures as "rework" (copy-paste up, refactoring down, the signature of AI code with a short shelf life). Use before writing any helper, util, type, constant, or component, and when reviewing a diff for repeated logic. Enforces search-before-build, consolidate- don't-clone, and DRY-as-knowledge (one rule, one authoritative place). Triggers: "is there already a function for this", "this looks duplicated", "DRY this up", "extract the common logic", "we keep rewriting this", before adding any utility.
Separates pure decision logic from I/O so code is testable without heavy mocks — without demanding religious purity. Use when a function both computes and writes to a DB, network, or log; when datetime.now()/random()/fetch() are called inline inside business logic; when a unit test needs five mocks to run; when reviewing code that tangles "what to do" with "do it." Triggers: "this is hard to test," "I need to mock the clock," "how do I test this without a DB," "pure function," "side effects," "functional core," "inject the dependency." NOT a trigger for: making everything pure, banning mutation, or wrapping simple code in monads.
Names and comments are the primary channel through which code communicates intent to the next engineer. Use when choosing an identifier ("what should I call this", "rename this", "is this name clear"), deciding whether to add a comment ("should I comment this", "does this need explaining"), or auditing existing prose ("clean up the comments", "too many comments", "comment slop"). Also fires when a name is hard to pick — that difficulty is a design smell, not a vocabulary problem (Ousterhout: Hard to Pick Name).
Runs pre-commands
Contains inline bash commands via ! syntax
Bash prerequisite issue
Uses bash pre-commands but Bash not in allowed tools
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.
Make the AI behave like the 15-year senior who has to maintain this in a year —
not the Tactical Tornado who's moving on tomorrow.
Why · How it works · What it catches · The 9 skills · The 13 rules · Install on any tool · Live site
Working code is not the bar. Code the next person can read, trust, and change is the bar.
Basic prompts and AI tools produce code with a short shelf life — it works in the demo, then needs reworking in two weeks. That isn't a vibe; it's measured:
The core diagnosis: an AI coding agent is a "Tactical Tornado" (Ousterhout) — fast, prolific, leaving a maintenance wake. Worse, it spends complexity in the wrong place: over-building structure while skipping robustness at the boundaries. craft reverses both. Every skill forces strategic (durable) code over tactical (fast-but-disposable) code, and where two approaches both work, it picks the one that leaves the system Easier To Change.
craft sits between your agent and "done." The production-grade router reads the change, fires only the skills that apply, and nothing ships until the work is proven — while building (skills steer the agent as it writes, so the strategic version comes out first) or as a gate after (/senior-review, the Copilot port, or a CI check blocks the merge). Want it interactive? The live site animates the same flow.
craft skills detect and judge; they route the mechanical fix to the analysis skills you already have — no duplication.
flowchart LR
PR["diff / pull request"] --> ROUTER{{"production-grade<br/>router"}}
subgraph DETECT["craft · detect + judge"]
direction TB
RSD["right-sized-design"]:::g
RB["robustness-at-boundaries"]:::g
DRY["dry-and-reuse"]:::g
TT["trustworthy-tests"]:::g
CS["code-smells"]:::t
EP["effects-and-purity"]:::t
NC["naming-and-comments"]:::t
SC["supply-chain-hygiene"]:::t
end
ROUTER --> DETECT
DETECT --> FIX["refactoring-patterns<br/>complexity-analysis<br/>dependency-analyzer"]:::e
FIX --> V{"SHIP · SHIP-WITH-FIXES · REWORK"}:::v
classDef g fill:#1A1410,stroke:#E3B341,color:#E3B341;
classDef t fill:#0E1A19,stroke:#39C5BB,color:#39C5BB;
classDef e fill:#10141B,stroke:#58A6FF,color:#9Fc6ff;
classDef v fill:#1A1010,stroke:#F85149,color:#FF9C94;
Two modes from the router (production-grade):
Six real failure modes, before & after — explore them interactively on the live site → (click any case to flip slop ↔ craft). Each names the rule it enforced.
npx claudepluginhub manutej/craftCompositional prompt engineering for Claude Code. Chain commands, iterate with quality gates, swap strategies. Five commands, four operators (→ || ⊗ >=>), seventeen skills. Inspired by category theory.
Category theory-based meta-prompting framework with functors, monads, comonads, natural transformations, error handling, and quality visualization. Implements F (Functor), M (Monad), W (Comonad), α (Natural Transformation), E (Exception Monad), and [0,1]-enriched categories for rigorous, composable prompt engineering.
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.
Intelligent draw.io diagramming plugin with AI-powered diagram generation, multi-platform embedding (GitHub, Confluence, Azure DevOps, Notion, Teams, Harness), conditional formatting, live data binding, and MCP server integration for programmatic diagram creation and management.
Persistent file-based planning for AI coding agents. Crash-proof markdown plans (task_plan.md, findings.md, progress.md) that survive context loss and /clear, with an opt-in completion gate and multi-agent shared state. Manus-style. Works with Claude Code, Codex CLI, Cursor, Kiro, OpenCode and 60+ agents via the SKILL.md standard. Includes Arabic, German, Spanish, and Chinese (Simplified and Traditional).
Develop, test, build, and deploy Godot 4.x games with Claude Code. Includes GdUnit4 testing, web/desktop exports, CI/CD pipelines, and deployment to Vercel/GitHub Pages/itch.io.
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.