Module Marketplace
SpecFact supports centralized marketplace distribution with local multi-source discovery.
Registry Overview
- Registry repository: https://github.com/nold-ai/specfact-cli-modules
- Index document:
registry/index.json - Marketplace module id format:
namespace/name(for examplespecfact/backlog)
Discovery and Priority
Local module discovery scans these roots in priority order:
built-inmodules (src/specfact_cli/modules)marketplacemodules (~/.specfact/marketplace-modules)custommodules (~/.specfact/custom-modules)- extra custom roots (workspace
modules/andSPECFACT_MODULES_ROOTS)
If module names collide, higher-priority sources win and lower-priority entries are shadowed.
Trust vs Origin
SpecFact shows both trust semantics and origin details:
Trustcolumn (default):official,community,local-devOrigincolumn (--show-origin):built-in,marketplace,custom
Use:
specfact module list --show-origin
Security Model
Install workflow enforces integrity and compatibility checks:
- Fetch registry index
- Download module archive
- Validate SHA-256 checksum
- Validate module
core_compatibilityagainst current CLI version - Install into
~/.specfact/marketplace-modules/
Checksum mismatch blocks installation.
Marketplace vs Local Modules
specfact module installtargets marketplace modules.- If a requested module already exists locally (
built-in/custom), install reports that no marketplace install is needed. specfact module uninstallremoves only marketplace-installed modules and provides actionable guidance for built-in/custom modules.
Module Introspection
specfact module show <name> includes:
- Module metadata (publisher, license, trust, origin, compatibility)
- Full command tree, including subcommands
- Short command descriptions derived from Typer command registration