Sandbox
@sanmak/specops

Spec-first plugin for Claude Code and other coding agents

SpecOps adds a four-phase workflow to agent-led coding: understand, spec, implement, and complete. It stores specs in git, adds review and dependency gates, and checks for drift so later sessions can pick up the same work.

49 stars4 forksPythonUpdated 1mo ago
Who it's for

Builders who want Claude Code, Cursor, Codex, or Copilot to write from requirements and design instead of jumping straight into code.

What it delivers

You can turn a vague feature request into a reviewed spec, ordered tasks, and checked implementation before the agent starts coding.

What it does

Four-phase workflow

Runs understand, spec, implement, and complete as one guided flow for a feature request.

Git-tracked specs

Keeps requirements, design, and tasks in `.specops/` so the work survives across sessions.

Local memory layer

Loads prior decisions and learnings so the agent does not forget earlier context.

Review and approval gates

Blocks implementation until specs are reviewed and accepted when configured.

Dependency introduction gate

Checks new packages for scope fit, maintenance, size, security, and license before install.

Drift detection and reconcile commands

Compares code and specs after implementation and flags when they diverge.

Multi-platform outputs

Works from one source across Claude Code, Cursor, Codex, and Copilot outputs.

Production learnings

Captures post-deployment discoveries and surfaces them in later specs that touch the same code.

How to get it

  1. 1Claude Code (plugin marketplace)
    /plugin marketplace add sanmak/specops
    /plugin install specops@specops-marketplace
    /reload-plugins
  2. 2One-line install (any platform)
    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
  3. 3Or clone and run
    git clone https://github.com/sanmak/specops.git && cd specops && bash setup.sh
  4. 4Try it
    /specops Add user authentication with OAuth

README

SpecOps

Make your AI agent think before it codes.

CI GitHub Release GitHub Stars License: MIT


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):

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

One-line install (any platform):

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:

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

Try it:

/specops Add user authentication with OAuth

Platform-specific install details: QUICKSTART.md | Full command reference: docs/COMMANDS.md

Before and After

Without SpecOps:

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:

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.

SpecOps 4-phase workflow: Understand, Spec, Implement, Complete

Problems SpecOps Solves

ProblemHow SpecOps handles it
AI starts coding without understanding the domain7 vertical templates: backend, frontend, infra, data pipelines, library/SDK, fullstack, builder
Specs lost when you close the sessionGit-tracked spec files with cross-session context recovery
Agent forgets decisions from yesterdayLocal memory layer, loaded automatically every session
No way to review specs before coding startsBuilt-in team review workflow with configurable approval gates
Agent hallucinates vague acceptance criteriaEARS notation for precise requirements: WHEN [event] THE SYSTEM SHALL [behavior]
Specs drift from codebase after implementation5 automated drift checks with audit and reconcile commands
AI adds packages without checking maintenance or licenseDependency introduction gate: 5-criteria evaluation (scope, maintenance, size, security, license) before any install
Agent marks its own work as "done" without scrutinyAdversarial evaluation: separate evaluator scores specs and implementations against hard thresholds
Production reveals things specs missedProduction learnings layer: capture discoveries, link to specs, surface in future work
Locked into one AI coding toolOne 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/. 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.

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.

/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

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 | Plan Mode vs Spec Mode

Platforms

PlatformTrigger
Claude Code/specops [description]
CursorUse specops to [description]
OpenAI CodexUse specops to [description]
GitHub CopilotUse specops to [description]
Google AntigravityUse specops to [description]

Configuration

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

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

Examples: examples/ | Full schema reference: REFERENCE.md | Steering files: 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 | Engineering rules

Contributing

Contributions welcome. See CONTRIBUTING.md for guidelines.

License

MIT

Files in the repo

Repository payload34 top-level entries
  • .claude
  • .claude-plugin
  • .github
  • .specops
  • assets
  • core
  • docs
  • examples
  • generator
  • hooks
  • platforms
  • scripts
  • skills
  • tests
  • .coderabbit.yml
  • .gitignore
  • .markdownlint.json
  • .specops.json
  • CHANGELOG.md
  • CHECKSUMS.sha256
  • CLAUDE.md
  • CONTRIBUTING.md
  • index-schema.json
  • initiative-schema.json
  • LICENSE
  • logo.svg
  • PRIVACY.md
  • QUICKSTART.md
  • README.md
  • schema.json
  • SECURITY.md
  • setup.sh
  • spec-schema.json
  • verify.sh

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More plugins

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

138k
1 add

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

82k
code-yeongyu/
oh-my-openagent

OmO: Just type "mass ulw" keyword with your prompt. Now you are the master of graph engineering.

69k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

94k

Opinionated Oxlint rules for rejecting low-evidence TypeScript and JavaScript patterns

4.3k