Skip to content

feat(skills): recursive discovery + knowledge category (Phase B) - #18

Merged
dcvz merged 4 commits into
mainfrom
feat/knowledge-discovery
Jun 6, 2026
Merged

feat(skills): recursive discovery + knowledge category (Phase B)#18
dcvz merged 4 commits into
mainfrom
feat/knowledge-discovery

Conversation

@dcvz

@dcvz dcvz commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • discover_skills is now recursive — finds SKILL.md at any depth (so knowledge docs under knowledge/<topic>/ are picked up), skipping node_modules/.git/docs/hidden dirs. A dir with a SKILL.md is a leaf (not descended into). An unreadable subdir is skipped rather than aborting all discovery.
  • format_skills_xml adds knowledge to the fixed category order, so knowledge entries group after the skill categories in the prompt.
  • This is the cica half of Phase B (the knowledge corpus / "the World"). The corpus content lives in the ai-skills repo under knowledge/ and rides the existing sync to workers.

Test Plan

  • cargo test --bin cica skills — 14 pass (incl. nested discovery + vendor-dir exclusion + category-ordering)
  • cargo clippy --all-targets -- -D warnings — 0
  • cargo fmt --check — clean
  • Backward-compat: existing top-level skills still discovered
  • After release + router sync: nested knowledge/ entries appear grouped under knowledge; agent reads data-model/glossary when answering data/domain questions

Note: nested knowledge/ entries are only discovered once this recursive-discovery change is released (deployed cica 0.9.2 scans top-level only). Top-level skills keep working throughout.

🤖 Generated with Claude Code

dcvz and others added 4 commits June 6, 2026 23:13
…ir; doc/test polish

- Fix 1: move node_modules/pkg fixture to root level so is_excluded_dir
  actually runs; add a hidden-dir case (.hidden-wip) for extra coverage
- Fix 2: skip unreadable dirs (let Ok(entries) = read_dir) instead of
  propagating the error and aborting all skill discovery
- Fix 3: update doc comment on format_skills_xml and inline category
  comment to include knowledge in the fixed order; extend is_excluded_dir
  doc with the user-visible tradeoff note
- Fix 4: add workflow skill to T6 ordering test and assert wf < know

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dcvz
dcvz merged commit a6dae02 into main Jun 6, 2026
7 checks passed
@dcvz
dcvz deleted the feat/knowledge-discovery branch June 6, 2026 22:01
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.

1 participant