Expand description
skillpack library surface.
The binary target (main.rs) implements the interactive CLI; this lib
target re-exports the pure modules so integration tests and property tests
in tests/ can exercise the parsers (extract_flags,
parse_skill_frontmatter, coerce_kebab, the discovery checks) directly
without going through the compiled binary.
Modules§
- cli
- clap argument parsing + subcommand dispatch. Per design §6.3, supports a
--non-interactiveflag for CI, plus--verbose/--debugdiagnostics. - config
skillpack.toml— the committed config that makes re-runs deterministic.- exit
- Canonical exit codes.
- generate
- Generate the three distribution files from a
ProjectProfile+Intentvia Tera templates. Pure (no disk writes here): returnsGeneratedFileOutputs; the CLI dispatcher decides whether to write them (after pre-commit verify). - interview
- The interactive interview. Three questions max (design §5.1 step 2),
producing an
Intent. Bypassable whenskillpack.tomlalready holds the answers. - introspect
- Repo introspection. Produces a
ProjectProfilefrom pure filesystem reads, plus one guarded--helpspawn when a CLI binary is detected. - spawn
- A guarded, time-boxed subprocess spawn shared by
introspectandverify::invocation. - types
- Shared data types passed between the pipeline stages.
- verify
- The
skillpack verifysubcommand: load the generated distribution files and run discovery + invocation checks against them.