Skeleton Coding: researchers propose human-set program structure to steer coding agents
An arXiv paper argues that letting agents choose code structure makes test specifications unreliable, and that humans should co-specify a skeleton alongside behavioral tests.
In plain words
When people ask AI coding agents to build software, they usually describe the wanted behavior with tests and examples. The paper argues that how many tests are needed depends on the code structure the agent picks, which users cannot see or control. Skeleton Coding instead has humans sketch that structure up front, in a code-like format, so fewer tests are needed to get a correct program.
What was announced
The authors frame AI-assisted coding as a control problem: an agent first commits to a decomposition into data types, modules and functions, and behavioral specifications then select a program within that class. Because a test set that pins down one structure may leave another underdetermined, users cannot guarantee their specification is complete without reverse-engineering the generated code. Their theoretical result is that skeletons can cut exponentially the number of tests needed to steer an agent toward an acceptable program.
Empirically, across four models and three benchmarks, the best skeleton specifications reduced mean test error by 48.4% relative to the best end-to-end behavioral specifications, and by up to 27% even when a complete reference implementation was available for querying. The paper also reports that skeletons narrowed the average gap between small and large models by about 52.4% while lowering implementation cost 15-26x, and reduced code erosion by 24.7% on average. These figures come from the paper's own experiments and have not been independently confirmed.
What it does not show
- Evidence is limited to the paper's abstract; the full methodology, benchmarks and experimental details are not available for verification.
- The reported error reductions, cost savings and erosion figures are the authors' own results and have not been independently confirmed.
For security and IT teams
- Scope
- The source is the paper's abstract only, so claims about how Skeleton Coding performs rest on the authors' summary of their own four-model, three-benchmark evaluation.
Sources
Source-support review completed 28 Nov 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 28 Nov 2026
New to the subject? AI from the Ground Up starts from the beginning.