SuperAPIAI Directory

spartan-ai-toolkit

github.com · AI agents

Spartan AI Toolkit is a structured workflow toolkit for AI coding agents, designed to solve problems such as AI coding assistants skipping tests, ignoring coding standards, pushing code without review, and forgetting context across sessions. It runs the complete engineering process (spec, plan, TDD, code review, PR) with a single command and sets quality gates between each step, forcing AI to follow user-defined rules and standards. The toolkit supports Claude Code, Codex, Cursor, Windsurf, and Copilot, and rules are written in plain Markdown, making it adaptable to any AI tool.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

Spartan AI Toolkit is used to constrain the behavior of AI coding agents and prevent them from producing sloppy code. AI coding agents are fast but often careless: they skip tests, ignore coding standards, push code without review, and forget everything between sessions. Spartan solves these problems through structured workflows, configurable rules, and quality gates.

Main Capabilities

  • Complete engineering pipeline: a single /spartan:build command handles the complete process from spec, plan, TDD, code review, to PR, with quality gates between each step; code that does not pass all gates will not be released.
  • 5 Workflow Leaders: each leader runs the complete pipeline, and one command handles the rest; you can also directly enter /spartan, and the intelligent router determines the required action.
  • Cross-stack support: you can choose built-in configuration profiles, or write your own rules in Markdown; stacks not in the built-in list can also be integrated through Markdown rules, and the toolkit will read any rules provided by the user.
  • Code review uses user rules: when /spartan:build reaches the review step, it reads .spartan/config.yaml to find the rules, launches an independent review agent (a fresh perspective, not the same AI that wrote the code), and the reviewer reads all rule files and checks the code accordingly; if problems are found, they are fixed and reviewed again, looping until clean. Even without configuration, review still runs, just using a generic checklist.
  • Skills: leaders invoke the correct domain knowledge skills at the right time based on the tech stack.
  • Agent memory: solves the problem of AI forgetting everything after the terminal is closed through 3 layers of memory; leaders automatically read and write memory,/spartan:memory-consolidate cleans up expired entries, and/spartan:magic-doc keeps documentation and code in sync.
  • Configurable rules: rules are loaded every session, and AI follows them without needing reminders.
  • Parallel builds: you can build more than 2 features at the same time, and each /spartan:build automatically creates a git worktree, each with its own worktree, branch, and PR, with no conflicts; after the PR is merged, the worktree is automatically cleaned up.
  • Per-project custom commands:.spartan/ has two configuration files:.spartan/build.yaml controls the build workflow,.spartan/commands.yaml injects prompts into any command; templates are located in toolkit/templates/, and AI reads the configuration every session without manual reminders.
  • Optional AI design: the design workflow (/spartan:ux) can use Google Gemini to generate real images for prototypes.
  • Telegram bridge: you can control AI coding sessions from your phone; see bridges/for setup.

Usage

There are three installation methods; choose any one:

  1. npx (recommended): interactive menu, select the AI tool and package, completed in 30 seconds.
  2. Installation script.
  3. Claude Code plugin: search for "Spartan AI Toolkit" in the Claude Code plugin marketplace.

Local and global:--local(recommended) install into the project's ./.claude/, visible to the team, reviewable, and version-controlled;--global Install into ~/.claude/, effective across all projects. It is equally usable when not using Claude Code.

Packs group commands, rules, skills, and agents by use case. Core is always installed, and the rest are chosen by the user. Enter /spartan to use the smart router, or use specific commands directly. Workflow leaders include Core (always installed), Backend (backend-micronaut pack), Frontend (frontend-react pack), Product (product pack), Ship (ops pack), and Research (research pack).

The AI design feature requires obtaining a Gemini API key, creating .spartan/ai.envin the project root directory, and installing Python dependencies. Note: the installer will automatically add .spartan/ai.env to .gitignore; if setting it manually, be sure to ensure that this file is in .gitignore , and never commit the API key.

For how to add commands, skills, rules, and agents, see CONTRIBUTING.md.

Applicable Scenarios

Suitable for teams or individuals who use AI coding agents for software development and want to enforce unified coding standards, testing, and review processes; supports multiple technology stacks and multiple AI tools, and can advance multiple features simultaneously through parallel builds.

Limitations

The materials do not provide specific information on fees, pricing, performance metrics, or effect guarantees. The AI design feature depends on a Google Gemini API key. For the specific setup of the Telegram bridge, refer to the bridges/ directory in the repository.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools