Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 💎 SkillPrism
# 💎 SkillPrism

> **Progressive Skill Disclosure & Context Compaction Engine for Autonomous AI Coding Agents**
> *Preloading hundreds of enterprise tool schemas dilutes model attention and inflates token costs. SkillPrism indexes skills out-of-context and injects only what the model needs, right when it needs it.*
Expand All @@ -12,6 +12,19 @@
[![Secured by AgentShield](https://img.shields.io/badge/Secured%20by-AgentShield%20Zero--Leak-8b5cf6?logo=shield&logoColor=white&style=flat-square)](https://ritualdev.in/agentshield)
[![Glama MCP](https://img.shields.io/badge/Glama-MCP_Server-8b5cf6?style=flat-square)](https://glama.ai/mcp/servers/@RitualDev-Lab/skillprism)

```bash
# 1-command try: benchmark 97.3% upfront prompt bloat reduction & launch MCP stdio proxy
npx -y @ritualdev-lab/skillprism benchmark
```

```mermaid
flowchart LR
A["LLM Agent (Claude / Cursor)"] -->|"~326 tokens (search + load + inspect stubs)"| B["SkillPrism MCP Proxy"]
B -->|"< 0.3 ms BM25 + Vector Search"| C[("Out-of-Context SQLite / Redis Index")]
B -->|"JIT Ephemeral Tool Schema"| A
B -->|"Compact Receipt (> 512B)"| D["Upstream MCP Tools"]
```

---

## ⚡ The Problem: Context Bloat & Attention Dilution
Expand Down Expand Up @@ -44,6 +57,22 @@ Traditional agent frameworks dump the complete JSON Schema specifications of all
### What is the Team Redis VPC Cluster?
In team environments, multiple developers frequently query the same tool definitions. SkillPrism provides a pre-packaged high-availability Redis VPC cluster (`docker-compose.redis-vpc.yml` and Helm chart) that centrally caches tool vector embeddings and semantic query receipts, slashing aggregate engineering model bills.

### How do I connect SkillPrism to Claude Code or Cursor without rewriting my MCP servers?
Run `claude mcp add skillprism -- npx -y @ritualdev-lab/skillprism proxy --stdio` (or add the same stdio command to `~/.cursor/mcp.json`). SkillPrism imports upstream `tools/list` definitions automatically and serves JIT discovery stubs transparently.

---

## Why SkillPrism vs Monolithic Schema Preloading & Vector-Only RAG?

| Metric / Capability | SkillPrism (`@ritualdev-lab/skillprism`) | Monolithic MCP Schema Preloading | Vector-Only Tool RAG |
| :--- | :---: | :---: | :---: |
| **Zero-State System Prompt Footprint** | **~326 tokens (3 JIT meta-tools)** | ~11,989+ tokens (100 tools) | Variable / uncompacted payloads |
| **Upfront Token Savings (Verified BPE)** | **97.3% (`skillprism benchmark`)** | 0% baseline | ~60–75% upfront only |
| **5-Turn Trajectory Token Savings** | **79.5% (`4.88x` headroom)** | 0% (resends every turn) | Re-injects raw tool outputs |
| **Lookup Speed** | **< 0.3 ms (BM25 + dense hybrid)** | N/A | 15–80 ms embedding RPC latency |
| **Heavy Response Payload Compaction** | ✅ **91.0% savings (`> 512` bytes)** | ❌ Dumps raw JSON blobs | ❌ Uncompacted |
| **Exact JSON Schema Integrity** | ✅ Preserves `enum`, `$defs`, `oneOf` | ✅ Full | ⚠️ Often truncated |

---

## 🚀 Quickstart
Expand Down
Loading