Commit 4b0b63b
authored
Skill engine: weighted scoring with negative patterns and context guards (#12)
* Skill engine: weighted scoring, negative patterns, context guards, max 3 cap
Replace binary keyword matching with confidence-scored suggestions.
Phrases carry weights (0.0-1.0), negative patterns suppress false
positives, and context guards require confirming words for low-confidence
matches. Results ranked by score and capped at 3 per prompt.
* Fix CodeRabbit review: lowercase negative pattern, add missing docstring
- "DockerClient" → "dockerclient" in docker skill's negative list
(mixed-case never matched against lowered input)
- Add docstring to main() to meet 80% coverage threshold
---------
Co-authored-by: AnExiledDev <AnExiledDev@users.noreply.github.com>1 parent 03a1dcf commit 4b0b63b
File tree
3 files changed
+484
-293
lines changed- .devcontainer
- plugins/devs-marketplace/plugins/skill-engine
- scripts
3 files changed
+484
-293
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
130 | | - | |
| 136 | + | |
131 | 137 | | |
132 | 138 | | |
133 | 139 | | |
| |||
0 commit comments