-
Notifications
You must be signed in to change notification settings - Fork 411
fix(skillkit): install OpenCode skills via native symlinks #947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
santoshkumarradha
merged 14 commits into
Agent-Field:main
from
mikemikimike:codex/813-opencode-skills
Aug 26, 2026
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ccfc552
fix(skillkit): install OpenCode skills via native symlinks
mikemikimike 4df906f
fix(skillkit): preserve OpenCode uninstall and status errors
mikemikimike db55977
fix(skillkit): report resolved OpenCode skill version
mikemikimike 538d141
test(skillkit): cover OpenCode target edge paths
mikemikimike 511ab35
fix(skillkit): report resolved OpenCode skill version
mikemikimike 4bbcf40
Merge branch 'main' into codex/813-opencode-skills
santoshkumarradha 88c462d
Merge branch 'main' into codex/813-opencode-skills
mikemikimike 3ac0692
test(skillkit): cover OpenCode target status paths
mikemikimike e08a3ec
fix(skillkit): preserve OpenCode version link status
mikemikimike cf40b60
test(skillkit): cover OpenCode target edge cases
mikemikimike af606e7
fix(skillkit): strip the legacy OpenCode AGENTS.md block on install
AbirAbbas b547f48
test(skillkit): isolate the OpenCode uninstall test and snapshot its …
AbirAbbas 3108d3c
refactor(skillkit): route the OpenCode legacy cleanup through the pac…
AbirAbbas a2762e1
fix(skillkit): keep a live OpenCode install recorded when the legacy …
AbirAbbas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| package skillkit | ||
|
|
||
| import ( | ||
| "os" | ||
| "path/filepath" | ||
| "testing" | ||
| ) | ||
|
|
||
| func TestOpenCodeTargetInstallsSkillSymlink(t *testing.T) { | ||
| home := withTempHome(t) | ||
| t.Setenv("USERPROFILE", home) | ||
| canonical := filepath.Join(home, ".agentfield", "skills", "agentfield", "current") | ||
| if err := os.MkdirAll(canonical, 0o755); err != nil { | ||
| t.Fatal(err) | ||
| } | ||
| target := opencodeTarget{} | ||
| installed, err := target.Install(Skill{Name: "agentfield", Version: "1.2.3"}, canonical) | ||
| if err != nil { | ||
| t.Fatal(err) | ||
| } | ||
| want := filepath.Join(home, ".config", "opencode", "skills", "agentfield") | ||
| if installed.Method != "symlink" || installed.Path != want { | ||
| t.Fatalf("installed target = %#v", installed) | ||
| } | ||
| got, err := os.Readlink(want) | ||
| if err != nil || got != canonical { | ||
| t.Fatalf("OpenCode link = %q, %v; want %q", got, err, canonical) | ||
| } | ||
| if err := target.Uninstall(); err != nil { | ||
| t.Fatal(err) | ||
| } | ||
| if _, err := os.Lstat(want); !os.IsNotExist(err) { | ||
| t.Fatalf("skill link still exists after uninstall: %v", err) | ||
| } | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.