{"id":50118676,"url":"https://github.com/nold-ai/specfact-cli-modules","last_synced_at":"2026-05-23T17:05:33.921Z","repository":{"id":341478636,"uuid":"1162937710","full_name":"nold-ai/specfact-cli-modules","owner":"nold-ai","description":" Official SpecFact workflow modules and deep docs for backlog, project, code, spec, and governance workflows built on the core CLI.","archived":false,"fork":false,"pushed_at":"2026-05-17T22:00:08.000Z","size":20089,"stargazers_count":0,"open_issues_count":33,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T23:46:45.772Z","etag":null,"topics":["ai","backlog","backlog-refinement","brownfield","code-review","code2spec","context-engineering","contract-testing","contracts","copilot","intent-driven-development","kanban","legacy-modernization","python","requirements-engineering","scrum","spec-driven-development","tdd","testing"],"latest_commit_sha":null,"homepage":"http://modules.specfact.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nold-ai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-20T22:00:31.000Z","updated_at":"2026-05-08T10:58:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"7336e1dc-ca2e-4dae-b940-3f508084cc8e","html_url":"https://github.com/nold-ai/specfact-cli-modules","commit_stats":null,"previous_names":["nold-ai/specfact-cli-modules"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nold-ai/specfact-cli-modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nold-ai%2Fspecfact-cli-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nold-ai%2Fspecfact-cli-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nold-ai%2Fspecfact-cli-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nold-ai%2Fspecfact-cli-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nold-ai","download_url":"https://codeload.github.com/nold-ai/specfact-cli-modules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nold-ai%2Fspecfact-cli-modules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33404368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","backlog","backlog-refinement","brownfield","code-review","code2spec","context-engineering","contract-testing","contracts","copilot","intent-driven-development","kanban","legacy-modernization","python","requirements-engineering","scrum","spec-driven-development","tdd","testing"],"created_at":"2026-05-23T17:05:33.118Z","updated_at":"2026-05-23T17:05:33.916Z","avatar_url":"https://github.com/nold-ai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# specfact-cli-modules\n\nCentral module registry for SpecFact CLI. This repository hosts official **nold-ai** bundles and their documentation.\n\n## Highlight: AI-shaped bloat detection\n\nThe Code Review bundle now surfaces `ai_bloat` findings: advisory, score-neutral signals tuned for the bloated shapes AI-assisted code commonly produces, such as identity `try/except`, one-call wrappers, passthrough lambdas, redundant intermediates, and long linear functions. A dry run on this change's affected package sources found 144 advisory candidates and applied 0 automatic rewrites; use `specfact code review run --json --out .specfact/code-review.json`, then run `/specfact.08-simplify` in your AI IDE to review each simplification with per-change confirmation. See the [AI bloat quickstart](./docs/quickstart-ai-bloat.md).\n\n## Repository layout\n\n| Path | Purpose |\n|------|---------|\n| `packages/` | Bundle source packages (one directory per bundle) |\n| `registry/` | Published registry index and tarballs |\n| `docs/` | Bundle and module documentation (published to GitHub Pages) |\n| `scripts/` | CI helpers, signing scripts, quality gates |\n| `tests/` | Contract and unit tests for all bundles |\n| `openspec/` | OpenSpec change artifacts (proposals, specs, tasks) |\n\nThird-party bundles are published from their own repositories and are not hosted here.\n\n## First-time setup\n\nPrerequisites: Python 3.11+, [Hatch](https://hatch.pypa.io).\n\n```bash\n# 1. Create the shared Hatch environment\nhatch env create\n\n# 2. Install specfact-cli as an editable dependency\n#    (prefers $SPECFACT_CLI_REPO, then a matching worktree branch, then ../specfact-cli)\nhatch run dev-deps\n\n# 3. Install pre-commit hooks (runs quality gates and code review on every commit)\npre-commit install\n```\n\nIn Cursor / VS Code, select the interpreter at `specfact-cli-modules/.venv/bin/python`.\n\n## Quality gates\n\nRun the full gate sequence from the repo root before opening a PR:\n\n```bash\nhatch run format\nhatch run type-check\nhatch run lint\nhatch run yaml-lint\nhatch run check-bundle-imports\nhatch run verify-modules-signature --payload-from-filesystem --enforce-version-bump\nhatch run contract-test\nhatch run smart-test\nhatch run test\nhatch run specfact code review run --bug-hunt --json --out .specfact/code-review.json\n```\n\nThe pre-commit hooks run the same sequence automatically on every `git commit` (Blocks 1 and 2). To run them manually against all files:\n\n```bash\npre-commit run --all-files\n```\n\n### Gate details\n\n- **format / lint / type-check** — Ruff, basedpyright, and pylint. `basedpyright` and `pylint` are scoped to `src/`, `tests/`, and `tools/`; Ruff runs on the full repo.\n- **check-bundle-imports** — Enforces import boundary policy (`ALLOWED_IMPORTS.md`). `TYPE_CHECKING`-only imports are excluded from the check.\n- **contract-test** — Contract-first test suite; must pass before running `smart-test` / `test`.\n- **code review gate** — Runs `specfact code review run` on staged `.py`/`.pyi` files under `packages/`, `registry/`, `scripts/`, `tools/`, `tests/`, and `openspec/changes/`. The pre-commit hook blocks on the report `ci_exit_code`; warnings and `ai_bloat` info findings 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](./docs/modules/code-review.md).\n\n## Module signatures and versioning\n\nBump the `version` field in `packages/\u003cbundle\u003e/module-package.yaml` whenever you change a bundle's source payload, then refresh the checksum:\n\n```bash\npython scripts/sign-modules.py --allow-unsigned --payload-from-filesystem packages/\u003cbundle\u003e/module-package.yaml\n```\n\nThe pre-commit hook auto-runs this step and re-stages updated manifests on non-`main` branches.\n\n### When signatures are required\n\n| Context | Requirement |\n|---------|------------|\n| PRs targeting `dev` | Checksum + version bump; no cryptographic signature required |\n| PRs targeting `main` | Cryptographic signature required (`--require-signature`) |\n| Push to `dev` / `main` | CI auto-signs via `sign-modules.yml` after merge |\n| Approved same-repo PRs | `sign-modules-on-approval.yml` signs before merge using repo secrets |\n\n`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 \u003cname\u003e` (not wired into pre-commit).\n\nSee [Module signing](./docs/authoring/module-signing.md) for the full signing workflow.\n\n## Documentation\n\n- GitHub Pages: `https://nold-ai.github.io/specfact-cli-modules/`\n- URL contract (core → modules handoffs): `docs/reference/documentation-url-contract.md`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnold-ai%2Fspecfact-cli-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnold-ai%2Fspecfact-cli-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnold-ai%2Fspecfact-cli-modules/lists"}