Skip to content

feat: selective-install closure via .skills-deps.json - #17

Merged
kanfil merged 1 commit into
mainfrom
feat/skill-deps-expansion
Sep 29, 2026
Merged

kanfil merged 1 commit into
mainfrom
feat/skill-deps-expansion

Conversation

@kanfil

@kanfil kanfil commented Sep 29, 2026

Copy link
Copy Markdown
Member

Selective --skill X installs exactly X — borrowers referencing a canonical helper in another skill broke silently (no installer resolves closures and no skill home is install-guaranteed).

  • fetchSkillsDeps + expandSkillSelection (BFS, cycle-safe, fail-open) in events.mjs
  • cmdAdd + cmdUpdate --pull expand the selection and pass repeated --skill flags to npx; own command generation follows the expanded set
  • 10 new unit tests; README --skill docs
  • Companion manifest: tikalk/adlc-team-skills .skills-deps.json (PR #40)
$ npm test
# pass 306 / fail 0

npx/adlc-cli --skill X installs exactly X — borrowers referencing a
canonical helper in another skill broke silently under selective install
(no installer resolves closures, and no home is install-guaranteed).

- events.mjs: fetchSkillsDeps(source) (local/URL/shorthand/bare-dir,
  same source handling as fetchEventsManifest) + expandSkillSelection()
  (BFS transitive closure, cycle-safe, fail-open to the plain selection)
- commands/skills.mjs: cmdAdd + cmdUpdate --pull expand the filter and
  pass repeated --skill flags to npx (verified array-capable); own
  command-generation filter follows the expanded set
- Tests: 10 cases (fetch local/missing/malformed, direct/transitive/
  cyclic/unknown/missing/* /array selections)
- README: --skill flag documents closure expansion
@kanfil
kanfil merged commit 38961bf into main Sep 29, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant