[PR #12618] fix: prioritize XDG-compliant ~/.config/agents/skills over ~/.agents/skills #14298

Open
opened 2026-02-16 18:19:06 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12618

State: open
Merged: No


Summary

continuation of #11842
Fixes #12617 by prioritizing the XDG-compliant location ~/.config/agents/skills for global agent skills, while keeping ~/.agents/skills as a legacy fallback for backward compatibility.

Changes

  • Updated skill loading order to scan ~/.config/agents/skills first, then ~/.agents/skills as fallback
  • Updated documentation in skills.mdx to reflect the preferred XDG-compliant location
  • Added tests for XDG location discovery and priority ordering

Testing

  • Typecheck passes successfully
  • Added unit tests for the new priority behavior
  • Existing tests may have pre-existing git configuration issues (not introduced by this PR)
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12618 **State:** open **Merged:** No --- ## Summary continuation of #11842 Fixes #12617 by prioritizing the XDG-compliant location `~/.config/agents/skills` for global agent skills, while keeping `~/.agents/skills` as a legacy fallback for backward compatibility. ## Changes - Updated skill loading order to scan `~/.config/agents/skills` first, then `~/.agents/skills` as fallback - Updated documentation in `skills.mdx` to reflect the preferred XDG-compliant location - Added tests for XDG location discovery and priority ordering ## Testing - Typecheck passes successfully - Added unit tests for the new priority behavior - Existing tests may have pre-existing git configuration issues (not introduced by this PR)
yindo added the pull-request label 2026-02-16 18:19:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14298