Skip to content

[BUG]: ~/.agents/skills/ path not resolved on Windows #17007

Closed as not planned
Closed as not planned

Description

@attkri

Description

On Windows, OpenCode does not discover skills placed in ~/.agents/skills/<name>/SKILL.md.

According to the skills documentation, the following global paths should be searched:

  • ~/.config/opencode/skills/<name>/SKILL.md ✅ works
  • ~/.claude/skills/<name>/SKILL.md (not tested)
  • ~/.agents/skills/<name>/SKILL.md ❌ not working on Windows

Steps to Reproduce

  1. Windows 11, OpenCode on win32
  2. Create C:\Users\<user>\.agents\skills\find-skills\SKILL.md with valid frontmatter
  3. Start OpenCode
  4. Check available skills via the skill tool

Expected: find-skills appears in the skill list

Actual: find-skills does not appear

Workaround

Copying the same SKILL.md to C:\Users\<user>\.config\opencode\skills\find-skills\SKILL.md makes the skill discoverable immediately after restarting OpenCode.

Environment

  • Platform: Windows (win32)
  • Skills in ~/.config/opencode/skills/ work correctly
  • Skills in ~/.agents/skills/ are silently ignored

Hypothesis

The ~ path expansion for ~/.agents/ may not be resolved correctly on Windows, or the path is only implemented for POSIX systems.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 11, 2026
  2. github-actions commented on Mar 11, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is distinct (specifically the Windows ~ expansion for ~/.agents/), please note that in the existing issues or confirm it's already tracked there.

  3. devcxl commented on Apr 30, 2026

    @devcxl

    ProjectDir/.agents/skills/<name>/SKILL.md not working on Linux

  4. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions