ai-devkit icon indicating copy to clipboard operation
ai-devkit copied to clipboard

feat(skill): skill add <registry> --all — bulk install for CI provisioning

Open codeaholicguy opened this issue 3 weeks ago • 0 comments

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

  • --all is 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 — --all provisions)
  • 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 with status --json conventions
  • --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-in keeps 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; --exclude asserts 2; --dry-run asserts 0 installs

Non-goals

  • Updating/refreshing already-installed skills (skill update owns that)
  • Installing across ALL configured registries (--all is registry-scoped by design)

codeaholicguy avatar Nov 07 '26 16:11 codeaholicguy