Skip to content

Load skills from ~/.agents/skills and ./.agents/skills #413

Closed

Description

@ravshansbox

Summary

The skill loader (crates/jcode-base/src/skill.rs, load_for_working_dir) should also discover skills from the emerging .agents convention:

  • Global: ~/.agents/skills/<name>/SKILL.md
  • Project-local: ./.agents/skills/<name>/SKILL.md

Current behavior

Skills are loaded from:

Global:

  • ~/.jcode/skills/<name>/SKILL.md

Project-local (relative to working dir):

  • ./.jcode/skills/<name>/SKILL.md
  • ./.claude/skills/<name>/SKILL.md (compatibility fallback)

First-run import (one-time, only if ~/.jcode/skills/ does not exist) copies from ~/.claude/skills/ and ~/.codex/skills/.

There is no support for ~/.agents / ./.agents.

Proposed change

  • Add ~/.agents/skills/ to the global load path in load_for_working_dir.
  • Add ./.agents/skills/ to load_project_local_dirs (alongside .jcode and .claude).
  • Consider whether ~/.agents/skills/ should also be part of the first-run import sources.

Pointers

  • crates/jcode-base/src/skill.rs
    • load_for_working_dir (global ~/.jcode/skills)
    • load_project_local_dirs / project_local_dir (project-local .jcode, .claude)
    • import_from_external (first-run import sources)

Notes

The .agents/skills layout is shared by other agent tooling, so supporting it improves cross-tool skill portability.

Activity

  1. added
    enhancement
    priority: low
    triage: reproducible
    autonomous: likely
    on Jun 29, 2026
  2. 1jehuang commented on Jun 29, 2026

    @1jehuang
    Owner

    Triage: reproducible, autonomous: likely. Added the shared .agents convention to the skill loader: ~/.agents/skills/ (global) and ./.agents/skills/ (project-local), in both load and reload paths, alongside .jcode/.claude. Fix in #417.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    autonomous: likelyenhancementpriority: lowtriage: reproducible

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions