Repository navigation
Conversation
|
Good instinct and the core logic (bounded-depth recursive walk, skip hidden/heavy dirs, identity from the SKILL.md-containing dir) is sound and matches the issue's intent. A few things to tighten before this is port-ready:
Not close-worthy, the direction is right, but needs tests and the collision-handling question answered before a maintainer should port it. |
…dd tests Share the nesting depth and skipped-folder rules in common so session-start discovery and the mid-session lookup agree. Keep the first of two same-named skills in sorted order (both paths) and warn about the duplicate when verbose. Document the lookup's cost, and add tests for nesting, collisions, the depth limit and skipped folders.
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.mdas a skill; the skill's identity comes from the directory that containsSKILL.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).