ai-devkit
ai-devkit copied to clipboard
feat(skill): skill add <registry> --all — bulk install for CI provisioning
Summary
skill add installs one skill at a time. CI/runner provisioning needs the whole registry, and today users must script enumeration against internal cache paths (a published workaround script clones the registry and loops skill add) — fragile and dependent on implementation details. Add a first-class bulk mode.
Proposed interface
ai-devkit skill add <registry> --all
ai-devkit skill add <registry> --all -g -e claude codex pi --mode copy
ai-devkit skill add <registry> --all --dry-run --json
ai-devkit skill add <registry> --all --exclude "design-ux-writing"
Semantics
--allis mutually exclusive with a<skill-name>positional (both = error)- Idempotent by default: already-installed skills are skipped and counted; never prompts, never silently updates (updating stays
skill update's job —--allprovisions) - Partial failure: continue per-skill; summary table (installed / skipped / failed); non-zero exit if any failed
- Enumeration source: the registry itself (cached clone maintained by
add-registry, shallow-clone fallback) — NOT the search index, and NOT internal cache paths; the registry is the stable contract --dry-run: list what would be installed, install nothing--json: machine-readable result list ({skill, status, error?}) consistent withstatus --jsonconventions--exclude <glob>: v1 filtering (include is YAGNI)- Interactivity guard: non-TTY never prompts (pure CI mode); TTY + registry containing >20 skills asks one confirm
--built-inkeeps its current UX (may share internals with--all)
Testing
- Unit: flag exclusivity, skip-counting, exit codes, exclude glob
- E2E: use the local
file://registry support as a deterministic fixture — temp dir with 3 fixture skills,--all, assert 3 installs; rerun asserts 3 skips;--excludeasserts 2;--dry-runasserts 0 installs
Non-goals
- Updating/refreshing already-installed skills (
skill updateowns that) - Installing across ALL configured registries (
--allis registry-scoped by design)