arXiv:2611.02830cs.AINov 2026

Manuscript Offprint

arXiv:2611.02830

Think with Skills: Pseudocode Planning Before Execution for Advanced Reasoners

Boshen Zhou, Boxuan Yue, Xiang Li, Shanchao Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 Skills-Bench, 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.

1. Introduction

A medical student may memorize the symptoms of many diseases and detailed descriptions of surgical procedures, yet still require extensive clinical training before becoming a qualified physician. Memorization gives the student declarative knowledge about medicine, while clinical practice develops the procedural knowledge needed to apply it to real patients. Cognitive theories distinguish these two

forms of knowledge: declarative knowledge represents facts and explicit instructions, whereas procedural knowledge determines how that information guides action (Anderson, 1982). Completing a complex task requires both knowing what is relevant and knowing how to apply that knowledge in the current situation.

Large language models are increasingly used as agents that reason, invoke tools, observe their results, and decide what to do next (Yao et al., 2023). To provide agents with expertise for specialized tasks, recent systems augment them with Agent Skills. A skill packages domain knowledge, instructions, and tool usage conventions written by human experts, allowing an agent to receive reusable task guidance without changing its parameters (Li et al., 2026). Curated skills can substantially improve task success, but their benefits vary widely across tasks, and access to a skill does not guarantee correct execution. From the agent's perspective, the contents of a skill remain natural language descriptions. They make expert knowledge available, but the agent must still learn how to apply that knowledge in the current task.

Turning a skill description into action is difficult for several reasons. First, guidance written by human experts may describe execution logic incompletely and leave conditions, intermediate states, and dependencies implicit. Second, a skill usually describes a general procedure, while the agent must adapt it to the current objective, available tools, files, observations, and intermediate results. Third, a complex task may require several skills whose procedures were written independently. The agent must determine when each skill applies, connect the output of one skill to the input of another, and establish a coherent execution order. Studies of natural language described algorithms similarly suggest that understanding an instruction and reliably carrying out its control flow are separate challenges for language models (Zheng et al., 2024). We call the gap between receiving expert guidance and turning it into an executable procedure for the current task the skill proceduralization gap.

Research on intermediate reasoning suggests a possible path forward. Chain of thought prompting allows models to express reasoning steps before producing an answer (Wei et al., 2022), while least to most prompting and Plan and Solve separate problem decomposition from solution generation

∗^{*}Equal contribution 1^{1}Honor Device Co., Ltd., China. Emails: quanlang2017@outlook.com, yueboxuan@honor.com, lixiang27@honor.com, and yangshanchao@honor.com. Correspondence to: Boxuan Yue yueboxuan@honor.com.

Preprint. Work in progress.

Figure

Figure 1. Overview of the Think with Skills training pipeline. A Draft Agent constructs and validates tasks from related skills. Strong and weak Solvers then attempt each task. Tasks solved by the strong Solver but not the weak Solver are retained, and the corresponding trajectories provide pseudocode and execution supervision for SFT. GRPO continues training from the SFT checkpoint with verifier rewards.

(Zhou et al., 2023; Wang et al., 2023). Program aided methods use code as an intermediate representation for numerical and symbolic reasoning (Gao et al., 2023; Chen et al., 2023). Think and Execute extracts logic shared across instances of an algorithmic task, represents it as task level pseudocode, and asks a language model to simulate its execution (Chae et al., 2024). These methods show that both prior thinking and structured intermediate representations can improve reasoning. However, they do not teach agents to convert one or more external skills into an instance specific procedure grounded in the current environment.

We introduce Think with Skills, a training approach that teaches reasoning models to perform this conversion before execution. Given a task and its relevant skills, the model first generates a task specific pseudocode plan in its thinking process. The plan makes operations, applicable conditions, execution order, intermediate results, and dependencies across skills explicit. The agent then follows this plan while interacting with the environment. In this way, pseudocode serves as a structured intermediate representation between natural language skill descriptions and concrete agent actions, allowing general expert guidance to be organized around the requirements of the current task.

Existing rationale supervision primarily teaches models to derive answers from questions (Zelikman et al., 2022; Hsieh

et al., 2023). To supervise skill proceduralization, we construct training examples that pair tasks and relevant skills with pseudocode plans and their corresponding execution trajectories. We first use these examples for supervised fine tuning, teaching the model to generate a plan from the provided skills and carry out the task according to that plan. We then apply Group Relative Policy Optimization (GRPO) (Shao et al., 2024), using executable verification feedback to optimize whether the complete planning-and-execution process leads to task success. This two-stage procedure combines explicit trajectory supervision with outcome-based optimization, as summarized in Figure 1.

We apply Think with Skills to Qwen3.5-35B-A3B and evaluate the resulting model on SkillsBench. Our two-stage training procedure increases the task success rate from 35.0% to 62.0%, an improvement of 27.0 percentage points. Our contributions are threefold. First, we formulate the skill proceduralization gap and introduce pseudocode planning as an intermediate step between reading skills and executing them. Second, we develop a data construction method and training procedure that teach models to convert expert skills into task specific plans and execution trajectories. Third, we demonstrate that learning this behavior substantially improves skill use on SkillsBench, showing that expert guidance becomes more effective when agents first organize it into an explicit procedure for the current task.

References (27)