by microsoft
SkillLens: a framework for studying model-generated agent skills across the full raw experience generation → skill extraction → skill consumption lifecycle.
# Add to your Claude Code skills
git clone https://github.com/microsoft/SkillLensSkillLens is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by microsoft. SkillLens: a framework for studying model-generated agent skills across the full raw experience generation → skill extraction → skill consumption lifecycle. It has 192 GitHub stars.
SkillLens's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/microsoft/SkillLens" and add it to your Claude Code skills directory (see the Installation section above).
SkillLens is primarily written in Python. It is open-source under microsoft on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh SkillLens against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
🧭 SkillLens is part of the AgentOpt series, which covers each part of an agent system: SkillLens · SkillOpt · Resource2Skill · EnvOpt · EvalOpt · Freehand. See the AgentOpt series page.
SkillLens is a framework for systematically studying model-generated agent skills across their full lifecycle: experience generation → skill extraction → skill consumption. It is built to answer the core question:
What makes model-generated skills actually useful to a target model, and what drives skill utility across the experience → extraction → consumption lifecycle?
The framework provides:
sequential (single-pass baseline) and parallel (per-trajectory mode extraction + hierarchical merge, the primary method in the paper)skilllens infer) that runs any benchmark with or without skill injection# 1. Clone & install
git clone https://github.com/microsoft/SkillLens.git && cd SkillLens
conda create -n skilllens python=3.10 -y && conda activate skilllens
pip install -e ".[all]"
# 2. Configure your LLM provider
cp .env.example .env
# Edit .env — set OPENAI_API_KEY, or AZURE_OPENAI_ENDPOINT + (AZURE_OPENAI_API_KEY | AZURE_CLIENT_ID)
# 3. Pick a benchmark and run the 4-stage pipeline (ALFWorld as example)
bash scripts/setup_alfworld.sh # one-time data setup
# (a) Raw experience generation
python -m skilllens infer --benchmark alfworld --model gpt-5.4 \
--num-rounds 1 --workers 16
# (b) Schema normalization (raw → unified Trajectory)
python -m skilllens convert \
--trajectory-dir inference_output/alfworld/<run-dir> \
--benchmark alfworld --model-name gpt-5.4 \
-o data/experience_pool/alfworld/my_pool.json
# (c) Skill extraction
python -m skilllens extract \
-c configs/examples/alfworld_parallel.yaml \
-i data/experience_pool/alfworld/my_pool.json \
-o extraction_output/alfworld_parallel/
# (d) Skill consumption
SKILL=$(find extraction_output/alfworld_parallel -name skill_set.json | head -1)
python -m skilllens infer --benchmark alfworld --model gpt-5.4 \
--num-rounds 1 --workers 16 --skill-set "$SKILL"
Per-benchmark prerequisites (data downloads, sandboxes, tool servers) live in each benchmark's README — see the table below.
SkillLens organizes every experiment as four stages. Each stage has a corresponding CLI subcommand.
| Stage | Subcommand | What it does |
|---|---|---|
| 1. Raw experience generation | skilllens infer |
Runs the agent on the benchmark and writes raw trajectories. |
| 2. Schema normalization | skilllens convert |
Converts raw runner outputs into the unified Trajectory JSON schema. |
| 3. Skill extraction | skilllens extract |
Distills the experience pool into a skill_set.json (sequential or parallel method). |
| 4. Skill consumption | skilllens infer --skill-set |
Re-runs the target model on the same benchmark with the extracted skills injected. |
SkillLens ships integrations for five benchmarks. Each one has its own README with the exact prerequisites and step-by-step commands.
| Benchmark | Domain | Details |
|---|---|---|
| ALFWorld | Text-based household navigation | skilllens/benchmarks/alfworld/README.md |
| BFCL v4 | Multi-turn function calling | skilllens/benchmarks/bfcl/README.md |
| SEAL-0 | Web-research agent (LiteResearcher) | skilllens/benchmarks/seal0/README.md |
| SpreadsheetBench | Excel manipulation in a sandboxed Jupyter kernel | skilllens/benchmarks/spreadsheetbench/README.md |
| SWE-bench Verified | GitHub bug fixing inside per-task containers | skilllens/benchmarks/swebench/README.md |
For all benchmarks, the held-out test split is committed under data/test_pool/<benchmark>/.
YAML configs (configs/example.yaml, configs/examples/*.yaml) describe each extraction run:
llm:
provider: "azure" # openai | azure | vllm | gemini
model: "gpt-5.4"
input:
path: "data/experience_pool/alfworld/gpt54_baseline.json"
benchmark: "alfworld"
extraction:
method: "parallel" # sequential | parallel
batch_size: 0 # 0 = all trajectories in one batch
merge_group_size: 10
max_concurrency: 32
max_skills: 1
max_skill_chars: 3000
include_feedback: true
max_modes_per_trajectory: 3
For Azure: set AZURE_OPENAI_ENDPOINT + (AZURE_OPENAI_API_KEY or AZURE_CLIENT_ID for Managed Identity) in .env. For per-model endpoint routing, set AZURE_DEPLOYMENT_MAP to a JSON dict mapping model name → {endpoint, api_version}.
SkillLens is part of the AgentOpt series from Microsoft Research. Each project tackles one part of an agent system: its skills, its training environments, the evaluator that judges it, or the harness it runs in. Projects are listed by release date.
| Project | What it does | Paper | Code | Project page |
|---|---|---|---|---|
| SkillLens (this repo) | Studies what makes model-generated skills useful, from experience to extraction to use | arXiv | Code | Project page |
| SkillOpt | Trains reusable natural-language skills for frozen agents | arXiv | Code | Project page |
| Resource2Skill | Distills human tutorials and resources into executable agent skills | arXiv | Code | Project page |
| EnvOpt | Builds the training environments an agent needs | arXiv | Code | Project page |
| EvalOpt | Evolves evaluators for open-ended tasks from human feedback | arXiv | Code | Project page |
| Freehand | An agent harness that leaves the decisions to the model | arXiv | Code | Project page |
More AgentOpt projects are on the way. Overview: AgentOpt series page.
If you find SkillLens useful in your research, please cite:
@article{huang2026skilllens,
title = {From Raw Experience to Skill Consumption: A Systematic Study of Model-Generated Agent Skills},
author = {Zisu Huang and Jingwen Xu and Yifan Yang and Ziyang Gong and Qihao Yang and Muzhao Tian and Xiaohua Wang and Changze Lv and Xuemei Gao and Qi Dai and Bei Liu and Kai Qiu and Xue Yang and Dongdong Chen and Xiaoqing Zheng and Chong Luo},
year = {2026},
journal = {arXiv preprint arXiv:2605.23899},
eprint = {2605.23899},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2605.23899}
}
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
This project is released under the MIT License.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft's Trademark & Brand Guide