SkillVec: Extracting Composable LLM Agent Skills via Weight-Space Editing

SkillVec (arXiv:2612.02295) extracts composable skill vectors directly from independently trained LoRA adapters through weight-space editing. By exploiting LoRA’s asymmetric B*A update structure to suppress sensitivity to common input directions and preserve consistent output directions, SkillVec composes skills via plain vector addition—scoring 70.5% (+9.2 pts over merging baselines) while retaining ~96% base capability.
SkillVec: Extracting Composable LLM Agent Skills via Weight-Space Editing: SkillVec (arXiv:2612.02295) extracts composable skill vectors directly from independently trained LoRA adapters through weight-space editing. By exploiting LoRA’s asymmetric B*A update structure to suppress sensitivity to common input directions and preserve consistent output directions, SkillVec composes skills via plain vector addition—scoring 70.5% (+9.2 pts over merging baselines) while retaining ~96% base capability. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Zero-Training Skill Composition: Independently extracted skill vectors combine via simple addition without joint multitask retraining or adapter coordination.
- 70.5% Multi-Skill Composition Score: Outperforms the strongest evaluated model-merging baseline by +9.2 points across six skills and six open-weight LLMs.
- 96% Base Knowledge Retention: Prevents catastrophic forgetting on general reasoning benchmarks when stacking specialized domain LoRAs.
- Cross-Skill Joint Cooperation: Composes orthogonal adapters (such as telecom tool-use + target-language fluency) to beat both merging baselines and joint multitask training.
import { createAgent } from '@smoke-monkey/harness';// Route specialized task domains to a dynamically composed SkillVec LoRA adapter served via vLLMconst agent = createAgent({agentId: 'skillvec-multiskill-operator',provider: 'openai-compatible',baseUrl: 'http://127.0.0.1:8000/v1',model: 'skillvec-telecom-es', // Composed via addition of SkillVec(telecom) + SkillVec(spanish)workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'ask',run_command: 'ask',},});async function main() {const result = await agent.run('Diagnose subscriber SIM provisioning failure via MCP telecom API and draft customer resolution in Spanish.');console.log('SkillVec Composed Execution:', result.summary);}main().catch(console.error);
Watch: Related Video Guides
#319 LoRA on the Go: Instance-level Dynamic LoRA Selection and Merging
LoRA & QLoRA Fine-tuning Explained In-Depth
What Is SkillVec and Why Do Naive LoRA Merges Suffer Negative Interference?
SkillVec (arXiv:2612.02295) solves a fundamental bottleneck in modular agent specialization: when teams train separate LoRA adapters for distinct skills (e.g., SQL tool calling, telecom diagnostics, or Japanese fluency), naively summing their weights triggers destructive interference that degrades both task accuracy and general reasoning.
SkillVec exploits the asymmetric structure of LoRA updates (DeltaW = B * A) to extract each skill independently: it removes sensitivity to shared high-variance input directions (nulling interference in A) and, when multiple training seeds exist, retains output directions in B learned consistently across runs. The resulting skill vectors compose cleanly via plain addition across six open-weight base LLMs:
| Composition Method | 6-Skill Composition Avg | Delta vs Merging Baseline | General Knowledge Retention |
|---|---|---|---|
| SkillVec (Weight-Space Editing) | 70.5% | +9.2 points | ~96% of base LLM |
| Strongest Merging Baseline | 61.3% | Baseline | Lower (interference drift) |
| Joint Multitask Training (Telecom + Lang) | Below SkillVec joint success | Requires full data pooling | Expensive retraining per skill |
Extracting and Serving Composed LoRA Adapters in Production Pipelines
Because SkillVec outputs standard low-rank weight deltas compatible with peft and Hugging Face Safetensors, once you compose a target combination (for example telecom_tools + multilingual_es), you can serve the resulting adapter dynamically behind vLLM's multi-LoRA router with zero extra inference latency.
Verify base-model compatibility, project out shared activation subspaces, and register the composed adapter cleanly:
# 1. Inspect adapter rank and module targets across independent LoRA checkpoints
python3 - <<'PY'
import json
for name in ["lora_telecom", "lora_multilingual"]:
cfg = json.load(open(f"./adapters/{name}/adapter_config.json"))
print(name, "r=", cfg["r"], "alpha=", cfg["lora_alpha"], "targets=", cfg["target_modules"])
PY
# 2. Serve composed SkillVec adapter via vLLM multi-LoRA endpoint
vllm serve Qwen/Qwen3.5-8B \
--enable-lora \
--lora-modules skillvec-telecom-es=./adapters/skillvec_composed_telecom_es \
--max-lora-rank 64 \
--port 8000Asymmetric Projection Preserves Tool Schemas
Because tool-calling adapters rely heavily on narrow output formatting directions while sharing input syntax with general text, removing common input directions while preserving consistent output directions stops schema corruption during merges.
Modular Weight Skills + Runtime Skill Files in Smoke Monkey
Modern agent platforms combine two complementary skill layers: runtime prompt/MCP skills (SKILL.md specifications and tool schemas) and parametric weight skills (SkillVec LoRA vectors). By keeping specialized domain LoRAs independent and composable via SkillVec addition, teams avoid retraining monolithic models every time a new enterprise integration or language requirement ships.
Frequently Asked Questions
Q:How does SkillVec make LoRA adapters composable without retraining?
SkillVec edits LoRA weight updates asymmetrically—removing sensitivity to common input directions and preserving consistent output directions across runs—so independent skill vectors combine cleanly via simple addition.
Q:What benchmark improvement does SkillVec achieve over existing merging methods?
Across six skills and six open-weight language models, SkillVec achieves a 70.5% average score, beating the strongest evaluated model-merging baseline by 9.2 points while retaining ~96% of base model performance.
Q:Can SkillVec compose a tool-calling skill and a language skill together?
Yes. The paper demonstrates that independently trained telecom-support tool skills and multilingual skills cooperate after addition, outperforming both merging baselines and joint multitask training.
Q:Does SkillVec require access to the other skills’ training datasets?
No. Each skill vector is extracted independently from its LoRA adapter (and optional multi-seed runs) and composed at weight space without pooling training datasets.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.