Agent Skill Design: From One-Way Tools to Two-Way Software
This article explores why seemingly simple agent skills are often proposed first by teams that completed model capability evaluation earlier. It argues that the key lies not in algorithmic difficulty but in a shift of perspective: treating the model as an active participant in software interaction rather than a passive tool. The article introduces the concept of "two-way software," examines two representative skills—programmatic tool calling and structured question-asking—and provides a practical checklist for skill design, covering trigger boundaries, structured contracts, sandboxing, evaluation, and failure recovery.
The Phenomenon: Why Seemingly Simple Skills Are Often Proposed Earlier
In agent engineering, a counterintuitive pattern appears repeatedly: certain skills look simple once the solution is public—sometimes summarizable in a few sentences—yet they are consistently proposed first by teams that completed model capability evaluation earlier. The reason usually has nothing to do with algorithmic difficulty. It lies in how needs are identified. Traditional software development treats the model as a lifeless execution tool and designs workflows only around explicit user requirements. More mature agent design treats the model as another party in the software interaction, paying attention to the friction, ambiguity, context pressure, and failure modes it encounters while executing tasks. This shift in perspective is often harder than the technical implementation itself.
The “latent needs” emphasized in the original discussion can be understood as efficiency losses and interaction gaps that users never articulate and the model never declares, but that recur constantly in real tasks. The essence of skill design is to identify these latent needs and codify them into reusable, evaluable, governable engineering contracts. An agent is therefore not a one-way tool but “two-way software”: it must serve the user’s goals while also serving the model’s stable execution.
1. Two-Way Software: Considering Both User Needs and Model Needs
User needs typically manifest as “complete the task, reduce manual steps, and produce trustworthy results.” Model needs manifest as “clear inputs, structured tool outputs, manageable context load, recoverable failures, and decidable success criteria.” Optimizing only the user interface may trap the model in endless meaningless round trips; optimizing only model execution may strip users of control and explainability. The value of a skill is to establish a behavioral contract between the two.
For example, a chain of consecutive tool calls is a single task to the user, but to the model it means multiple rounds of inference, repeated result injection, and accumulating context. Likewise, “asking one more question” feels natural to users, but the model needs an explicit trigger condition to decide when to ask, what to ask, and how to collect the answer. Skill design is not simply wrapping functions—it defines interaction timing, input/output structure, failure fallback, and permission boundaries together.
2. Programmatic Tool Calling: Collapsing Multi-Step Orchestration into One Execution
Under the traditional tool-calling model, the agent typically runs another round of model inference after each tool result. When a task involves many consecutive tool calls, this creates numerous round trips and continuously consumes context. The idea behind programmatic tool calling is to have the model generate a controlled script or execution plan, complete multi-step tool orchestration in a single invocation, and then return a structured summary to the model.
The basic flow can be abstracted as:
Generate an execution planIf there are consecutive tool steps:Generate a one-shot execution scriptExecute it in a controlled runtimeProduce a structured summary of the resultsReturn the summary to the modelElse:Execute a single-step tool call
The prerequisite for this pattern is that the model’s code capability has reached a high level of reliability: the generated script must stably handle common branches, errors, and result formatting. Engineering teams must thoroughly understand the model’s capability boundaries before pushing multi-step orchestration down to the script layer. The benefits include fewer round trips, lower context consumption, and more consistent execution; the risks include script errors, excessive permissions, and hard-to-trace exceptions. Production deployment therefore requires sandbox isolation, least privilege, timeouts and resource limits, idempotent design, logging and auditing, and failure fallback. Whether scripts run locally or in the cloud should be decided based on data boundaries, latency, and isolation requirements.
3. Question-Based Interaction: Trading Off Flexibility and Structure
The second representative skill is “asking the user questions.” It looks like nothing more than letting the model query the user when uncertain, but the actual design is far from trivial. Fully free-form questions are flexible but hard to parse; rigidly fixed questions are well-structured but may constrain user expression. A common engineering approach is to experiment with multiple interaction forms and ultimately find that presenting questions through a controlled modal interface and collecting feedback via structured fields produces the most stable results.
The reasons are: modal interaction reduces context interference and makes it clear to the user what needs to be supplemented; structured fields are easy to validate and inject back; batched questions reduce repeated interruptions; and default values plus a cancel option preserve flexibility. Several design principles apply: trigger only on critical ambiguity; make questions selectable where possible; allow free-form supplements; limit the number of questions; provide defaults and a cancel path; and store answers in structured form. The model “prefers” such tools not because of anthropomorphism, but because explicit questions and structured answers reduce decision cost and raise task success rates. Abuse must still be prevented through trigger conditions, budgets, and evaluation mechanisms that constrain questioning frequency.
4. Why Simple Solutions Are Often Proposed First
Seemingly simple skills are often proposed earlier for three main reasons. First, a skill is not a single-point algorithmic innovation but a cross-disciplinary product of product engineering, model behavior understanding, and interaction design. Second, early movers tend to have established real-world feedback loops sooner, allowing them to identify latent needs from failure cases. Third, capability maturity has a window: only when the model’s code generation, instruction following, and tool-calling stability cross a threshold do programmatic calling or structured questioning become viable. What looks simple in hindsight required substantial trade-offs beforehand.
5. Implementation Checklist
When designing agent skills, proceed with the following checklist: identify the model’s execution friction points; define skill trigger and disable boundaries; design structured input/output contracts; establish logging, metrics, and tracing; prepare offline evaluation sets and online canary releases; enforce least privilege and sandboxing; design failure fallback and user confirmation; and version skills while continuously evaluating them. The core conclusion: skill design need not pursue complexity, but it must serve both the user and the model. Teams that understand the latent needs of “two-way software” earlier are the ones more likely to propose first those solutions that look simple only in retrospect.
