SpecScore: an open, lintable format for AI-readable specs

Every ambiguity in your spec
is a token your agent burns.

SpecScore is an open, lintable file format for specifications, written in Markdown and YAML (YAML Ain't Markup Language) — like JSON (JavaScript Object Notation) for data — with a command-line interface (CLI) your agents call to query and edit them, like jq for JSON. A spec score is the check on those files: the linter passes or fails a specification when required sections, references or lifecycle status are wrong, and you can run that check in CI (continuous integration), the automated build that runs on every change. SDD (spec-driven development) means writing that specification before the code and checking the code against it. What a spec score means explains the name; how to lint specs in CI shows the check in the build.

Then a clarifying question mid-build. Then a fix after it ships. Then the context you keep re-explaining.

See it in 1:38: lint a spec before the agent writes code, then plan against it. Real specscore CLI output on a demo repo.

A format for the specs you already write.

SpecScore is a Markdown + YAML format for features, requirements, and acceptance criteria. It defines a structure your team and your AI agents both understand — and it's just files in your repo.

A SpecScore project is three artifact kinds along a lifecycle: an Idea captures a half-formed direction; aFeature spec freezes the agreed behavior; aPlan decomposes the feature into ordered tasks that each cite the acceptance criteria they satisfy.

Why your agent cares. Because the structure is machine-readable, AI agents can query the spec through the CLI instead of reading every file. Ask "what should I work on next?" and the CLI returns open Features and unanswered questions. Same shape your team reviews; far less context the agent has to load.

Feature → Requirements → Acceptance Criteria (Given / When / Then).
EXAMPLEspec/ideas/discount-codes.md
---
format: https://specscore.md/idea-specification
status: Specified
---

# Idea: Discount codes at checkout

**Status:** Specified
**Date:** 2026-05-19
**Owner:** cart-team
**Promotes To:** apply-discount
**Supersedes:** —
**Related Ideas:** —

## Problem Statement

How might we let returning customers redeem a single promo
code at checkout without breaking the existing cart math
or the site-wide promotion engine?

## Context

Support applies promo codes by hand today. Each manual
discount skips the promotion engine.

## Recommended Direction

A registered user applies one valid code per cart. Codes
are time-bounded and replaceable. Stacking with site-wide
promotions follows a deterministic tiebreak: the higher
discount wins, and the site-wide promotion wins on a tie.

…
EXAMPLEspec/features/apply-discount/README.md
---
format: https://specscore.md/feature-specification
status: Approved
---

# Feature: Apply Discount

**Status:** Approved
**Source Ideas:** discount-codes

## Summary

A registered user can apply one valid discount code to
their cart at checkout.

## Problem

Returning customers hold promo codes but cannot redeem
them at checkout, so support applies discounts by hand.

## Behavior

### Single code per cart

#### REQ: one-code-per-cart

The cart MUST hold at most one discount code at a time.
Applying a second code MUST replace the first.

### Code validity

#### REQ: code-time-window

The system MUST accept a code only while `valid_from` <=
now <= `valid_until`.

## Acceptance Criteria

### AC: second-code-replaces-first (verifies REQ:one-code-per-cart)

**Given** a cart with code `SAVE20` applied
**When** the user applies code `SAVE10`
**Then** the cart shows only `SAVE10` and a confirmation

### AC: expired-code-rejected (verifies REQ:code-time-window)

**Given** a code whose `valid_until` is yesterday
**When** the user applies it
**Then** the total is unchanged and "This code has expired" shows

## Open Questions

None at this time.

---
*This document follows the https://specscore.md/feature-specification*
EXAMPLEspec/plans/apply-discount/README.md
---
format: https://specscore.md/plan-specification
status: Approved
---
# Plan: Apply Discount

**Status:** Approved
**Source Feature:** apply-discount
**Date:** 2026-05-26
**Owner:** cart-team
**Supersedes:** —

## Summary

Implement the apply-discount feature: one code per cart,
with a validity window.

## Approach

Build the cart `code` field first, then validate the time
window on top of it.

## Tasks

### Task 1: Accept a discount code on the cart

**Id:** task-1
**Verifies:** apply-discount#ac:second-code-replaces-first
**Depends-On:** —
**Status:** planning

Add a `code` field to the cart and replace it when a
second code is applied.

### Task 2: Reject codes outside their validity window

**Id:** task-2
**Verifies:** apply-discount#ac:expired-code-rejected
**Depends-On:** 1
**Status:** planning

Compare `valid_from` and `valid_until` with now before
applying a code.

## Open Questions

None at this time.

---
*This document follows the https://specscore.md/plan-specification*

Specs are hierarchical. So your spec tree is too.

Flat list at fifty Features becomes a dump. SpecScore keeps the tree navigable: parents own scope, children own detail, and the directory shape mirrors the product shape your team already reasons about.

Open questions roll up. Unresolved questions at any depth surface in every parent's index. You see what is blocking a release from the top of the tree, without spelunking to find it.

Most spec tools assume a flat list works. It does — until it doesn't. SpecScore is built for the moment when "where does this Feature live?" starts to matter.

See it live in specscore-cli →

FROMspecscore-cli/spec/features/cli/
spec/features/cli/
├── agent/
│   └── setup/
├── feature/
│   ├── change-status/
│   ├── deps/
│   ├── info/
│   ├── list/
│   ├── new/
│   ├── refs/
│   └── tree/
├── idea/
│   ├── change-status/
│   ├── new/
│   └── relocate/
├── spec/
│   └── lint/
│       ├── issue-rules/     ← sub-sub-Feature
│       └── plan-rules/
├── task/
│   ├── info/
│   ├── list/
│   └── new/
└── … 10 more top-level Features

What goes wrong without it.

  • Specs drift.

    The spec in the doc, the thread in Slack, and the code in the PR quietly disagree for weeks. Nobody can find which version of the conversation is canonical.

    The fix

    One canonical spec, in the repo, versioned with the code.specscore spec lint runs in continuous integration (CI) on every push; git history is the audit trail. The spec, the thread, and the PR can't quietly disagree — they share the same file under review.

  • Acceptance criteria (AC) stay vague.

    "Handles errors gracefully" was supposed to mean"show a toast and roll back." Or was it"log and retry?" The agent has to guess.

    The fix

    Every criterion is written as Given / When / Then, so it must name a precondition, an action and an observable outcome. The AI review flags the ones that are still vague before any code is written. Writing the Then forces you to say what "handles" actually means.

  • Agents ship the wrong thing.

    Humans interpolate, ask, clarify. AI agents don't — they implement whatever pattern was most common in their training data. The code passes review because it doessomething sensible. It's just not what you meant.

    The fix

    Structured input. AI agents parse REQ IDs, AC IDs andGIVEN / WHEN / THENscenarios deterministically — there's nothing to interpolate. Plans must cite the AC IDs each task satisfies, so what was built is always checkable against what was specified.

  • You pay twice for a vague spec.

    The agent builds something from an ambiguous brief, you notice it's wrong, and you re-prompt — four different ways. Every half-built feature and every retry is billed in tokens. The vaguer the spec, the more rounds before it lands.

    The fix

    Lint the spec before the agent runs. specscore spec lintcatches missing sections, malformed acceptance-criteria headings and broken links up front, so the agent implements a concrete brief once instead of guessing across retries. The cheapest agent run is the one you don't repeat.

  • Agents pay to re-read your specs.

    An AI agent answering "what depends on this feature?"reads the whole feature README. Then every parent index. Then sibling features just in case. Every query is a re-parse. Tokens evaporate; latency rises; the bill rises with them.

    The fix

    Structured queries instead of file reads.specscore feature tree returns the hierarchy as YAML; feature deps walks the transitive dependency chain; feature info exposes status, owner, and open questions — each in one call. The agent navigates the graph, not the prose.

  • Code forgets its spec.

    Six months later, you're debugging a function and nobody remembers which feature it implements. The link between code and spec lived in someone's head, and that person left. The PR that introduced it is in the archive.

    The fix

    Source annotations. Comments like// specscore:implements feature/apply-discount#req:one-code-per-cartmake the link machine-readable and survive every refactor.specscore code deps answers"what spec does this file implement?" in one call;specscore code deps --check flags references that point at deleted specs.

  • Status changes leak.

    You move a feature from Draft to Approvedin its README, but the parent features-index still lists it as Draft. Three weeks later, an agent reading the index thinks it's still in flux. The status lives in two places now, and they disagree.

    The fix

    specscore feature change-status rewrites the feature's Status field and re-syncs the features-index row in one atomic step — lint failure rolls the rewrite back. The status exists in one canonical place; the index is a generated view of it.

  • Specs forget what they don't know.

    A spec reads as if it's settled — until you remember the"and what about timezones?" question got lost in a Slack thread two months ago and never made it into the doc. Now you're in implementation, and nobody can say what the answer was.

    The fix

    Every SpecScore feature has a mandatoryOutstanding Questions section. The linter rejects features that omit it — empty is fine ("None at this time."), but missing isn't. Unresolved questions are visible in the doc, queryable from the CLI, and impossible to forget.

The easiest way to start: SpecStudio Skills for AI agents.

SpecStudio Skillsis a Claude Code plugin that turns the SpecScore lifecycle into four slash commands. Install it once, then run them in order — from raw idea to executable plan.

$ /plugin marketplace add specscore/ai-marketplace
$ /plugin install specstudio@specscore
Claude Codeautocomplete
> /specstudio:
   /specstudio:ideate     Refine a raw idea into a SpecScore Idea
   /specstudio:specify    Turn an approved Idea into a Feature spec
   /specstudio:plan       Decompose a Feature into a Plan of tasks
   /specstudio:implement  Execute the next task in a Plan
Claude Code/ideate
> /ideate Let's think about how the basket screen should look for the checkout process.
Claude Code/specify
> /specify Let's define spec/ideas/checkout-basket.md
Claude Code/plan
> /plan Implement spec/features/checkout/basket/README.md
Claude Code/implement
> /implement Execute spec/plans/checkout-basket/README.md

Free for any use, including commercial. The plugin source is atspecscore/specstudio-skills — MIT-licensed.

Check your spec in two passes.

A fast deterministic linter, then a deeper AI review — run against the spec you just saw, with a few deliberate mistakes. Two passes, two kinds of certainty.

Run the linter.

deterministic

Same result every run. Free, fast, runs on every commit.

Review & score with AI.

non-deterministic

Reads for meaning, like a human reviewer.

Here's what it won't catch.

A linter that claims it catches everything is lying. SpecScore is a layered system — a deterministic linter, an AI reviewer, and your own judgment — and each layer has a real edge. We wrote them all down: what lint catches, what the AI catches, and what's still on you because no tool can do it yet.

What the linter won't catch →

What's in the box.

The format

Markdown + YAML. Works in any editor that opens text. No new tooling required to start writing.

The linter

Go CLI. Validates structure, references, and completeness. Exits non-zero on failure — works in your terminal and your CI.

Bring your own everything.

SpecScore is just files in your repo. No SaaS to sign up for. No orchestrator required. Use it with Linear, Jira, GitHub Projects, raw Markdown in a folder, or no project management at all. The format and the linter don't care where your tickets live.

Prefer the CLI?

Don't use AI agents, or need spec validation in your CI pipeline? There's a CLI for that. Install it in 60 seconds — no account, no telemetry, works on any directory of Markdown specs.

$ curl -fsSL https://specscore.md/install/get-cli | sh

Scaffold a spec tree in any Git repository, then lint it:

$ specscore init
Initialized SpecScore project at /path/to/repo
$ specscore spec lint
0 violations found

Read the full docsContribute on GitHub

Built on SpecScore.

  • DataTug

    Explore database schemas, build and run queries, and understand results with DataTug. SpecScore guides its requirements and acceptance criteria.

    datatug.app The tools behind it
  • MeaningGraph

    Open registry for data models and semantic definitions, kept in your own Git repositories and linked to models and code.

    meaninggraph.io Browse the registry
  • Codegrapher

    Code-graph engine for fast code exploration and bidirectional spec↔code linkage.

    codegrapher.dev
  • DALgo

    Go data-access layer specified with SpecScore.

    dal-go.github.io
  • inGitDB

    Git-backed versioned database specified with SpecScore.

    ingitdb.com
  • Rehearse

    Acceptance-evidence layer — runs a spec's acceptance criteria for real, with reusable checks and no glue code.

    rehearse.ink
  • SpecScore Studio

    Web UI for viewing and editing SpecScore specifications.

    specscore.studio

Got questions?

Here are the questions people keep asking. Each links to the full answer on the FAQ page.

How is SpecScore different from spec-kit?

spec-kit is a methodology; SpecScore is a storage format for the specs you write, plus a CLI. They compose — a spec-kit extension that writes SpecScore is in flight.

Full answer →
How are SpecStudio Skills different from Superpowers and agent-skills?

Similar in spirit — all three guide AI agents through ideate → specify → plan → implement. SpecStudio Skills writes artifacts in the SpecScore format and uses thespecscore CLI for queries and status changes; the others read and write files directly. Pick SpecStudio when token consumption matters.

Full answer →
Why a CLI — can I not just install skills?

Skills cannot reliably enforce referential integrity, return filtered queries without reading every file, or mutate the right status field at the right time. The CLI does each in one call. Skills read every file to do the same.

Full answer →
Why "SpecScore" — what does it score?

Two readings, both intended. Partitura — a structured score of requirements. And a literal quality grade — the CLI linter is the deterministic score, and the/score skill is the AI-judged A–F readiness grade.

Full answer →
Where are the token-savings numbers?

A measured side-by-side comparison is in flight before the Habr post. Structurally: the CLI returns a small structured list; a vanilla agent reads N documents instead.

Full answer →
What licence is SpecScore under?

The specification and the documentation in the public repository specscore/specscore are CC BY 4.0. The reference command-line interface (CLI) in specscore/specscore-cli is Apache-2.0.

Full answer →
Does SpecScore require a specific AI coding tool?

No. Specifications are plain files in the repository. The CLI is a local binary. AI Skills on this site wrap that CLI for agents that can run skills. The format does not require one vendor.

Full answer →
What is spec-driven development (SDD)?

Spec-driven development (SDD) means writing a testable specification — requirements and acceptance criteria — before code, then checking the result against that specification. SpecScore is one file format for those specifications.

Full answer →

Define success. Then make room for it.

SpecScore gives your project a definition of done. A weekly commitment gives you a reason to choose what happens next. Connect the two with a short evidence review.

Specs that pass.

or read the docs

★ Star us on GitHub — it helps others find the project.GitHub stars

Have an idea how to improve this page?