Skip to main content

spec-probe

Check code against functional requirements in a spec (.md / .docx / .pdf). Use VS Code Copilot chat (/spec-cover, …) or the spec-probe CLI.


Install

pip install spec-probe
spec-probe-skill --vscode
Step What it does
pip install spec-probe Python package + CLI only
spec-probe-skill --vscode Skills →~/.copilot/skills/, config + .venv under ~/.config/spec-probe/

Python ≥ 3.11. Reload VS Code after spec-probe-skill.

Optional: sudo apt install ripgrep (faster search on Linux).


Configure

Edit files in ~/.config/spec-probe/:

1. API Keys & LLM (.env)

The default config.json uses GitHub Copilot (gpt-6-luna, gemini-3.8-flash) for search, rescue, and final review jobs, and Exacode for other pipeline jobs.

GitHub Copilot Token

To obtain and save your token automatically via GitHub Device Flow:

spec-probe-copilot-login
  1. Open the URL shown in terminal: https://github.com/login/device
  2. Enter the 8-character user code and click Authorize GitHub Copilot.
  3. The token is automatically saved to COPILOT_GITHUB_TOKEN in ~/.config/spec-probe/.env.
  4. Verify your setup:
    spec-probe-copilot-test
    

Alternative methods:

  • GitHub CLI (gh): If already authenticated via gh auth login, spec-probe automatically falls back to gh auth token. You can also run:
    spec-probe-copilot-login --token "$(gh auth token)"
    
  • Manual .env: Set directly in ~/.config/spec-probe/.env:
    COPILOT_GITHUB_TOKEN="gho_xxxxxxxxxxxxxxxxxxxx"
    

Exacode (OpenAI-compatible internal gateway)

Set in ~/.config/spec-probe/.env:

EXACODE_API_KEY=your_key_here
EXACODE_BASE_URL=https://api.example.com/exacode/v1

2. Paths (config.yaml)

Specify absolute paths:

input:
  module_path: /abs/path/to/your/app
  spec_path: /abs/path/to/spec.md
  related_modules:
    paths:
      - /abs/path/to/other/service

Codegraph (optional)

Needs Node.js.

spec-probe-codegraph /abs/path/to/module

With related_modules, index the monorepo root. After big changes: codegraph sync /abs/path/to/monorepo-root.


Chat workflow (VS Code Copilot)

Step In chat
Pack /spec-pack
Explore spec parse spec summary / list section …
Verify verify FR … / check requirement: (paste text)
Report file write report (after verify)
Audit /spec-audit

Large spec: parse → a few FRs or one section → verify. Verify/check → chat only; ask for a report when you need files.


CLI (optional)

spec-probe verify --module /abs/app --spec /abs/spec.md --fr FR-001
spec-probe check "The module shall …"
spec-probe parse --spec /abs/spec.md --summary

Paths default from ~/.config/spec-probe/config.yaml when omitted.


License

MIT — see LICENSE. Maintainers: docs/PYPI.md.

Release files for spec-probe 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spec-probe 0.1.8
File Size Uploaded
spec_probe-0.1.8.tar.gz 244.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spec-probe 0.1.8
File Interpreter ABI Platform
spec_probe-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 502.5 kB

Release files / spec_probe-0.1.8.tar.gz

Download URL spec_probe-0.1.8.tar.gz
Size 244.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e4a33a72a1be9a37793958aae1f80f37ff102c65677eddbbeed8001544c7953a
BLAKE2b-256 checksum
How to use checksums
4d0a2c63d01e7455ad470bbd42cd2c7a59311fef8f43538a3e621176a316b321
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / spec_probe-0.1.8-py3-none-any.whl

Download URL spec_probe-0.1.8-py3-none-any.whl
Size 258.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a97d2095411136dc2d57a65b84498fdaa2fa7cd9cab049dd2676b9ebf066463
BLAKE2b-256 checksum
How to use checksums
fa36052a82f2db826b41e4a54e9d559a6f784df41c2ebabc4b9f351f6922808e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

0.1.10

2 release files

0.1.9

2 release files

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page