К основному содержанию
плагин

specops — плагин для Claude Code: спецификации до кода

Плагин добавляет в Claude четырёхфазный цикл: сначала требования и дизайн, потом код. Пригодится, когда агент бросается писать файлы, не разобравшись в задаче.

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add anthropics/claude-plugins-community
/plugin install specops@claude-community
Открыть на GitHub

Что делает specops

specops превращает одну команду в четыре шага: разобраться в кодовой базе, собрать спецификацию с требованиями, дизайном и упорядоченными задачами, реализовать по ней и закрыть с проверенными критериями приёмки. Спецификации лежат в git и переживают перезапуск сессии, а локальный слой памяти подгружается автоматически.

Требования пишутся в нотации EARS вида WHEN [event] THE SYSTEM SHALL [behavior], поэтому критерии приёмки не расплываются. Есть шаблоны под разные вертикали: backend, frontend, инфраструктура, пайплайны данных, библиотеки и SDK, fullstack. Крупные фичи плагин сам разбивает на несколько связанных спецификаций с зависимостями и очередью выполнения.

Перед добавлением новой зависимости срабатывает гейт: пакет оценивают по области применения, поддержке, размеру, безопасности и лицензии. Оценку спецификаций и реализации делает отдельный проверяющий по жёстким порогам, а не тот же агент, который писал код. Спецификации расходятся с кодом после правок — на это есть проверки дрейфа с командами аудита и сверки.

Какие задачи решает

  • собрать требования и дизайн до того, как агент напишет первый файл
  • сохранить спецификацию между сессиями в git
  • разбить крупную фичу на связанные спецификации с зависимостями
  • проверить качество спецификации и реализации сторонним проходом
  • поймать расхождение спецификации с кодом после правок

Примеры запросов агенту

  • /specops Добавь аутентификацию через OAuth
  • /specops Добавь OAuth и приём платежей
  • /specops learn batch-processing

Как установить specops

Через маркетплейс плагинов

/plugin marketplace add anthropics/claude-plugins-community
/plugin install specops@claude-community

По шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой

Вопросы о specops

Как установить specops в Claude Code?

Через маркетплейс плагинов: сначала /plugin marketplace add anthropics/claude-plugins-community, затем /plugin install specops@claude-community.

Что делает specops?

Прогоняет задачу через четыре фазы: понимание кодовой базы, спецификация с требованиями и задачами, реализация по спецификации, завершение с проверенными критериями приёмки.

Спецификации specops сохраняются между сессиями?

Да, файлы спецификаций хранятся в git, поэтому контекст восстанавливается после закрытия сессии. Локальный слой памяти подгружается автоматически.

Исходный текст

SKILL.md · MIT
<p align="center">
  <img src="logo.svg" alt="SpecOps" width="200"/>
</p>

<h3 align="center">Make your AI agent think before it codes.</h3>

<p align="center">
  <a href="https://github.com/sanmak/specops/actions/workflows/ci.yml"><img src="https://github.com/sanmak/specops/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
  <a href="https://github.com/sanmak/specops/releases"><img src="https://img.shields.io/github/v/release/sanmak/specops" alt="GitHub Release"></a>
  <a href="https://github.com/sanmak/specops"><img src="https://img.shields.io/github/stars/sanmak/specops?style=social" alt="GitHub Stars"></a>
  <a href="https://github.com/sanmak/specops/blob/main/LICENSE"><img src="https://img.shields.io/github/license/sanmak/specops" alt="License: MIT"></a>
</p>

---

You describe a feature to your AI coding assistant. It starts writing code immediately. No requirements. No design. No task breakdown. You spend the next hour correcting assumptions it made in the first minute.

The problem isn't the AI. It's that nobody told it to think first.

## What SpecOps Does

SpecOps adds a structured thinking step to AI coding. One command triggers a 4-phase workflow:

1. **Understand** the codebase and context
2. **Spec** requirements, design, and ordered tasks
3. **Implement** from the spec, not from assumptions
4. **Complete** with verified acceptance criteria

Specs are git-tracked, survive across sessions, and work natively with **Claude Code**, **Cursor**, **OpenAI Codex**, **GitHub Copilot**, and **Google Antigravity**.

## Quick Start

**Claude Code (plugin marketplace):**

```text
/plugin marketplace add sanmak/specops
/plugin install specops@specops-marketplace
/reload-plugins
```

**One-line install (any platform):**

```bash
bash <(curl -fsSL https://raw.githubusercontent.com/sanmak/specops/main/scripts/remote-install.sh)
# Inspect the script first: https://github.com/sanmak/specops/blob/main/scripts/remote-install.sh
```

**Or clone and run:**

```bash
git clone https://github.com/sanmak/specops.git && cd specops && bash setup.sh
```

**Try it:**

```text
/specops Add user authentication with OAuth
```

> Platform-specific install details: [QUICKSTART.md](QUICKSTART.md) | Full command reference: [docs/COMMANDS.md](docs/COMMANDS.md)

## Before and After

**Without SpecOps:**

```text
You: "Add OAuth authentication"
Agent: *writes auth.ts, picks JWT without asking, hardcodes Google,
       skips rate limiting, creates 6 files*
You: "No, I needed GitHub too, and..." (30 min of corrections)
```

**With SpecOps:**

```text
You: "/specops Add OAuth authentication"
Agent:
  requirements.md  ->  4 user stories, 12 acceptance criteria (EARS notation)
  design.md        ->  JWT vs sessions trade-off, provider abstraction layer
  tasks.md         ->  8 ordered tasks with dependencies and effort estimates
  Then implements each task against verified criteria.
```

<p align="center">
  <img src="assets/workflow.svg" alt="SpecOps 4-phase workflow: Understand, Spec, Implement, Complete" width="900"/>
</p>

## Problems SpecOps Solves

| Problem | How SpecOps handles it |
| --- | --- |
| AI starts coding without understanding the domain | 7 vertical templates: backend, frontend, infra, data pipelines, library/SDK, fullstack, builder |
| Specs lost when you close the session | Git-tracked spec files with cross-session context recovery |
| Agent forgets decisions from yesterday | Local memory layer, loaded automatically every session |
| No way to review specs before coding starts | Built-in team review workflow with configurable approval gates |
| Agent hallucinates vague acceptance criteria | EARS notation for precise requirements: `WHEN [event] THE SYSTEM SHALL [behavior]` |
| Specs drift from codebase after implementation | 5 automated drift checks with audit and reconcile commands |
| AI adds packages without checking maintenance or license | Dependency introduction gate: 5-criteria evaluation (scope, maintenance, size, security, license) before any install |
| Agent marks its own work as "done" without scrutiny | Adversarial evaluation: separate evaluator scores specs and implementations against hard thresholds |
| Production reveals things specs missed | Production learnings layer: capture discoveries, link to specs, surface in future work |
| Locked into one AI coding tool | One source of truth, 5 platform outputs |

## Built With SpecOps

Every feature of SpecOps was specified, designed, and implemented using the SpecOps workflow. All specs are [public in `.specops/`](.specops/). The friction log captures 42 lessons learned that shaped the tool.

## Multi-Spec Features

Large features that span multiple bounded contexts are automatically detected and split into coordinated specs.

```text
You: "/specops Add OAuth authentication and payment processing"
Agent:
  Scope assessment → 2 bounded contexts detected (auth, payments)
  Proposed split:
    Spec 1: oauth-authentication (wave 1 — walking skeleton)
    Spec 2: payment-processing (wave 2 — depends on auth)
  Initiative: oauth-payments (tracks both specs)

  You approve → 2 specs created, linked via specDependencies
  /specops initiative oauth-payments → executes both in order
```

Dependency gates, execution waves, and initiative tracking handle the coordination automatically.

## Production Learnings

Specs end at "completed." But production reveals things specs missed. SpecOps closes this loop: capture discoveries with `/specops learn`, link them to originating specs, and surface relevant learnings automatically when future specs touch the same code.

```text
/specops learn batch-processing
→ Learning: "Concurrent writes above 500 connections degrade P99"
→ Prevention: "Design docs must include concurrency limits for write-heavy ops"

# Later, a new spec touching the same files loads this automatically
```

> Full details: [docs/LEARNINGS.md](docs/LEARNINGS.md)

## What Only SpecOps Does

- **Production learnings**: the only spec tool that captures post-deployment discoveries, links them to originating specs, and surfaces relevant learnings in future work. No competitor closes the spec-to-production feedback loop.
- **Multi-platform**: the only spec-driven development tool that works across Claude Code, Cursor, OpenAI Codex, GitHub Copilot, and Google Antigravity from a single source
- **Spec decomposition**: automatic scope assessment splits large features into multiple coordinated specs with dependency tracking and initiative orchestration
- **Vertical awareness**: domain-specific spec templates. Infrastructure specs include rollback steps and resource definitions. Data pipeline specs include data contracts and backfill strategy.
- **Adversarial evaluation**: a structurally separated evaluator scores spec quality (Phase 2) and implementation quality (Phase 4) against hard thresholds. Agents praise their own work; a second pass with skepticism prompting catches what they missed.
- **Dependency governance**: every new package must pass a 5-criteria gate (scope match, maintenance health, size proportionality, security surface, license compatibility) before installation. Always active, no bypass.
- **Enforcement, not suggestions**: CI-integrated drift detection, checkbox completion gates, dependency gates, and approval workflows that block implementation until specs are approved
- **Open source, local, no lock-in**: everything is git-tracked markdown. No cloud service, no account required. MIT license.

> [Full comparison with Superpowers, Kiro, EPIC/Reload, and Spec Kit](docs/COMPARISON.md) | [Plan Mode vs Spec Mode](docs/PLAN-VS-SPEC.md)

## Platforms

| Platform | Trigger |
| --- | --- |
| **Claude Code** | `/specops [description]` |
| **Cursor** | `Use specops to [description]` |
| **OpenAI Codex** | `Use specops to [description]` |
| **GitHub Copilot** | `Use specops to [description]` |
| **Google Antigravity** | `Use specops to [description]` |

## Configuration

Create `.specops.json` in your project root. Configuration is optional. SpecOps uses sensible defaults.

```json
{
  "specsDir": ".specops",
  "vertical": "backend",
  "team": {
    "conventions": ["Use TypeScript", "Write tests for business logic"],
    "reviewRequired": true
  }
}
```

> Examples: [examples/](examples/) | Full schema reference: [REFERENCE.md](docs/REFERENCE.md) | Steering files: [STEERING_GUIDE.md](docs/STEERING_GUIDE.md)

## Writing and Engineering Philosophy

Specs follow principles from Orwell, Bezos, Lamport, Brooks, Beck, and Leveson. Every requirement passes the ANT test: if a statement cannot be false, it carries no information and gets rewritten. [Writing rules](docs/WRITING_PHILOSOPHY.md) | [Engineering rules](docs/ENGINEERING_PHILOSOPHY.md)

## Contributing

Contributions welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

## License

[MIT](LICENSE)

© sanmak · MIT · sanmak/specops

Похожие плагины

Все плагины по теме «Настройка агента: память, контекст, субагенты» →
openspec-implementation forztf Последовательно выполняет задачи из утверждённых спецификаций openspec, запуская тесты на каждом шаге перед переходом дальше. CX Codex +1 1 400установок add-task NeoLabHQ Создаёт файл задачи в .specs/tasks/draft/ из вашего запроса: с заголовком-действием, типом и исходным текстом. Старт цепочки spec-driven разработки. CX Codex +1 1 200установок cook paulnsorensen Скилл берёт утверждённую спеку или конкретную задачу и доводит её до кода: правит исходники так, чтобы не задеть устаревшие места, гоняет тесты и линт, а потом передаёт работу дальше. CX Codex +1 667установок specclaw chan4lk Ведёт изменение по шагам: предложение, план, сборка, проверка, pull request. Каждый шаг оставляет короткий след в репозитории. ★ 13звёзд репо tlc-spec-driven Felipe Rodrigues - github.com/felipfr Организует разработку фич по спецификации через четыре фазы: Specify, Design, Tasks и Execute. Автоматически подбирает глубину и проверяет гейты скриптами на Python. CX Codex +1 1 200установок autopilot nick-vels Ведёт продиктованную идею до готового проекта в одном диалоге: требования, спецификация, тикеты, субагенты и приёмка без утверждения каждого шага. CX Codex +1 5 300установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой