feat(skills): implement M10 advanced skills#96
Merged
Conversation
Add embedding-based skill matcher with cosine similarity for dynamic per-query skill selection, replacing static inject-all behavior. Implement filesystem watcher for hot-reload of SKILL.md files with 500ms debounce. Add skill priority system where earlier config paths take precedence. Track skill usage in SQLite with /skills command. Include three new bundled skills: git, docker, api-request. Closes #75, closes #76, closes #77
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #96 +/- ##
==========================================
- Coverage 77.06% 76.18% -0.88%
==========================================
Files 20 22 +2
Lines 3662 4078 +416
==========================================
+ Hits 2822 3107 +285
- Misses 840 971 +131
🚀 New features to boost your workflow:
|
Release M10 Advanced Skills as v0.5.0. Update CHANGELOG, README with embedding-based skill matching, hot-reload, usage tracking.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/skillscommand displays statisticsChanges
New files:
crates/zeph-skills/src/matcher.rs-- SkillMatcher, cosine similarity, EmbedFuture callback typecrates/zeph-skills/src/watcher.rs-- SkillWatcher with notify-debouncer-mini (500ms debounce)crates/zeph-memory/migrations/004_skill_usage.sql-- skill_usage tableskills/{git,docker,api-request}/SKILL.md-- bundled skillsModified:
agent.rs-- dynamic per-query skill selection, reload handling, /skills commandconfig.rs-- max_active_skills field + ZEPH_SKILLS_MAX_ACTIVE env overrideregistry.rs-- priority dedup (HashSet), reload(), into_skills()prompt.rs-- generic Borrow for both &[Skill] and &[&Skill]sqlite.rs-- record_skill_usage (UPSERT), load_skill_usagemain.rs-- matcher/watcher initialization, embed_fn closure wiringDependencies: notify 8, notify-debouncer-mini 0.7
Test plan
Closes #74, closes #75, closes #76, closes #77