Requirement
REQ-CLI-020 — Auto-generate SKILL.md from CLI command catalog
Summary
lattice init --skill currently ships a static, hand-maintained SKILL.md template. When new commands or flags are added (like --files and --test-command on edit), the skill can go stale, causing agents to miss capabilities and fall back to editing YAML directly.
Instead, init --skill should generate the skill from lattice --json (the command catalog), ensuring it always reflects the current CLI surface.
Motivation
Inspired by gws (Google Workspace CLI) which auto-generates 92+ agent skills from its Discovery Document metadata via gws generate-skills. See SRC-GWS-CLI in the lattice.
Acceptance Criteria
Lattice
- Derives from: THX-SKILL-AWARE-GRAPH
- Source: SRC-GWS-CLI
Requirement
REQ-CLI-020 — Auto-generate SKILL.md from CLI command catalog
Summary
lattice init --skillcurrently ships a static, hand-maintained SKILL.md template. When new commands or flags are added (like--filesand--test-commandonedit), the skill can go stale, causing agents to miss capabilities and fall back to editing YAML directly.Instead,
init --skillshould generate the skill fromlattice --json(the command catalog), ensuring it always reflects the current CLI surface.Motivation
Inspired by gws (Google Workspace CLI) which auto-generates 92+ agent skills from its Discovery Document metadata via
gws generate-skills. See SRC-GWS-CLI in the lattice.Acceptance Criteria
lattice init --skillgenerates SKILL.md from the--jsoncommand catalogLattice