/ Каталог / Песочница / Spartan AI Toolkit
● Сообщество spartan-stratos ⚡ Сразу

Spartan AI Toolkit

автор spartan-stratos · spartan-stratos/spartan-ai-toolkit

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.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

spartan-ai-toolkit-skill.replay ▶ готово
0/0

Установка

Выберите клиент

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "spartan-ai-toolkit-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/spartan-stratos/spartan-ai-toolkit",
        "~/.claude/skills/spartan-ai-toolkit"
      ],
      "_inferred": true
    }
  }
}

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "spartan-ai-toolkit-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/spartan-stratos/spartan-ai-toolkit",
        "~/.claude/skills/spartan-ai-toolkit"
      ],
      "_inferred": true
    }
  }
}

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "spartan-ai-toolkit-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/spartan-stratos/spartan-ai-toolkit",
        "~/.claude/skills/spartan-ai-toolkit"
      ],
      "_inferred": true
    }
  }
}

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "spartan-ai-toolkit-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/spartan-stratos/spartan-ai-toolkit",
        "~/.claude/skills/spartan-ai-toolkit"
      ],
      "_inferred": true
    }
  }
}

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "spartan-ai-toolkit-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/spartan-stratos/spartan-ai-toolkit",
        "~/.claude/skills/spartan-ai-toolkit"
      ]
    }
  ]
}

Continue использует массив объектов серверов, а не map.

~/.config/zed/settings.json
{
  "context_servers": {
    "spartan-ai-toolkit-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/spartan-stratos/spartan-ai-toolkit",
          "~/.claude/skills/spartan-ai-toolkit"
        ]
      }
    }
  }
}

Добавьте в context_servers. Zed перезагружается автоматически.

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 min intermediate

Когда использовать: Your agent keeps writing code first and tests later (or never).

Предварительные требования
  • Server/skill installed and authenticated — See repo README
Поток
  1. Enable the gate
    Activate spartan-ai-toolkit. Set the TDD gate to strict.✓ Скопировано
    → Gate registered
  2. 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
Токенов на вызов
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.

Проверить: Per-step timings printed

Альтернативы

Spartan AI Toolkit в сравнении

АльтернативаКогда использоватьКомпромисс
agent-skill-tddYou want a lighter touchAdvisory, not enforcing

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills