Open access · No author fees · Publish, then review Submit a paper· Volunteer to review

Annals of Open Public ScienceAOOPS

Artificial intelligence: theory and applications

Research Notes · Volume 1, Issue 1 (2026) · Published

Contract-Guided Generation and Verification of Reusable Data-Analysis Skills

Yongchen Tan1, Wentao Tao1, Mingwang Zhang1
1 Jinan Yinhua Information Technology Co., Ltd., Jinan, Shandong, China  ·  root1223@outlook.com

Abstract. Large language model (LLM) agents can generate executable data-analysis code, but a procedure that succeeds on one dataset may depend on column meanings, value domains, sample sizes, and missingness patterns that do not hold on another. Replacing column names with parameters leaves many of these dependencies implicit. This paper presents Cross-Dataset Reusable Skill (CDR-Skill), a framework that represents reusable analysis procedures through semantic bindings, input preconditions, output postconditions, and explicit policies. Source execution evidence guides candidate selection; contract construction exposes dataset-specific assumptions; and static review and boundary checks govern admission. At invocation, semantic retrieval identifies candidate skills and contract screening determines whether the current input is admissible. An IQR capping and missing-value procedure illustrates the framework through six previously recorded synthetic cases. All six passed their listed assertions, while a diagnostic substitution shows that the same checks can also accept an incorrect transformation. The analysis distinguishes successful execution, satisfaction of selected assertions, and adequate specification of analytical behavior. Evidence is limited to one function and its six recorded cases.

Keywords: large language models; data analysis; reusable skills; data contracts; software verification; boundary testing
Published: 2026-10-25

Download PDF (8 pages) How to cite

DOI: 10.5281/zenodo.23637989

Data and code availability

The implementation described by Algorithms 1 and 2 is available at https://github.com/PRCABK/cdr-skill-demo.

Conflicts of interest

The authors declare no competing financial or non-financial interests.

Use of generative AI

A generative AI tool was used for language editing of the manuscript. The authors designed the method, implemented the code, and carried out the evaluation, and take full responsibility for the published version.

Funding

This work received no specific grant from any funding agency.

Ethics approval

Not applicable. This study involves no human participants and no animals.

Originality

The authors confirm that this manuscript is original, has not been published previously, and is not under consideration by any other journal.

How to cite

Tan, Y., Tao, W., & Zhang, M. (2026). Contract-Guided Generation and Verification of Reusable Data-Analysis Skills. Annals of Open Public Science, 1(1), 14–21. https://doi.org/10.5281/zenodo.23637989

Licence

© 2026 The Authors. Published by Annals of Open Public Science under a CC BY 4.0 licence.

Open reviews

This article is published and open to public peer review for one week from publication. Reviews from readers with relevant expertise are welcome and will be published here, signed or anonymous as the reviewer prefers. If open review shows that the central findings do not hold, the article is retracted and the retraction notice is published with it.

To submit a review, email editor@aoops.org with the subject line AOOPS review of 2026-002. Say whether you want your review signed or anonymous. Reviews are checked for relevance and published on this page; we do not edit their substance.