Skip to content

fix: prioritize XDG-compliant ~/.config/agents/skills over ~/.agents/skills#12618

Open
scarf005 wants to merge 1 commit intoanomalyco:devfrom
scarf005:fix/12617/xdg-agents-skills-location
Open

fix: prioritize XDG-compliant ~/.config/agents/skills over ~/.agents/skills#12618
scarf005 wants to merge 1 commit intoanomalyco:devfrom
scarf005:fix/12617/xdg-agents-skills-location

Conversation

@scarf005
Copy link
Contributor

@scarf005 scarf005 commented Feb 7, 2026

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)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@scarf005 scarf005 force-pushed the fix/12617/xdg-agents-skills-location branch 2 times, most recently from 1568084 to e02e25f Compare February 10, 2026 08:57
@scarf005 scarf005 force-pushed the fix/12617/xdg-agents-skills-location branch 7 times, most recently from 608c146 to 1b41ef8 Compare February 13, 2026 09:34
…skills

- Change skill loading order to scan ~/.config/agents/skills first
- Keep ~/.agents/skills as legacy fallback for backward compatibility
- Update documentation to reflect XDG-compliant location as preferred
- Add tests for XDG location discovery and priority ordering

Fixes anomalyco#12617
@scarf005 scarf005 force-pushed the fix/12617/xdg-agents-skills-location branch from 1b41ef8 to b7b02bc Compare February 15, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

using ~/.agents/skills breaks the XDG location

1 participant

Comments