Skip to main content

Crate skillpack

Crate skillpack 

Source
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-interactive flag for CI, plus --verbose / --debug diagnostics.
config
skillpack.toml — the committed config that makes re-runs deterministic.
exit
Canonical exit codes.
generate
Generate the three distribution files from a ProjectProfile + Intent via Tera templates. Pure (no disk writes here): returns GeneratedFileOutputs; 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 when skillpack.toml already holds the answers.
introspect
Repo introspection. Produces a ProjectProfile from pure filesystem reads, plus one guarded --help spawn when a CLI binary is detected.
spawn
A guarded, time-boxed subprocess spawn shared by introspect and verify::invocation.
types
Shared data types passed between the pipeline stages.
verify
The skillpack verify subcommand: load the generated distribution files and run discovery + invocation checks against them.