Engineering workflow commands with quality gates and TDD enforcement.
Spartan AI Toolkit is a no-nonsense skill bundle of engineering workflow commands: forced TDD red-green-refactor, quality gates (lint, test, type-check), and an opinionated agile loop. Built for teams that want discipline by default.
claude mcp add spartan-ai-toolkit-skill -- git clone https://github.com/spartan-stratos/spartan-ai-toolkit ~/.claude/skills/spartan-ai-toolkit
一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。
使用场景
实战用法: Spartan AI Toolkit
Force a coding agent into actual TDD discipline
👤 Teams whose agents skip tests⏱ ~15 minintermediate
何时使用: Your agent keeps writing code first and tests later (or never).
前置条件
Server/skill installed and authenticated — See repo README
步骤
Enable the gate
Activate spartan-ai-toolkit. Set the TDD gate to strict.✓ 已复制
→ Gate registered
Try to skip
Add a new feature without a test first.✓ 已复制
→ Gate refuses; demands a failing test
结果: Real TDD instead of theater.
注意事项
Hard gates can frustrate exploratory work. Toggle to 'soft' during spikes; 'strict' on main branches. — Hard gates can frustrate exploratory work. Toggle to 'soft' during spikes; 'strict' on main branches.
成本与限制
运行它的成本
API 配额
See provider docs for rate limits
每次调用 Token 数
Varies by tool
费用
See repo README for pricing details
提示
Cache tool results and avoid repeated identical calls.
安全
权限、密钥、影响范围
凭据存储: Use environment variables; never commit secrets
数据出站: Tool calls go to the provider's API as documented
故障排查
常见错误与修复
gate flags an unrelated change as missing tests
Tune gate scope in spartan.config — exclude refactors with no semantic change.
验证: Re-run with scope changes
quality gate too slow
Profile which step is slow (usually type-check on big repos). Cache or skip locally.