# SkillComposer: Learning Reusable Skills for Natural-Language Robot Programming

Robotics.world

> Robotics simulators such as RCareWorld let researchers design and test robot behaviors safely, but specifying those behaviors still requires programming skill, which blocks caregivers, clinicians…

**arXiv**: 2608.14944 · Preprint · not peer-reviewed

**Published**: 2026-08-14

**Authors**: John Woods, Hasti Seifi

## In plain words

Robotics simulators such as RCareWorld let researchers design and test robot behaviors safely, but specifying those behaviors still requires programming skill, which blocks caregivers, clinicians, and other domain experts who know what they want but cannot write the code.

## AI summary

## Overview

**Research area:** Robotics — natural-language robot programming, LLM code generation, and program-synthesis / library learning.

**Technical level:** Intermediate. The paper is readable without deep robotics background, but assumes familiarity with LLMs, robot APIs, and the idea of program abstraction.

**Scope:** SkillComposer is an interactive system for a caregiving robot simulator that pairs an LLM generate-test loop with the Stitch library-learning algorithm to grow a reusable library of "macro" robot skills from accepted programs, evaluated with ablations over 20 prompts per environment and a 12-participant user study.

## What This Paper Is About

Robotics simulators such as RCareWorld let researchers design and test robot behaviors safely, but specifying those behaviors still requires programming skill, which blocks caregivers, clinicians, and other domain experts who know what they want but cannot write the code. LLMs help with simple commands, yet they often fail on multi-step tasks, need users to break goals into pieces, and treat every prompt as a fresh problem without reusing anything learned earlier. SkillComposer's goal is a programming interface that gets better with use: it generates robot programs, checks them before execution, and compresses recurring action sequences from successful programs into named skills that later prompts can call.

## Key Contributions

1. **SkillComposer system:** an interactive natural-language robot programming interface (locally hosted Gradio UI over the RCareWorld simulator) that combines a generate-test loop — a coder LLM plus an evaluator LLM plus a static validator — with an online macro-learning module.
2. **An adaptation of Stitch to imperative robot programs:** accepted JSON programs are converted into s-expressions with a right-nested `then` operator, Stitch proposes abstractions, and a reimplemented outer learning loop inlines nested abstractions, renames variables, and filters candidates so that only valid executable robot action sequences (at least two primitive calls, `then` used only as binary sequencing, only known primitives) are kept.
3. **Automatic documentation of learned skills:** each valid abstraction is turned into a function schema whose skill name, description, and parameter descriptions are written by a documentation LLM using the macro body plus contextual examples from the user's own prompts.
4. **Empirical evaluation:** ablation experiments across four system variants and two environments, plus a within-subjects user study with 12 participants comparing against a baseline coding LLM.

## Main Findings

- **The generate-test loop drives most of the reliability gain.** Evaluator-guided variants outperformed direct code generation in nearly every prompt category except basic object manipulation, where all variants performed well. Multi-step Human-Robot Interaction rose from 0.02 (Coder LLM) to 0.98 (Coder LLM + Eval LLM); Goal Planning from 0.08 to 0.68; Multi-Step Actions from 0.32 to 1.00; Spatial Reasoning from 0.24 to 0.76; Human-Robot Interaction from 0.14 to 0.94.
- **Correctness costs latency.** The generate-test loop introduced the largest latency cost, increasing generation time by roughly four to five times. For example, Multi-Step Human-Robot Interaction took 16.06 s with the Coder LLM and 53.95 s with Coder LLM + Eval LLM.
- **Macro learning mainly shortens programs, not raises success rates.** Macro-learning variants produced shorter programs on average, but macro learning alone (Coder LLM + Stitch) did not substantially beat the baseline — Goal Planning actually dropped to 0.00 success and Multi-Step Human-Robot Interaction to 0.04. The authors conclude macros work best paired with the generate-test loop.
- **SkillComposer trades some peak success for compactness.** On Goal Planning it reached 0.76 success with program length 6.17 versus 13.07 for Coder LLM + Eval LLM, and 86.00% macro usage versus 49.18 s runtime (vs 50.33 s). On Multi-Step Human-Robot Interaction it hit 1.00 success with length 5.50 and 55.82% macro usage. On Human-Robot Interaction it was slightly below the eval-only variant (0.86 vs 0.94), and on Spatial Reasoning it was lower (0.40 vs 0.76) with high variance (37.33 ± 43.87 macro usage).
- **The macro library grows with interaction.** In both environments, the number of learned macros generally increased as accepted programs accumulated, and macro usage tended to rise as more skills became available (Figure 5). Learned examples include `move_and_place_object` in Objects, and `place_object_on_plate` and `hand_object_to_user` in Feeding.
- **In the user study, SkillComposer matched or beat the baseline on two of three tasks with far fewer prompts.** Rearrange Objects: success 0.92 vs 0.50, prompts 1.9 vs 5.8, time 3:20 vs 6:09. Meal Preparation: success 0.92 vs 0.92, prompts 3.2 vs 8.2, time 3:59 vs 6:10. Feed Care Recipient was the exception: 0.67 vs 0.75 success, 4:16 vs 3:48 — the authors attribute this to the task needing small corrective movements near the end, where rapid interaction beat high-level planning.
- **Subjective ratings favored SkillComposer but were not statistically significant.** Mean SUS was 72.1 (σ = 20.1, "good" usability) versus 61.4 (σ = 24.6, "OK" usability), a 10.7-point gap with Cohen's d = 0.46 (moderate). Paired-samples t-tests found no significant difference on any subjective metric (all p > 0.05).
- **Participants overwhelmingly preferred the new system.** 11 of 12 preferred SkillComposer, citing better support for high-level multi-step instructions and lower effort. One participant reported needing "six or seven prompts" with the baseline for a single task; several described adapting their prompting style over time to the baseline's need for "very specific prompts."

## Methodology in Plain English

The system starts with just five primitive robot functions: `get_info`, `move_to_object`, `move_to_position`, `grasp_object`, and `release_object`. A user types a request in the chat panel; a coder LLM writes a candidate program as schema-constrained JSON function calls. Two checks follow. First, an evaluator LLM judges whether the program actually satisfies the request and, if not, writes natural-language feedback. Second, a deterministic static validator confirms the program is well-formed, uses only known functions, supplies valid arguments, and includes all required parameters. If either check fails, the feedback goes back to the coder and it revises — up to five iterations, after which the system reports an error instead of running something invalid. Splitting functionality (LLM) from structure (static checks) lets the evaluator focus only on whether the behavior is right.

Once a program passes both checks and executes in the simulator, it is converted to an s-expression and appended to a growing corpus. Stitch, a library-learning algorithm that searches for abstractions minimizing total corpus size, is run on that corpus with a maximum of 20 iterations and a maximum arity of five. Because Stitch targets functional languages, its raw output rarely maps to a valid robot action sequence, so the authors reimplemented the outer Stitch loop: recursively inline nested abstractions down to primitives, add fresh variables for missing arguments, filter out anything that is not a legal imperative program, rename variables to deduplicate, then pick the highest-ranked valid candidate and rewrite the corpus with it. This repeats until ten valid abstractions are learned or Stitch produces no more valid candidates, and the whole macro set is relearned after each accepted prompt so it reflects the full interaction history.

Each surviving macro is turned into a schema with inferred parameter names and types, and a documentation LLM writes the human-readable name and descriptions. The schema joins the primitive store, so future prompts see primitives and learned macros together. Before execution, macro calls are expanded back into primitives so the simulator still works.

For evaluation, the ablations compared four variants (Coder LLM; Coder LLM + Eval LLM; Coder LLM + Stitch; SkillComposer) on 20 prompts each in the Objects and Feeding environments, measuring success rate, program length, macro usage, and runtime, with each system-environment pair run five times and averaged because LLM output is stochastic. The user study was within-subjects with counterbalanced backend order: 12 participants (3 female, 9 male, ages 23–67) with none or beginner-level robotics/programming experience, upper-intermediate English, and normal or corrected-to-normal vision. Sessions lasted about 75 minutes, began with a practice task of moving a banana 25 cm to the right in the Bananas environment, then had participants complete rearranging objects, preparing a meal, and feeding the care recipient in the Feeding environment, followed by SUS and 7-point Likert ratings and a semi-structured interview. Participants were paid a $15 Amazon gift card and the study was IRB-approved.

## Why This Matters

**For research:** The paper connects programming-languages library learning (Stitch, DreamCoder) to interactive robot programming, showing that abstractions mined from a user's own accepted programs can be valid robot action sequences with automatically generated documentation — a different route from systems that rely on fixed hand-authored primitives or on explicit human teaching and curriculum design. It also quantifies a real trade-off: evaluator-guided repair buys reliability at roughly four to five times the latency, and macros buy compactness but only pay off when correctness is already handled.

- **Assistive and caregiving robotics:** feeding, object handover, and table rearrangement are precisely where caregivers and clinicians know the goal but not the code; the learned `hand_object_to_user` and `place_object_on_plate` macros are direct examples.
- **Household service robots:** participants themselves proposed extending the system to humanoid robots that retrieve objects.
- **Rapid simulation prototyping before physical deployment:** the generate-test loop catches invalid programs before they execute in RCareWorld, reducing risky trial and error.
- **Lowering the barrier for non-programmers:** the user study targeted novices, and the prompt-count reductions (5.8 to 1.9 on Rearrange Objects) map directly to reduced user effort.

**Industry relevance:** Any company shipping a natural-language interface to a robot or simulation — warehouse manipulation, eldercare assistance, lab automation — faces the same problem of fixed skill APIs and users forced to decompose tasks manually. SkillComposer suggests a low-cost way to let the skill library grow from real usage instead of from an engineering roadmap, with JSON-schema-constrained output making the generated programs checkable and safe to validate before execution.

## Future Directions

- **Retrieval-augmented skill selection.** The authors note that as the number of learned skills grows, the coder LLM's ability to use them may degrade, and propose retrieving only the most relevant learned skills from long interaction histories so the system scales to large libraries.
- **Managing the latency of evaluator-guided repair.** Generate-test costs roughly four to five times more time than direct generation, and several user-study participants asked for faster responses; how to keep reliability without that overhead is open.
- **Handling fine-grained corrective interaction.** The Feed Care Recipient task, where the baseline won on both success and time, shows the architecture favors high-level planning over small in-the-loop adjustments — a gap worth closing.
- **Broader task scope and interface work.** Participants suggested bimanual tasks such as pouring wine into a cup, more attractive UI, voice interaction, higher-frame-rate simulation preview, and clearer status notifications, none of which the current system supports.

## Target Audience

Robotics and HRI researchers working on natural-language interfaces and LLM-based robot programming; program-synthesis and library-learning researchers interested in applying abstraction discovery outside functional languages; assistive-robotics developers building caregiving or manipulation systems; and HCI researchers studying how novice end users prompt and adapt to LLM-driven tools. The paper is most useful to readers with some background in LLM code generation or robot APIs, though the problem framing and user-study results are accessible to newcomers.

## Authors’ abstract

Natural-language interfaces can lower the barrier to programming robots, but existing systems struggle when users request complex tasks. While large language models (LLMs) perform well with simple commands, they often struggle to generate code for multi-step tasks, decompose high-level instructions, or reuse prior solutions. We present SkillComposer, an interactive natural-language robot programming system for simulation environments that continually learns reusable program…

[The full abstract on arXiv](https://arxiv.org/abs/2608.14944)

[Read the original paper](https://arxiv.org/abs/2608.14944)

## Related papers

- [MistyPilot: Enabling Social-Robot Control through Multi-Agent LLM Skill Orchestration](https://robotics.world/paper/mistypilot-enabling-social-robot-control-through-multi-agent-llm-skill-2608.15549) 2026-08-16 · cs.RO · Key terms of the title in common
- [$R^3$: Training Robots to Reason in Natural Language via Reinforcement Learning](https://robotics.world/paper/r-3-training-robots-to-reason-in-natural-language-via-reinforcement-2608.26053) 2026-08-26 · cs.RO · Key terms of the title in common
- [Rapid On-Robot Learning for Dynamic Manipulation Skills: Robot Juggling](https://robotics.world/paper/rapid-on-robot-learning-for-dynamic-manipulation-skills-robot-juggling-2608.26800) 2026-08-27 · cs.RO · Key terms of the title in common
- [SUN: Agentic Robot Policy Learning with Persistent Task Programs](https://robotics.world/paper/sun-agentic-robot-policy-learning-with-persistent-task-programs-2608.31167) 2026-08-31 · cs.RO · Key terms of the title in common
- [HOST:Robots Acquire Manipulation Skills in Seconds from a Single Human Video](https://robotics.world/paper/host-robots-acquire-manipulation-skills-in-seconds-from-a-single-human-2607.20033) 2026-07-22 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/skillcomposer-learning-reusable-skills-for-natural-language-robot-2608.14944
