Spartan AI Toolkit
Stop AI coding agents from shipping sloppy code.
Structured workflows · Configurable rules · Quality gates · Any stack
AI coding agents are fast. They're also careless. They skip tests, ignore your coding standards, push without review, and forget everything between sessions.
Spartan fixes that. One command runs a full engineering workflow — spec, plan, TDD, code review, PR — with quality gates between each step. Your rules, your standards, enforced every time.
npx @c0x12c/ai-toolkit@latest --local
Works with Claude Code, Codex, Cursor, Windsurf, and Copilot. Rules are plain markdown — works with any AI tool.
Before & After
| Without Spartan | With Spartan |
|---|
| "Build this feature" → jumps straight to code, no plan, no tests, pushes broken code | /spartan:build → writes spec, plans tasks, TDD for each, code review, then PR |
| "Fix this bug" → guesses a fix, no repro, no test, hopes for the best | /spartan:debug → reproduces first, finds root cause, writes test, then fixes |
| 5 devs on the team → AI writes different code style for each person | Configurable rules → same standards for everyone, checked automatically |
| 3-week feature → AI forgets all context between sessions | Agent memory layer → carries decisions across sessions |
| Code review catches AI slop → back-and-forth for days | Quality gates → review happens before PR, not after |
Quick Start
# 1. Install (30 seconds, interactive menu)
npx @c0x12c/ai-toolkit@latest --local
# 2. Set up rules for your stack
/spartan:init-rules
# 3. Build something
/spartan:build "add user authentication"
That's it. The /spartan:build command handles the full pipeline:
spec → design (if UI) → plan → TDD → code review → PR
| | | | | |
Gate 1 Design Gate Gate 2 Gate 3 Gate 3.5 Gate 4
Nothing ships without passing every gate.
What's Inside
| What | Count | Description |
|---|
| Slash commands | 73 | End-to-end workflows, not just prompts |
| Coding rules | 28 | Your standards, enforced automatically |
| Skills | 34 | Domain knowledge (Kotlin, React, Python, DB, security, etc.) |
| Agents | 10 | Specialized reviewers, researchers, planners |
| Stack profiles | 8 | Pre-built configs for Go, Python, Java, Kotlin, React, etc. |
| Quality gates | 5 | Automated checkpoints between every step |
| Agent memory | 3 layers | Index → topics → transcripts (grep-only archive) |
5 Workflow Leaders
Each leader runs a full pipeline. One command — it handles the rest.
| Leader | Command | What happens |
|---|
| Build | /spartan:build "feature" | spec → design → plan → TDD → review → PR |
| Debug | /spartan:debug "symptom" | reproduce → root cause → test-first fix → PR |
| Startup | /spartan:startup "idea" | brainstorm → validate → research → pitch |
| Onboard | /spartan:onboard | scan codebase → map architecture → save to memory |
| Research | /spartan:research "topic" | frame question → gather sources → analyze → report |
Or just type /spartan — the smart router figures out what you need.
Works With Any Stack
Pick a built-in profile or write your own rules in markdown: