@jcorpac/skill-vault 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,9 +28,10 @@ Loading 50–250+ specialized skills into active AI prompts causes:
28
28
  └──────────────┬────────────────────────────────────────┬─────────────────┘
29
29
  │ │
30
30
  [1. Background Lifecycle Hooks] [2. Mid-Turn Read-Only MCP]
31
- • SessionStart (silent sync & index) • search_skills(query)
32
- • PreInvocation / UserPromptSubmit • load_skill(name, file?)
33
- └─► Pre-built BM25 + Multi-Signal Router (~50–90ms, no approvals)
31
+ • SessionStart (silent sync & index) • list_skills(category?)
32
+ • PreInvocation / UserPromptSubmit • search_skills(query)
33
+ └─► Pre-built BM25 + Multi-Signal • load_skill(name, file?)
34
+ Router (~50–90ms, no approvals)
34
35
  ├─ Unrelated prompt ──► Injects 0 tokens
35
36
  ├─ High confidence ──► Inlines top 1–2 SKILL.md (<=12 KB cap)
36
37
  └─ Broad / medium ──► Emits 1-line compact pointers
@@ -88,7 +89,7 @@ python scripts/skill_vault.py verify --fix
88
89
  | `skill-vault import <name>` | Copy vaulted skills into a project's `.agents/skills` or `skills/` directory. |
89
90
  | `skill-vault optimize` | Prune/mount active skills using workspace file fingerprints. |
90
91
  | `skill-vault config` | Inspect or customize core skills, fingerprints, category rules, and `--set-routing` thresholds. |
91
- | `skill-vault reindex` / `verify` | Rebuild `INDEX.md` + `search_index.json` and audit archive integrity. |
92
+ | `skill-vault reindex` / `verify` | Rebuild `INDEX.md` + `search_index.json` and audit archive integrity or L2 compatibility (`--compat --fix`, including runtime-in-place protection). |
92
93
  | `skill-vault uninstall` | Safely restore all archived skills to L1 and remove Skill Vault wiring & files (`eject` alias). |
93
94
 
94
95
  ---
@@ -96,7 +97,7 @@ python scripts/skill_vault.py verify --fix
96
97
  ## 🎯 Key Design Principles
97
98
 
98
99
  1. **Zero Context Bloat by Default**: Generic prompts (`"Refactor this function"`, `"Write a git commit message"`) inject **0 tokens**. Same-turn tool-call loops short-circuit automatically, and already-injected skills never re-inject in the same conversation.
99
- 2. **Zero-Approval Background Execution**: Hooks run natively in the agent lifecycle before the model is called; mid-turn fallback uses a 2-tool read-only MCP server (`search_skills`, `load_skill`) with strict directory-containment guards.
100
+ 2. **Zero-Approval Background Execution**: Hooks run natively in the agent lifecycle before the model is called; mid-turn fallback uses a 3-tool read-only MCP server (`list_skills`, `search_skills`, `load_skill`) with strict directory-containment guards.
100
101
  3. **`SKILL.md` Purity**: `SKILL.md` files are never modified during indexing or categorization.
101
102
  4. **Hook-Dependency Safety**: `sync`, `optimize`, and `archive` inspect sibling `hooks.json` and `mcp_config.json` files so plugin-referenced skill scripts are never accidentally pruned.
102
103
  5. **Zero Runtime Dependencies**: Pure Python 3.10+ standard library across Windows, macOS, and Linux.
package/SKILL.md CHANGED
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: skill-vault
3
- version: 2.0.0
3
+ version: 2.1.0
4
4
  description: >-
5
5
  Universal agent-agnostic skill router and tiered storage manager.
6
6
  Background hooks automatically inject relevant vaulted skills on demand;
7
- use MCP tools search_skills/load_skill for mid-turn lookups.
7
+ use MCP tools list_skills/search_skills/load_skill for mid-turn lookups.
8
8
  ---
9
9
 
10
10
  # Skill Vault: Automatic Skill Router & Cold-Storage Manager
@@ -12,12 +12,13 @@ description: >-
12
12
  **Skill Vault** keeps active L1 context minimal (core skills only) while preserving instant, zero-approval access to all vaulted L2 domain skills:
13
13
 
14
14
  1. **Background Lifecycle Hooks (Primary Path)**:
15
- - `SessionStart` incrementally syncs newly installed/updated plugin skills, refreshes `search_index.json`, and warms workspace stack fingerprints.
16
- - `PreInvocation` / `UserPromptSubmit` / `BeforeAgent` scores the user prompt via a pre-built BM25 + multi-signal index (`<100ms`), injects top high-confidence skills or compact pointers directly from L2, and injects **0 tokens** on unrelated turns.
15
+ - `SessionStart` incrementally syncs newly installed/updated plugin skills, refreshes `search_index.json`, and caches workspace fingerprints.
16
+ - `PreInvocation` / `UserPromptSubmit` / `BeforeAgent` scores prompts via BM25 (<100ms), injects top skills/pointers from L2, and adds **0 tokens** on unrelated turns.
17
17
  2. **Read-Only MCP Fallback (Mid-Turn Discovery)**:
18
18
  - If a task pivots mid-turn to a specialized domain not present in context, call the `skill-vault` MCP tools:
19
- - `search_skills(query, category?, limit?)` — Search vaulted L2 skills by keyword, intent, or list categories.
20
- - `load_skill(name, file?)` — Read a vaulted skill's `SKILL.md` or any companion file (`references/`, `scripts/`, `examples/`).
19
+ - `list_skills(category?, include_descriptions?)` — List all vaulted L2 skill names grouped by category in one call.
20
+ - `search_skills(query, category?, limit?, offset?)` — Search vaulted L2 skills by keyword, intent, or list categories.
21
+ - `load_skill(name, file?, section?, start_line?)` — Read a skill's `SKILL.md` (full, section, or lines) or companion file.
21
22
  - Never mutate L1 active directories or run shell commands solely to browse archived skills when MCP tools are available.
22
23
 
23
24
  ---
@@ -37,13 +38,13 @@ skill-vault search "<query>" [--category "<Category>"] [--limit 10]
37
38
  # Inspect background routing telemetry (0-token turn rate, latency, top skills)
38
39
  skill-vault stats [--limit 100]
39
40
 
40
- # Scan plugins/active directories, ingest updates, and prune non-core skills (respects hook dependencies)
41
+ # Scan plugins/active dirs, ingest updates, and prune non-core skills
41
42
  skill-vault sync [--dry-run] [--keep-active]
42
43
 
43
44
  # Re-classify 'General & Utility Skills' using built-in + custom rules
44
45
  skill-vault recategorize --auto [--dry-run]
45
46
 
46
- # Consolidate hyphen/underscore duplicate skills in L2 (keeps newest version)
47
+ # Consolidate duplicate skills in L2 (keeps newest version)
47
48
  skill-vault dedupe [--dry-run]
48
49
 
49
50
  # Inspect or tune routing thresholds & core skills
@@ -55,6 +56,6 @@ skill-vault config --set-routing show_ui_notice true
55
56
  skill-vault archive <name> --category "<Category>"
56
57
  skill-vault restore <name>
57
58
  skill-vault import <name> --dest "./.agents/skills"
58
- skill-vault verify --fix
59
+ skill-vault verify [--compat] [--fix]
59
60
  skill-vault uninstall [--dry-run]
60
61
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcorpac/skill-vault",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Automatic Background Skill Router, Lifecycle Manager & Tiered Storage Engine for AI Coding Agents.",
5
5
  "main": "bin/cli.js",
6
6
  "bin": {
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "skill-vault",
3
3
  "displayName": "Skill Vault",
4
- "version": "2.0.0",
4
+ "version": "2.1.0",
5
5
  "description": "Automatic background skill router, cold-storage archive, and read-only JIT MCP server for AI coding agents.",
6
6
  "author": "jcorpac",
7
7
  "homepage": "https://github.com/jcorpac/skill-vault#readme",