Skip to main content

Verify if AI-generated code actually matches your spec.

Project description

Spec-Check

Did the AI actually build what you asked for?

One command. Checks your spec against the built code. Shows what's done, what's missing.

$ spec-check --spec "login, signup, dashboard, tasks, dark mode" --dir ./my-app

Built by NOUMENON — AI agents that debate, evolve, and build.

PyPI License: MIT Python 3.10+

Why This Exists

Every developer using Copilot, Cursor, or Claude has this problem: "I asked for 6 pages and it built 3." spec-check catches what's missing.

Install

pip install spec-check

# Optional: LLM-enhanced matching
pip install spec-check[llm]

Usage

# Check from text spec
spec-check --spec "login page, signup page, dashboard, task list, dark mode" --dir ./my-app

# Check from spec file
spec-check --spec-file spec.md --dir ./my-app

# Auto-detect from README
spec-check --dir ./my-app --auto

# JSON output for CI/CD
spec-check --spec "..." --dir . --format json

# Strict mode (exit 1 if < 100%)
spec-check --spec "..." --dir . --strict

Output

  SPEC-CHECK v1.0.0

  Scanning: ./my-app (47 files)
  Spec features: 7

  Feature              Status    Evidence
  Login page           FOUND     src/pages/login.tsx
  Signup page          FOUND     src/pages/signup.tsx
  Dashboard            FOUND     src/pages/dashboard.tsx
  Task list            FOUND     src/components/Tasks.tsx
  Task creation form   MISSING
  Dark mode            PARTIAL   tailwind.config has dark
  Mobile responsive    FOUND     Breakpoints in CSS

  Completeness: ██████████████░░░░░░ 71% (5/7 features built)

  Missing: task creation form
  Partial: dark mode (config exists, not applied to all components)

How It Works

  1. Parse your spec into individual features
  2. Generate search keywords for each feature (with synonyms)
  3. Search all project files for those keywords (filenames + contents)
  4. Score each feature: FOUND (2+ matches), PARTIAL (1 match), MISSING (0)
  5. Calculate completeness percentage

CI/CD Integration

name: Spec Check
on: [push, pull_request]
jobs:
  verify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: pip install spec-check
      - run: spec-check --spec-file SPEC.md --dir . --strict

Contributing

Ideas for better feature matching? Open a PR.

License

MIT


Part of the NOUMENON ecosystem. NOUMENON doesn't just check specs — it builds 100% of them. 16 AI agents debate, then build, then verify. Every time.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_spec_check-1.0.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_spec_check-1.0.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file ai_spec_check-1.0.0.tar.gz.

File metadata

  • Download URL: ai_spec_check-1.0.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ai_spec_check-1.0.0.tar.gz
Algorithm Hash digest
SHA256 69f310de0cd82782eb6d6a2284d2ba4d992bcd001b9618ea75a4501e8a7b99f4
MD5 164238f0ed2bdb49a694020ead8e9dcb
BLAKE2b-256 13f1d0e0ed78bb3d96ba873329a753703e1f7b0744f7b5fae3cd9fc97f7a87d9

See more details on using hashes here.

File details

Details for the file ai_spec_check-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ai_spec_check-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ai_spec_check-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92f1005da08d433e36e2e6a3f03c9b315bbda571c961533f4902ee4911a0bd6d
MD5 b4387c240a4b02ad34b1cef36594b1ec
BLAKE2b-256 4ae9e9819a6d1308b239af34f78086a11f2d99e78a8908aa205cc14d620f88db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page