feat(genomic): add SkillInstaller for fast skill installation via shallow clone#88
Merged
Conversation
…llow clone Adds a SkillInstaller class that copies skill directories from git repos using shallow clones with caching. Much faster than npx skills add because: - Clones with --depth 1 (shallow) - Caches source repos via CacheManager (subsequent installs are instant) - Copies skill directories directly (no npm download overhead) Exports SkillInstaller, SkillInstallOptions, SkillInstallResult, and SkillInstallFailure from genomic.
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
SkillInstallerclass to genomic that copies.agents/skills/<name>/directories from git repositories using shallow clones with caching — replacing the slownpx skills addpath.Why:
npx skills adddownloads theskillsnpm package on every run, then clones the entire source repo. Two network round-trips per skill.SkillInstallerdoes a single--depth 1clone (cached viaCacheManagerfor 7 days), then copies skill directories directly. Subsequent installs from the same source repo are instant.Reuses existing
GitCloner(shallow clone + URL normalization) andCacheManager(TTL-based expiration). Groups skills by source repo to avoid duplicate clones.New exports:
SkillInstaller,SkillInstallOptions,SkillInstallResult,SkillInstallFailure.Companion PR in constructive will wire this into
pgpm initas the default skill installer, with--use-skillsflag to opt into the slowernpxpath.Link to Devin session: https://app.devin.ai/sessions/8a70e4bc95b947faa41db21e02ed818e
Requested by: @pyramation