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.9

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.9
File Size Uploaded
spec_probe-0.1.9.tar.gz 247.0 kB Details

Built distribution (wheel)

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

Total release size: 507.7 kB

Release files / spec_probe-0.1.9.tar.gz

Download URL spec_probe-0.1.9.tar.gz
Size 247.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f7abc4a986f3e02109a2e76f4bc0ec3aae61599275448ccd672cdb949ff33c3b
BLAKE2b-256 checksum
How to use checksums
d5a2ff7978ab907c53dc843d0a771c10ab8a5cf1344b73ca5264dbcce3a5a943
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.9-py3-none-any.whl

Download URL spec_probe-0.1.9-py3-none-any.whl
Size 260.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
335602b84e298245aa800624cbc2511c7ff2c09a1698b0ee25c2c249be18fe50
BLAKE2b-256 checksum
How to use checksums
53db2a6df75eb9146b8115be88fa61bf6b320a220240502b067bd5f22b4c4605
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

This release

0.1.9 This release

2 release files

0.1.8

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