Central module registry for SpecFact CLI. This repository hosts official nold-ai bundles and their documentation.
| Path | Purpose |
|---|---|
packages/ |
Bundle source packages (one directory per bundle) |
registry/ |
Published registry index and tarballs |
docs/ |
Bundle and module documentation (published to GitHub Pages) |
scripts/ |
CI helpers, signing scripts, quality gates |
tests/ |
Contract and unit tests for all bundles |
openspec/ |
OpenSpec change artifacts (proposals, specs, tasks) |
Third-party bundles are published from their own repositories and are not hosted here.
Prerequisites: Python 3.11+, Hatch.
# 1. Create the shared Hatch environment
hatch env create
# 2. Install specfact-cli as an editable dependency
# (prefers $SPECFACT_CLI_REPO, then a matching worktree branch, then ../specfact-cli)
hatch run dev-deps
# 3. Install pre-commit hooks (runs quality gates and code review on every commit)
pre-commit installIn Cursor / VS Code, select the interpreter at specfact-cli-modules/.venv/bin/python.
Run the full gate sequence from the repo root before opening a PR:
hatch run format
hatch run type-check
hatch run lint
hatch run yaml-lint
hatch run check-bundle-imports
hatch run verify-modules-signature --payload-from-filesystem --enforce-version-bump
hatch run contract-test
hatch run smart-test
hatch run test
hatch run specfact code review run --level error --json --out .specfact/code-review.jsonThe pre-commit hooks run the same sequence automatically on every git commit (Blocks 1 and 2). To run them manually against all files:
pre-commit run --all-files- format / lint / type-check — Ruff, basedpyright, and pylint.
basedpyrightandpylintare scoped tosrc/,tests/, andtools/; Ruff runs on the full repo. - check-bundle-imports — Enforces import boundary policy (
ALLOWED_IMPORTS.md).TYPE_CHECKING-only imports are excluded from the check. - contract-test — Contract-first test suite; must pass before running
smart-test/test. - code review gate — Runs
specfact code review run --level erroron staged.py/.pyifiles underpackages/,registry/,scripts/,tools/,tests/, andopenspec/changes/. The pre-commit hook blocks on error-severity findings only; warnings are advisory and must be remediated before merge unless a documented exception exists. Full options (--mode,--focus,--bug-hunt, etc.) are documented in Code review module.
Bump the version field in packages/<bundle>/module-package.yaml whenever you change a bundle's source payload, then refresh the checksum:
python scripts/sign-modules.py --allow-unsigned --payload-from-filesystem packages/<bundle>/module-package.yamlThe pre-commit hook auto-runs this step and re-stages updated manifests on non-main branches.
| Context | Requirement |
|---|---|
PRs targeting dev |
Checksum + version bump; no cryptographic signature required |
PRs targeting main |
Cryptographic signature required (--require-signature) |
Push to dev / main |
CI auto-signs via sign-modules.yml after merge |
| Approved same-repo PRs | sign-modules-on-approval.yml signs before merge using repo secrets |
registry/index.json and published tarballs are not updated locally — they are updated by publish-modules after merge to dev/main. For rare manual registry repair, use hatch run sync-registry-from-package --bundle <name> (not wired into pre-commit).
See Module signing for the full signing workflow.
- GitHub Pages:
https://nold-ai.github.io/specfact-cli-modules/ - URL contract (core → modules handoffs):
docs/reference/documentation-url-contract.md