Benchmark Results
Does structured knowledge delivered via MCP tools help agents complete tasks better than raw markdown files? We ran a controlled experiment to find out.
What is SkillsBench?
SkillsBench is an open-source benchmark that measures how well AI coding agents perform on real-world tasks when given skill documentation. Each task requires the agent to generate a working Python script — no human judgment involved.
SkillsBench is part of the BenchFlow evaluation suite. It uses deterministic Docker evaluation: the agent's output is executed inside a container and scored by pytest. Either the tests pass or they don't — no ambiguity.
The Question
AI coding agents like Claude Code rely on skill documentation to solve specialized tasks — generating DOCX files, processing PDFs, analyzing financial data. Today, these skills are delivered as plain markdown files (SKILL.md). The agent reads the raw text and must extract instructions, heuristics, and anti-patterns on its own.
OntoSkills takes a different approach: skill knowledge is compiled into structured OWL 2 ontologies and delivered via a single MCP tool (mcp__onto__skill). The agent queries for skill knowledge — receiving typed knowledge nodes with severity ratings, anti-patterns with rationale, and curated code examples.
Which approach produces better results?
Methodology
Evaluation
We use SkillsBench (part of BenchFlow), which measures an agent's ability to generate working code for real-world tasks.
- Agent receives task description + skill docs
- Generates a Python solution script
- Script runs inside the task's Docker container (via BenchFlow Trial + Harbor)
- Harbor Verifier runs pytest — deterministic, no human judgment
Setup
| Engine | --engine claude or --engine opencode |
| Claude model | glm-5.1 (via API proxy) |
| Opencode model | opencode-go/deepseek-v4-flash |
| Infrastructure | Docker (BenchFlow Trial) + Harbor Verifier |
| Scoring | Docker + pytest CTRF |
| Retries | 5 per task |
Agent alone — no skill documentation. Measures raw performance on each task.
SKILL.md files deployed to the engine's skills directory ($HOME/.claude/skills/ or $HOME/.opencode/skills/). Agent reads raw markdown.
Skills compiled to OWL 2, served via OntoMCP. Agent queries structured knowledge via MCP — tool name is mcp__onto__skill (Claude) or onto_skill (opencode).
Same base instruction, same model, same BenchFlow container management, same Harbor Verifier. All prompts end with "Implement the complete solution by writing the required output files". The only difference is how skill knowledge is delivered (or absent for baseline).
Results
Why Structured Knowledge Wins
Traditional SKILL.md files mix instructions, examples, caveats, and anti-patterns in unstructured text. The agent must parse everything at once with no indication of what's critical.
OntoSkills delivers knowledge as typed nodes with severity ratings:
CRITICALrules highlighted first- Anti-patterns with explicit
rationaleexplaining why - Curated, prioritized view instead of a wall of text
- 88% token reduction through compact structured format
The result: structured knowledge helps agents solve more tasks correctly with fewer tokens.
Limitations
- Sample size: Results from a pool of 70+ eligible tasks.
- Engine support: Two engines are available —
--engine claude(glm-5.1 via Anthropic proxy) and--engine opencode(opencode-go/deepseek-v4-flash). Results vary by engine. - MCP naming: Claude exposes MCP tools as
mcp__onto__skill; opencode exposes them asonto_skill. Both query the same ontology. - Single benchmark: SkillsBench tests code generation. Other benchmarks planned.
All benchmark code is open source. Run it yourself:
python benchmark/run.py --mode taskwise --engine claude --max-tasks 25 --attempts 5 --workers 2 python benchmark/run.py --mode taskwise --engine opencode --max-tasks 25 --attempts 5 --workers 2