arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.05720cs.SEcs.AI
收藏

微技能架构:一种面向AI原生代码生成的模块化技能驱动框架

Microskill Architecture: A Modular Skill-Driven Framework for AI-Native Code Generation

Artificial Intelligence Laboratory at AriooBarzan(AriooBarzan人工智能实验室);Engineering Team, Shiraz, Iran(伊朗谢尔兹工程团队)

Mohammad Zare, Omid Abdolrahmani

AI总结:

本文提出微技能架构,通过将知识封装为原子技能胶囊并动态选择相关胶囊,解决AI代码生成中的上下文窗口管理问题,显著降低token消耗、提高编译成功率并消除架构违规。

摘要:

大型语言模型和AI编码代理已经重塑了软件开发,但完全AI原生系统的路径面临结构性挑战。其中最主要的是在保持准确性和效率的同时管理上下文窗口。当开发者将完整的项目文档和代码注入模型内存时,模型会丢失序列中间的信息,token成本激增,架构发生漂移。本文提出微技能架构:一种受微服务启发的模块化设计范式,应用于知识封装而非服务分解。该架构不是将整个代码库提供给代理,而是将知识划分为原子化、范围明确的技能胶囊,并由动态路由器仅选择语义相关的胶囊来执行任务。我们将上下文分配形式化为在token预算约束下基于语义相关性的约束优化。一个针对具有十五个复杂特性的企业内容管理系统的实证案例研究表明,微技能将token消耗降低了90%以上,首次尝试编译成功率几乎翻倍,完全消除了架构违规,并通过自学习机制实现了七个新技能胶囊的自主提取和注册。这些发现表明,微技能架构为构建更高效、更可靠且能够随时间演进的AI原生开发系统提供了可扩展的基础。

英文摘要:

Large language models and AI coding agents have reshaped software development, but the path to fully AI-native systems faces structural challenges. Chief among them is managing context windows without losing accuracy or efficiency. When developers inject full project documentation and code into a model's memory, the model loses mid-sequence information, token costs spiral, and architecture drifts. This paper presents MicroSkill Architecture: a modular design paradigm inspired by microservices, applied to knowledge encapsulation instead of service decomposition. Instead of feeding an agent the entire codebase, the architecture partitions knowledge into atomic, sharply scoped skill capsules, and a dynamic router selects only semantically relevant capsules for the task. We formally model context allocation as constrained optimization over semantic relevance subject to a token budget. An empirical case study an enterprise content management system with fifteen complex features shows that MicroSkill cuts token consumption by over 90%, nearly doubles first-try compilation success rates, eliminates architectural violations entirely, and enables autonomous extraction and registration of seven new skill capsules via a self-learning mechanism. These findings suggest MicroSkill Architecture offers a scalable foundation for building AI-native development systems that are more efficient, more reliable, and capable of evolving over time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑