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.