skill-orchestrator
v3.8.0
Published
Dynamic Project Skill Orchestrator for AI Agents - 0 Base Token Optimization (v3.8.0 Twin Registry & Domain Routing Edition)
Maintainers
Readme
Skill Orchestrator (v3.8.0)
Dynamic Project Skill Orchestrator for AI Coding Agents - 0 Base Token Optimization & Multi-Source Ecosystem Engine.
🔥 Pain Points & Core Capabilities
In traditional setups, all AI Agent Skills are preloaded upfront into every conversation, leading to massive context waste and fragmented private assets. skill-orchestrator resolves this by maintaining a unified shared cold archive vault and code-level dynamic skill inference:
| Pain Point | Traditional Mode (All Preloaded) | Skill Orchestrator (v3.8.0 Architecture) | Key Capability |
| :--- | :--- | :--- | :--- |
| Base Token Overhead | ~9,757 Tokens (Uses ~50% context budget) | ~0 - 500 Tokens (Reduced by 95%+) | 0 Base Token Release: Minimal hot base isolated from private cold vault |
| Twin Human-Machine Panel | Scattered config files hard to inspect visually | so_skills_registry Twin Files | Twin Symmetric System: Markdown human UI panel & JSON machine engine |
| Private Skill Fragmentation| Isolated & duplicated across agent/IDE folders | Unified Shared Cold Vault (~/.agents/skills_archive/) | Unified Cross-IDE Assets: 0ms shared across Antigravity/Trae/Claude |
| Skill Lifecycle & Scope | Global pollution, chaotic project loading | Priority-Based Dynamic Loading (Project > Cold Vault > Cloud) | Project-Local Encapsulation: Skills cleanly scoped in ./.agents/skills/ |
| Skill Inference Dimensions| Relies on verbal user description & LLM guesses | 5-Dimension Code Inference (Scans package.json/extensions/intent) | Zero-Friction Inference: Auto-scans config files & .glsl/.swift extensions |
| Short Aliases & Directives | Relies on memorizing long CLI commands | so and so-xxx Quick Directives | Frictionless Control: so-status, so-infer, so-sync, so-cleanup |
🚀 Quick Start & Usage
1. Install via Official NPM Registry
npx skills add skill-orchestrator2. Install via GitHub Repository
npx skills add amasun/skill-orchestratorShort Aliases & Directives (so & so-xxx)
# 1. Inspect Token budget diagnostics & twin registry health card
so-status # or npx skill-orchestrator status
# 2. Multi-source dependency inference (Zero-friction code & skill match)
so-infer # or npx skill-orchestrator infer
# 3. Auto-sync cold vault, generate domain-categorized Markdown panel & JSON DB
so-sync # or npx skill-orchestrator sync
# 4. Skill merge & deduplication engine (Consolidate duplicates to slash base tokens)
so-merge # or npx skill-orchestrator merge
# 5. Project milestone cleanup (Return temporary skills to 0-Token cold vault)
so-cleanup # or npx skill-orchestrator cleanup
# 6. Offboard eject (Restore all skills to original IDE paths & uninstall safely)
so-eject # or npx skill-orchestrator eject🌐 5-Registry Cascade Resolution
When a requested skill is not found in the local cold vault, the resolution engine automatically initiates a 5-tier registry cascade lookup:
| Registry / Source | Maintainer / Provider | Key Specialization Domain | Automatic Resolution Logic |
| :--- | :--- | :--- | :--- |
| 1. Vercel (vercel-labs) | Vercel & Open Source | Web Frontend, Next.js, UI/UX Guidelines | npx skills add <name> |
| 2. Upskill (upskill.dev) | Security Teams | Malicious Code Defense, Security Audits | npx upskill add <name> |
| 3. Giants (Stripe/Cloudflare)| Tech Giants | Official APIs, Serverless, Edge Databases | npx skills add owner/repo |
| 4. Gitee / CDN Mirrors | Gitee / jsDelivr | Fast Regional Access (Ping < 30ms) | npx skills add vercel-labs/skills/<name> |
| 5. Private GitHub Org | Your Enterprise Team | Internal Private Architecture & Business Moats | npx skills add your-org/repo |
🏗️ Architecture & Diagrams
1. 3-Tier Hybrid Architecture
flowchart TD
classDef hotStyle fill:#e1f5fe,stroke:#0288d1,stroke-width:2px;
classDef coldStyle fill:#e8f5e9,stroke:#388e3c,stroke-width:2px;
classDef cloudStyle fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px;
classDef phaseStyle fill:#fff3e0,stroke:#f57c00,stroke-width:2px;
subgraph STORAGE["3-Tier Storage & Skill Sources"]
direction TB
HotCore["1. Hot Core Base Storage<br>config/skills/<br>2-3 Universal Base Skills Only<br>(Tokens Overhead ≤ 500)"]:::hotStyle
ColdArchive["2. Unified Shared Private Cold Vault<br>~/.agents/skills_archive/<br>Cross-IDE Shared Custom Skills<br>(Tokens Overhead = 0)"]:::coldStyle
VercelCloud["3. Vercel Cloud Registry<br>vercel-labs/skills API<br>Massive Open-Source Skill Library<br>(Tokens Overhead = 0)"]:::cloudStyle
end
subgraph LIFECYCLE["Project Lifecycle Workflow"]
direction TB
P1["Phase 1: Product Requirements<br>・0 Project-level skills<br>・Fast discussion on docs & architecture<br>・0 Extra Token Overhead"]:::phaseStyle
P2["Phase 2: Cascade Resolution & Inference<br>・Auto-Infer: Scans configs & extensions<br>・1st Priority: Shared Cold Vault<br>・2nd Priority: Vercel Cloud Registry<br>・Outputs source origins & Token health card"]:::phaseStyle
P3["Phase 3: Development & Incremental Addition<br>・Project-scoped skills loaded<br>・Mid-project additions handled incrementally<br>・Frequent deletions prohibited to prevent waste"]:::phaseStyle
P4["Phase 4: Milestone Cleanup<br>・Project milestone completion<br>・Wipes project .agents/skills/<br>・Restores clean 0-token state"]:::phaseStyle
P1 --> P2 --> P3 --> P4
end
ColdArchive -.->|Priority 1: Cold Vault Match| P2
VercelCloud -.->|Priority 2: Cloud Fallback Pull| P22. Manual Skill Auto-Sync Flow
flowchart TD
UserAction["User manually runs:<br>npx skills add <name>"] --> PublicFolder["Placed in public directory:<br>config/skills/"]
PublicFolder --> Trigger["AI starts new chat OR runs so-sync"]
Trigger --> Detect["runSync() detects diff:<br>Finds newly added non-base skill"]
Detect --> Migrate["Auto-migrates to cold vault:<br>Move skill to ~/.agents/skills_archive/"]
Migrate --> Result["Global base tokens instantly reset to minimal (≤ 500 Tokens)!"]📊 Telemetry Report Protocol
Use so-status to display the Token diagnostics card:
------------------------------------------------------------
[Project Skills & Token Telemetry]
------------------------------------------------------------
Global Base Overhead : ~420 Tokens [Status: Healthy 🟢]
Project-Scoped Skills:
├── 3d-web-experience : 450 Tokens (Origin: Cold Archive | Infer: package.json)
├── web-shader-extractor: 380 Tokens (Origin: Code Feature [.glsl])
├── upskill/sec-header : 460 Tokens (Origin: Upskill Registry | Infer: Security Audit)
├── stripe/agent-skills : 510 Tokens (Origin: GitHub Org | Infer: Dependency Match)
└── svelte-kit : 470 Tokens (Origin: Vercel Registry | Infer: User Intent)
------------------------------------------------------------
Total Project Token Overhead : 2,690 Tokens (Save 72.4% vs Preload All)
Prompt Cache Anchor : Injected (4x Speedup)
============================================================🛠️ Node.js Environment Self-Healing
If Node.js is missing on the user system, the AI Agent silently installs it in the background:
# Windows (Uses native winget for silent background installation with 0 popups)
winget install OpenJS.NodeJS.LTS --silent --accept-source-agreements --accept-package-agreements
# macOS (Uses Homebrew for silent installation)
brew install node
# Linux (Debian/Ubuntu silent installation)
sudo apt-get update -y && sudo apt-get install -y nodejs npm❓ User Usage FAQ (Q&A)
Q1: Do I need to manually run CLI commands during normal coding?
A: No! Simply chat with your AI agent as usual (e.g., "Build a 3D portfolio" or "Refactor this code"). The AI automatically infers, matches, and hot-loads skills on-demand without manual CLI commands.
Q2: How can I invoke a specific skill from the cold vault by name?
A: Simply mention the skill name in your prompt (e.g., apple-design or 3d-web-experience). The AI agent silently hot-loads the skill into the project in 0ms with zero manual file copying.
Q3: Does the shared cold vault support cross-IDE reuse (Antigravity, Trae, Claude, Cursor)?
A: Yes! The shared cold vault lives at ~/.agents/skills_archive/. Skills archived in Antigravity are 0ms shared across Trae, Claude Code, Cursor, Windsurf, etc.
Q4: Why don't some skills show up in the IDE $ autocomplete dropdown menu?
A: Base Meta-Skills fully support $ autocomplete. Cold Archive Skills are kept in 0-Token cold storage (to save budget); mentioning their name directly in chat instantly triggers 0ms hot loading.
Q5: What code features can Skill Orchestrator automatically detect beyond package.json?
A: Detects 5 dimensions: 1. Dependency config files (package.json, requirements.txt, Cargo.toml); 2. Code file extensions (.glsl, .swift, .sqlx); 3. Dialogue intent; 4. Explicit slash directives; 5. Historic project skill manifests.
Q6: How do I check active skills and Token overhead for my current project?
A: Send so-status (or /so-status / ask the AI "Check token overhead"). The orchestrator returns a transparent Token Telemetry card.
Q7: If I clean project skills (so-cleanup), how do I recover used skills when re-opening a project?
A: Used skills are persisted in package.json. Re-opening a project and sending so-infer automatically reads the manifest and restores skills from the cold vault in 0ms!
Q8: Will cloud skills pulled from Vercel/GitHub pollute my private cold vault?
A: Never! Cloud skills are treated as temporary project dependencies. Running so-cleanup wipes them with project teardown, keeping your private cold vault 100% clean.
Q9: How can I manually disable or enable specific skills?
A: Open so_skills_registry.md and check [x] or uncheck [ ] next to any skill. Save the file to apply immediately.
Q10: If I manually install a new skill with npx skills add, will it be auto-archived?
A: Yes! Send so-sync (or /so-sync). The orchestrator automatically detects the new skill, moves it to the cold archive, and categorizes it in the Markdown panel.
Q11: How can I safely uninstall and restore all skills to original IDE paths?
A: Send so-eject (or /so-eject). The system restores 100% of archived skills back to their original IDE folders with 0 data loss and uninstalls safely.
⚙️ User-Customized Base Skills Whitelist (~/.agents/base_skills.json)
The orchestrator maintains a whitelist configuration at ~/.agents/base_skills.json to keep essential universal meta-skills preloaded:
{
"version": "2.1.0",
"core_base_skills": [
"agentic-workflow",
"find-skills",
"z-coding-refactoring",
"skill-orchestrator"
]
}