Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

Demystifying Agent Skills: Why They Work-Until They Don't

arXiv:2608.140362026-08-13

AI agent 'skill' documents help not by teaching new facts but by stabilizing what the agent does step by step

This study dissects when, why, and where 'skills'-structured procedural documents given to LLM agents like SKILL.md-actually help, using 8,135 trial records and a hand-coded taxonomy from 240 sampled trajectories. The core finding is that skills mainly work as procedural anchors that stabilize repeated setup, tool-use, and verification steps, not by injecting missing knowledge. It also shows that as skill libraries grow, the precision of actually retrieving and using the right skill collapses sharply, yet downstream task success does not collapse in the same way.

METAL MEDIA explanatory visual

Skill vs Workflow Memory vs Raw: same experience, different representation

Evidence statusMeasured results reported

  1. 1. Collect raw trajectoriesSuccessful and failed executions for each task are gathered in a fixed Docker environment to form a balanced shared trace pool
  2. 2. Distill into three formsThe same pool is kept unprocessed (Raw), cleaned into procedural traces (Workflow Memory), or compressed into a standardized SKILL.md (Skill)
  3. 3. Re-run under matched protocolAll three conditions are evaluated on the same target tasks under identical execution rules
  4. 4. Contrastive taxonomy labelingPaired triples across the three arms are labeled by humans and an LLM judge into 12 fine-grained skill-use modes to reveal what changed
  5. 5. Retrieval-difficulty experimentsPool size and distractor type are varied across embedding retrieval, explicit selection, and real execution arms to separate retrieval quality from downstream success
An explanatory diagram made by METAL MEDIA, not a figure supplied by the paper's authors.

What they did

  1. The same underlying trajectory pool was distilled into three forms-unprocessed Raw, cleaned Workflow Memory, and a standardized SKILL.md-and evaluated on matched tasks to isolate the effect of representation alone
  2. 240 sampled trajectories were manually open-coded, yielding 238 valid unique labels consolidated into a taxonomy of 3 high-level categories and 12 fine-grained skill-use modes, validated against human judgment with 95.8% exact agreement (Cohen's kappa=0.952)
  3. The same protocol was run across different agent-model pairings, including Codex + GPT-5.3-Codex and Gemini CLI + Gemini-3.1-Pro-Preview, to check whether findings held beyond a single model
  4. Skill-retrieval quality was measured separately across three arms-embedding-based ranking, explicit agent selection without execution, and full real execution-while varying candidate pool size (5 to 100) and distractor type
Figure 1: Experimental pipelines. Top: skill versus procedural memory. We execute each task in a fixed Docker environment, collect successful and failed trajectories, and form a fixed-budget composition grid. The same trace pool is distilled either into Workflow Memory or into a reusable SKILL.md, which are then evaluated on matched tasks under the same protocol. Bottom: skill retrieval. Each task is paired with a candidate pool containing its ground-truth skill and k−1 real distractors (random, similar, or dissimilar). Matched pools are evaluated independently in three procedures: (A) embedding-based ranking without task execution, (B) explicit agent selection without Docker execution or verification, and (C) full-pool real execution with skill-use parsing after task verification. Outputs from (A) and (B) are not passed to (C).
Figure 1: Experimental pipelines. Top: skill versus procedural memory. We execute each task in a fixed Docker environment, collect successful and failed trajectories, and form a fixed-budget composition grid. The same trace pool is distilled either into Workflow Memory or into a reusable SKILL.md, which are then evaluated on matched tasks under the same protocol. Bottom: skill retrieval. Each task is paired with a candidate pool containing its ground-truth skill and k−1 real distractors (random, similar, or dissimilar). Matched pools are evaluated independently in three procedures: (A) embedding-based ranking without task execution, (B) explicit agent selection without Docker execution or verification, and (C) full-pool real execution with skill-use parsing after task verification. Outputs from (A) and (B) are not passed to (C).
Table 1: Task success rates for Workflow Memory and Skill injection across trajectory mixtures. Gray rows denote Raw baselines. Green, red, and unshaded cells indicate values above, below, and equal to the corresponding Raw baseline, respectively; bold marks the row-wise maximum across mixture settings. Mixture labels denote the numbers of successful (s) and failed (f) source trajectories. Terminal-Bench-Pro rates use 130 trials per condition, with infrastructure or verifier errors counted as failures.
Agent + ModelTrajectory MixTerminal-Bench-2SkillsBenchTerminal-Bench-Pro
WorkflowSkillWorkflowSkillWorkflowSkill
Codex + GPT-5.3-Codex Raw0.59350.50830.5394
Codex GPT-5.3-Codex5s0f0.44520.75480.52500.72500.73330.7455
4s1f0.40000.72900.56670.61670.73330.7939
3s2f0.41940.78060.64170.62500.69700.7333
2s3f0.36770.68390.60830.70830.66670.6667
1s4f0.27100.70970.51670.61670.61210.5818
0s5f0.28390.51610.58330.45000.47880.4303
Gemini CLI + Gemini-3.1-Pro-Preview Raw0.50000.47620.5615
Gemini CLI Gemini-3.1-Pro-Preview5s0f0.62310.79230.55240.74290.53080.6692
4s1f0.53080.76150.52380.61900.69230.6308
3s2f0.64620.74620.56190.66670.64620.5462
2s3f0.60000.70000.55240.67620.68460.5077
1s4f0.58460.69230.48570.60000.59230.5692
0s5f0.52310.47690.42860.40950.47690.4615
(b) Three-experiment skill-retrieval evaluation.
(b) Three-experiment skill-retrieval evaluation.
Table 2: Mechanism labels used to characterize how injected prior experience affects execution.
MechanismMeaning
procedural_anchorThe artifact gives a usable procedure, ordering, checklist, tool sequence, or verification plan.
knowledge_ injectionThe artifact supplies concrete domain knowledge that the agent otherwise lacked.
failure_warningThe artifact warns about a pitfall that the agent avoids.
noneThe artifact is not used in a meaningful way.
counterproductiveThe artifact misleads the agent or makes the run worse.
Figure 2: Taxonomy label distribution across trajectory mixtures and experimental arms. Stacked bars show trajectory-level labels for Raw, Workflow Memory, and Skill across the six source-trajectory mixtures from 5​s​0​f to 0​s​5​f. Labels are grouped into three high-level categories; per-mode percentages are reported in Appendix Table 11.
Figure 2: Taxonomy label distribution across trajectory mixtures and experimental arms. Stacked bars show trajectory-level labels for Raw, Workflow Memory, and Skill across the six source-trajectory mixtures from 5​s​0​f to 0​s​5​f. Labels are grouped into three high-level categories; per-mode percentages are reported in Appendix Table 11.
Table 3: Human validation of the taxonomy construction pipeline. The first stage checks whether raw labels are supported by their source trajectories; the second independently maps those labels to the 12 canonical modes.
Validation stageEvaluation unitsResult
Trajectory grounding714 checks (238 labels × 3 trajectories)All labels confirmed
Taxonomy aggregation238 valid unique labels95.8% exact; Cohen’s κ=0.952
Figure 3: Skill retrieval and execution-time skill use on SkillsBench. Left: precision for the two offline diagnostics. Right: parsed actual-use precision (solid lines) and downstream success (dashed lines) for Arm 3. Curves average over random, similar, and dissimilar pool regimes; outputs are not passed between experiments.
Figure 3: Skill retrieval and execution-time skill use on SkillsBench. Left: precision for the two offline diagnostics. Right: parsed actual-use precision (solid lines) and downstream success (dashed lines) for Arm 3. Curves average over random, similar, and dissimilar pool regimes; outputs are not passed between experiments.
Table 4: Effect of pool composition and size on SkillsBench. Entries report percentages for the indicated retrieval arm, pool composition, and pool size. Arms 2 and 3 are arithmetic means over the reported agent–model pairings. Full recall and F1 values are given in Appendix Table 15.
Pool / metricSkill-pool size k
5102050100
RandomArm 1 P97.795.595.592.084.1
Arm 2 P78.177.982.176.569.8
Arm 3 P25.923.219.58.64.4
Arm 3 Succ.31.836.840.136.341.9
SimilarArm 1 P70.563.660.256.853.4
Arm 2 P53.152.947.148.643.7
Arm 3 P34.522.315.77.33.7
Arm 3 Succ.41.739.639.239.539.6
DissimilarArm 1 P96.696.696.694.393.2
Arm 2 P78.981.682.678.477.8
Arm 3 P28.619.29.04.41.7
Arm 3 Succ.35.736.933.738.836.4
(b) Arm 3 skill-use precision and downstream success.
(b) Arm 3 skill-use precision and downstream success.
Table 5: Experimental arms in the contrastive trajectory analysis.
ArmInjected prior experiencePurpose
RawNo injected prior trajectory or skillBaseline behavior of the agent on the task.
Workflow memoryCleaned prior workflows are appended as procedural memoryTests whether direct trajectory-like procedural memory improves execution.
SkillThe same prior workflows are distilled into a standardized reusable skillTests whether compact skill representation improves over direct workflow memory.
Figure 4: Cross-framework transfer of procedural experience. Prior-experience artifacts constructed in one agent framework are evaluated in another. Dashed lines indicate the target framework’s Raw baseline.
Figure 4: Cross-framework transfer of procedural experience. Prior-experience artifacts constructed in one agent framework are evaluated in another. Dashed lines indicate the target framework’s Raw baseline.
Table 6: Input artifacts used by the taxonomy pipeline.
ArtifactRole in the analysis
Trial result metadataStores task identity, reward, verifier result, exception type, timestamps, token usage, and execution phase durations.
Agent trajectory transcriptStores the terminal/tool-use trajectory and the agent’s reasoning-visible interaction record.
Task instructionDefines the task objective and, for workflow-memory arms, may include injected workflow content.
Skill artifactStores the injected skill used in the skill arm.
Task-side filesUsed only as contextual artifacts when present; the main taxonomy labels are based on execution trajectories and verifier outcomes.
Figure 5: Effect of outcome labels during skill creation. Panels compare skills created with outcome labels visible (normal) or withheld (no-hint) across trajectory mixtures and benchmarks. Dashed lines indicate the corresponding Raw baselines. Terminal-Bench-Pro entries use 130 trials per condition; missing or infrastructure-error trials count as failures.
Figure 5: Effect of outcome labels during skill creation. Panels compare skills created with outcome labels visible (normal) or withheld (no-hint) across trajectory mixtures and benchmarks. Dashed lines indicate the corresponding Raw baselines. Terminal-Bench-Pro entries use 130 trials per condition; missing or infrastructure-error trials count as failures.
Table 7: Coverage statistics after manifest construction and artifact linking.
DimensionCount
Terminal-Bench 2.0 trials3,254
Terminal-Bench-Pro trials2,993
SkillsBench trials1,888
Raw-arm trials1,883
Workflow-memory trials2,658
Skill-arm trials3,594
Successful trials4,541
Failed trials3,594
Records with available agent transcript7,837
Records with available task instruction6,210
Skill-arm records with linked skill artifact3,570
Table 8: Paired triple sample used for contrastive taxonomy labeling.
SplitCount
SkillsBench triples144
Terminal-Bench 2.0 triples186
Terminal-Bench-Pro triples198
Triples per mixture setting88
Total triples528
Table 9: Oracle-status success rates across the three execution arms.
ArmSuccess / totalSuccess rate
Raw312 / 52859.1%
Workflow memory295 / 52855.9%
Skill327 / 52861.9%
Table 10: Paired success-rate deltas between execution arms.
ComparisonMean paired delta95% bootstrap CI
WM vs Raw−0.0322[−0.0814,+0.0208]
Skill vs Raw+0.0284[−0.0227,+0.0795]
Skill vs WM+0.0606[+0.0076,+0.1136]
Table 11: Contrastive skill-use taxonomy over 528 paired triples. SC abbreviates Skill-use Category, the top-level taxonomy label assigned to a trajectory; each SC groups the fine-grained modes listed in the table. Percentages are computed within each arm over the same paired-triple sample. SC1 denotes successful procedural anchoring, SC2 execution-layer and verification failures, and SC3 invocation, applicability, and boundary failures.
SCModeRawWFSkill
SC1skill_guided_success10.4%0.4%61.6%
SC1workflow_guided_success0.0%54.5%0.0%
SC1autonomous_clean_success48.7%0.8%0.2%
SC2environment_infrastructure_failure5.3%1.7%0.2%
SC2output_format_schema_mismatch7.4%3.8%3.2%
SC2background_service_lifecycle_failure2.7%2.5%0.8%
SC2shell_code_corruption1.1%1.9%0.2%
SC2algorithmic_logic_error8.3%11.0%7.4%
SC2static_verification_without_runtime12.5%12.5%11.7%
SC3timeout_budget_exhaustion1.7%10.6%4.4%
SC3skill_guidance_misapplied_or_ignored0.8%0.4%10.0%
SC3capability_or_safety_limit1.1%0.0%0.4%
Table 12: Lightweight compact procedural baselines on selected Terminal-Bench-2 tasks. Entries report downstream success for Raw, short-plan, test-first, Workflow Memory, and Skill conditions over 26 tasks with five trials per task.
ConditionSourceSuccess / totalSuccess rate
RawNone65 / 13050.0%
Short planTask instruction62 / 13047.7%
Test-first templateWorkflow77 / 13059.2%
Workflow MemoryWorkflow81 / 13062.3%
SkillWorkflow103 / 13079.2%
Table 13: Matched success and token-cost comparison. Entries are computed on the 83-task intersection with equal task weighting. Token counts are per-task averages reported in thousands (K); “pp” denotes percentage points.
Absolute metrics on the matched 83-task intersection
RepresentationSuccessInputOutputTotalΔ succ. vs RawCost profile
Raw trajectories64.1%541.5K14.2K555.7KFull prior traces provide broad evidence but carry the largest context load.
Workflow Memory64.8%417.9K8.3K426.2K+0.7 ppMost token-efficient representation after cleaning trajectory noise.
Skill69.6%511.7K9.8K521.5K+5.5 ppHighest success rate, with lower token use than Raw but higher token use than Workflow Memory.
Pairwise trade-offs
ComparisonΔ successΔ inputΔ outputΔ totalDirectionInterpretation
Workflow Memory vs Raw+0.7 pp-123.6K-5.9K-129.5KcheaperWorkflow Memory substantially reduces token cost with nearly unchanged success.
Skill vs Raw+5.5 pp-29.8K-4.4K-34.2Kbetter and cheaperSkill improves success while still reducing token use relative to Raw trajectories.
Skill vs Workflow Memory+4.8 pp+93.8K+1.5K+95.3Kbetter but costlierSkill trades additional context for stronger execution performance.
Table 14: Complete Arm 1 embedding-retrieval results on SkillsBench. Entries report ranking metrics from Qwen3-Embedding-0.6B using task–skill-description similarity. Top-5 is omitted for k=5 because it covers the full candidate pool.
PoolkTop-1Top-3Top-5
PPRF1PRF1
Random597.733.098.949.4
1095.532.697.748.919.597.732.6
2095.532.296.648.319.597.732.6
5092.032.296.648.319.597.732.6
10084.130.792.046.019.195.531.8
Similar570.531.895.547.7
1063.629.287.543.819.396.632.2
2060.226.980.740.317.587.529.2
5056.824.272.736.416.481.827.3
10053.422.768.234.115.778.426.1
Dissimilar596.633.098.949.4
1096.632.296.648.319.898.933.0
2096.632.296.648.319.597.732.6
5094.332.296.648.319.597.732.6
10093.232.296.648.319.396.632.2
Table 15: Complete Arm 2 and Arm 3 retrieval results on SkillsBench. Rows correspond to agent–model, distractor regime, and pool size. Arm 2 reports explicit-selection precision, recall, and F1; Arm 3 reports parsed actual-use precision, recall, F1, and downstream success. Dashes indicate excluded entries.
Agent / ModelPoolkArm 2: Agent SelectionArm 3: Real Execution
PRF1PRF1Succ.
Gemini CLI Gemini-3.1-Pro-PreviewRandom574.475.074.718.669.429.339.2
Random1072.772.772.77.166.412.938.1
Random2080.181.881.03.666.06.839.2
Random5081.284.182.61.465.82.837.6
Random10077.483.080.10.766.01.439.0
Similar554.369.360.917.670.128.138.8
Similar1061.379.569.27.067.312.638.5
Similar2058.477.366.63.766.26.934.0
Similar5059.376.166.71.466.22.736.7
Similar10055.473.963.30.766.71.436.1
Dissimilar574.476.175.314.663.223.734.0
Dissimilar1080.181.881.08.766.015.338.8
Dissimilar2082.483.082.75.165.59.535.6
Dissimilar5079.380.780.01.664.43.138.1
Dissimilar10083.584.183.80.761.61.534.5
Codex GPT-5.4Random581.884.182.933.141.636.824.3
Random1083.086.484.639.259.747.335.5
Random2084.187.585.835.369.346.840.9
Random5071.787.578.815.863.525.435.0
Random10062.285.271.98.173.614.644.8
Similar551.981.863.551.372.460.044.5
Similar1044.483.057.837.566.047.940.7
Similar2035.877.348.927.766.139.144.3
Similar5037.876.150.513.161.821.642.3
Similar10031.970.543.96.754.311.943.0
Dissimilar583.385.284.342.563.050.737.3
Dissimilar1083.085.284.129.761.340.035.0
Dissimilar2082.885.284.012.760.521.031.8
Dissimilar5077.585.281.27.265.112.939.5
Table 16: Complete numerical results for the outcome-annotation ablation. Entries report downstream success for skills constructed under the indicated trajectory mixture. normal exposes source-trajectory outcomes during construction; no-hint withholds them. Terminal-Bench-Pro entries use 130 trials per condition, with missing or infrastructure-error trials counted as failures.
Agent + ModelBenchmarkCreator5s0f4s1f3s2f2s3f1s4f0s5f
Codex GPT-5.3-CodexTB2normal0.75480.72900.78060.68390.70970.5161
no-hint0.76770.73550.58710.49680.55480.3871
SBnormal0.72500.61670.62500.70830.61670.4500
no-hint0.66670.64170.55830.50000.50830.3500
TB-Pronormal0.74550.79390.73330.66670.58180.4303
no-hint0.83640.66060.57580.51520.48480.3758
Gemini CLI Gemini-3.1-Pro-PreviewTB2normal0.79230.76150.74620.70000.69230.4769
no-hint0.42310.49230.40000.36920.52310.4308
SBnormal0.74290.61900.66670.67620.60000.4095
no-hint0.61900.51430.40950.41900.40950.4000
TB-Pronormal0.66920.63080.54620.50770.56920.4615
no-hint0.61540.57690.63850.59230.56920.5154

Findings

  • In matched comparisons, Skill outperformed Workflow Memory by 6.06 percentage points (95% bootstrap CI [+0.76, +11.36])
  • Among skill mechanisms, procedural_anchor accounted for 65.7% of cases versus only 4.5% for explicit knowledge_injection
  • As candidate pool size grew from 5 to 100, actual-use precision during real execution fell from 29.6% to 3.3%
  • Confusable distractor skills degraded offline identification accuracy, but downstream task success remained largely stable
  • Oracle-status success rates were 61.9% for Skill, 59.1% for Raw, and 55.9% for Workflow Memory; SC2 execution-layer/verification failures dropped from 37.3% (Raw) and 33.3% (Workflow) to 23.5% (Skill), while SC3 invocation/boundary failures rose sharply relative to Raw (78/528 vs 19/528)

Where it can be used

  • Designing reusable SKILL.md procedural guides for coding or terminal-operating LLM agents, informed by what actually made skills effective in these tests
  • Considering distillation into standardized procedural artifacts, rather than raw trace accumulation, when building self-evolving agents that learn from experience
  • Separating retrieval-quality evaluation from execution-quality evaluation when maintaining a growing skill library, given the observed retrieval-precision drop-off

Limits and open work

  • Experiments were run on terminal- and software-engineering-oriented benchmarks (Terminal-Bench, Terminal-Bench-Pro, SkillsBench) with specific agent-model pairings (Codex + GPT-5.3-Codex, Gemini CLI + Gemini-3.1-Pro-Preview), so generalization to other domains is not established
  • RQ4 used GPT-5.4 instead of GPT-5.3-Codex for availability reasons, so its results should be read only as within-pairing comparisons, not directly compared in absolute terms with RQ1-RQ3
  • Failure modes like algorithmic_logic_error and static_verification_without_runtime remained substantial across Skill, Workflow Memory, and Raw arms, meaning skills do not reliably fix wrong logic or replace stronger runtime verification
  • Skills introduced a new failure surface (SC3: invocation, applicability, and boundary failures) where guidance was misapplied, over-applied, or ignored, requiring separate scrutiny when adopting skills

Why it matters

Skill evaluations have mostly relied on aggregate task success, which hides why a skill helped or failed; this work breaks that black box into concrete behavioral mechanisms. For anyone building self-improving agents or maintaining skill libraries, it offers grounded evidence on when skill guidance actually pays off and where it introduces new failure modes.

Terms in this paper

  • Skill · A compact, standardized procedural document (SKILL.md) describing what to do, what to check, and what pitfalls to avoid, distilled from prior execution traces
  • Workflow Memory · A cleaned but trace-level record of past execution that preserves procedural flow more directly than a distilled skill
  • Procedural anchoring · The mechanism by which a skill stabilizes concrete actions-setup steps, tool sequences, checks-rather than supplying new factual knowledge
  • Open coding · A qualitative method where human annotators read trajectories and freely describe observed success/failure patterns before categorization
  • Oracle-status success rate · Task success rate as determined by the benchmark's verifier, used as the primary aggregate outcome metric

Original abstract (English)

Skills have emerged as a practical and effective approach for enhancing LLM agents at inference time through structured packages of knowledge. However, existing evaluations largely measure whether skills improve aggregated task success, leaving a more fundamental question underexplored: \textbf{When do skills help, why do they work, and where do they fail?} Through controlled experiments across various benchmarks, agent harnesses and LLMs, we isolate the effects of representation, outcome annotation, retrieval difficulty, and cross-framework robustness of skills. To further answer this question, we design a contrastive study that combines controlled quantitative experiments with paired trajectory analysis. We normalize 8,135 trial records from controlled experiments and retain 238 valid unique labels from 240 open-coded records. We consolidate these observations into a taxonomy of three high-level categories and twelve skill-use modes: skills work when noisy trajectories become procedural anchors that stabilize execution. Skills improve over Workflow Memory by 6.06 points in matched comparisons. Procedural anchoring accounts for 65.7\% of skill cases, versus 4.5\% for explicit knowledge injection, showing that skills stabilize action rather than inject missing facts. Retrieval is a separate bottleneck: as pools grow from 5 to 100, actual-use precision falls from 29.6\% to 3.3\%. Confusable distractors impair offline identification, yet downstream success remains stable; exact ground-truth invocation is neither sufficient nor necessary. Skills fail under brittle assumptions, incompatible contexts, or insufficient adaptation. These findings move evaluation beyond aggregate success rates and guide reliable self-evolving agents.

Authors · Zhiyuan Jiang

Read on arXiv

Latest papers

All papers →

Latest from METAL MEDIA

Figures: Zhiyuan Jiang et al., arXiv:2608.14036, arxiv-nonexclusive