feat(skills): migrate from skills.sh skills-lock.json#8
Merged
Conversation
Imports skills declared in a skills.sh `skills-lock.json` into `agnos.json#skills` + `agnos.lock.json`. Groups by repo, fetches each upstream once, discovers each named skill via SKILL.md, re-hashes locally, and suffixes name collisions. `agnos init` detects the file and prompts to migrate (skipped under -y).
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
agnos skill migrate [path]imports skills declared in askills.sh
skills-lock.json(default./skills-lock.json) intoagnos.json#skills+agnos.lock.json.discovers each named skill via
SKILL.md, re-hashes locally withhashSkillDir, and suffixes name collisions (foo-2,foo-3, …).warning rather than failing the whole migration.
agnos initnow detects a siblingskills-lock.jsonand offers tomigrate (defaults to yes). Under
-yit logs a hint and skips.Why
Users adopting agnos from skills.sh need a one-shot path to convert their
existing lockfile without hand-editing
agnos.json+agnos.lock.jsonand re-fetching each skill.
The upstream
skills-lock.jsonstores only{ source, sourceType, computedHash }per name — no in-repo path — so the migration has to fetcheach repo to discover where each named skill actually lives.
Behavior
./skills-lock.json(or positional override).agnos.json#skills(composite refs likegithub:owner/repo/in-repo/path) andagnos.lock.json(fresh localhashes); materializes each skill under
.agnos/skills/<name>/.--dry-run: logs intent, writes nothing, makes no network calls.--no-install: skips per-agent dispatch (agnos inituses thisinternally and lets the trailing
reinstatepass handle materialization).