# 告别单体Prompt：模块化构建可扩展AI Agent

Original title: Building scalable AI agents with modular prompt transpilation

> Hacker News story 48936621 · language: zh · submitted 2026-07-16
> Web version: https://zeli.app/zh/story/48936621
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 8 · by [yruzin](<https://news.ycombinator.com/user?id=yruzin>) · 💬 2
[original](<https://developers.googleblog.com/building-scalable-ai-agents-with-modular-prompt-transpilation/>) · [HN discussion](<https://news.ycombinator.com/item?id=48936621>)

## Summary

刚开始构建AI Agent时，单体System Prompt或许够用，但一旦进入生产环境，随着安全策略、领域规则和格式要求的层层叠加，单体文件就会迅速失控。这不仅是Prompt工程问题，更是经典的软件工程扩展难题。文章提出将Prompt视为构建产物，通过模块化技能文件和Prompt Transpilation技术，实现依赖解析、静态验证和CI/CD集成。这种架构不仅能避免复制粘贴导致的逻辑漂移，还能让Agent在运行时动态加载所需技能，甚至自主提出代码变更建议。当AI Agent深入关键工作流，其指令层必须像传统软件一样经过严格的构建、验证和版本管理。

## Key quote

> 在生产规模下，Prompt的可维护性直接决定了Agent的可靠性。

---

## Cite

- Page: https://zeli.app/zh/story/48936621
- Date: 2026-07-16
- Source: developers.googleblog.com (https://developers.googleblog.com/building-scalable-ai-agents-with-modular-prompt-transpilation/)
- Hacker News: https://news.ycombinator.com/item?id=48936621

## Other languages

- en: https://zeli.app/story/48936621 · markdown: https://zeli.app/story/48936621.md
- ja: https://zeli.app/ja/story/48936621 · markdown: https://zeli.app/ja/story/48936621.md
- ko: https://zeli.app/ko/story/48936621 · markdown: https://zeli.app/ko/story/48936621.md
- de: https://zeli.app/de/story/48936621 · markdown: https://zeli.app/de/story/48936621.md
- es: https://zeli.app/es/story/48936621 · markdown: https://zeli.app/es/story/48936621.md
