Skip to content

Support nested skill discovery in skills directories - #1801

Open
YrFnS wants to merge 1 commit into
CodebuffAI:mainfrom
YrFnS:feat/nested-skills-discovery
Open

YrFnS wants to merge 1 commit into
CodebuffAI:mainfrom
YrFnS:feat/nested-skills-discovery

Conversation

@YrFnS

@YrFnS YrFnS commented Dec 4, 2026

Copy link
Copy Markdown

Fixes #1784.

Skills can now be organized in category/organizational subdirectories under a skills root. Discovery walks the tree (bounded depth) and treats any directory containing a SKILL.md as a skill; the skill's identity comes from the directory that contains SKILL.md, not its parent category folders (which are purely organizational). Category folders need not match the skill-name regex.

  • sdk/src/skills/load-skills.ts: recursive discovery with bounded depth, skipping hidden/heavy dirs; skill dirs are not descended into.
  • packages/agent-runtime/src/tools/handlers/tool/skill.ts: mid-session disk lookup now searches nested category folders too.

Tests: existing load-skills and skill handler tests pass (pre-existing platform failures unchanged).

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nested skills discovery

1 participant