Think with Skills: Pseudocode Planning Before Execution for Advanced Reasoners
Organizations: Honor Device Co., Ltd., China
Abstract
Language model agents often struggle with complex tasks even when equipped with expert-written skills. Such skills encode declarative knowledge, whereas successful execution requires procedural knowledge tailored to the task at hand. Natural language skills may leave conditions and dependencies implicit, and tasks involving multiple skills further require agents to coordinate intermediate results and execution order. We introduce Think with Skills, a method that trains reasoning models to turn relevant skill descriptions into task-specific pseudocode plans before execution. The pseudocode explicitly represents operations, conditions, intermediate results, and dependencies, providing a structured bridge from skill descriptions to agent actions. We construct training data that pairs tasks and skills with pseudocode plans and execution trajectories, use supervised fine tuning to initialize this behavior, and further optimize end-to-end task performance with Group Relative Policy Optimization. On SkillsBench, Think with Skills raises task success from 35.0% to 62.0%. These results show that proceduralizing expert knowledge before execution substantially improves skill use.
Figures & tables
| Agent framework | Model | SkillsBench result (%) |
|---|---|---|
| Claude Code | Think with Skills (Qwen3.5-35B-A3B) | 62.0 (+27.0 pp) |
| Qwen3.5-35B-A3B | 35.0 | |
| Kimi K2.5 | 62.5 | |
| DeepSeek V4 Pro | 61.67 | |
| MiniMax M2.7 | 42.76 | |
| OpenHands | GLM 5.1 | 58.4† |
| Model / Training Configuration | SkillsBench Score (%) |
|---|---|
| Qwen3.5-35B-A3B (base model, direct skill use) | 35.0 |
| Qwen3.5-35B-A3B + pseudocode prompting | 45.0 |
| Qwen3.5-35B-A3B + SFT | 60.0 |
| Qwen3.5-35B-A3B + SFT + GRPO (Think with Skills) | 62.0 |
| Skills per Training Task | Training Examples | SkillsBench Success (%) |
|---|---|---|
| Single skill (1) | 901 | 55.0 |
| Multiple skills (>1) | 913 | 60.0 |
LLM Agent Planning
Large language model (LLM) agent planning studies how agents decompose goals, choose actions and tools, and adapt plans from feedback.
See all 230 papers