Auto-sync: 2026-04-21 17:12

This commit is contained in:
2026-04-21 17:12:45 +08:00
parent 914c8f6925
commit 0fe7ba237f
1888 changed files with 220 additions and 68174 deletions

View File

@@ -1,34 +0,0 @@
---
id: generator
title: "Generator"
type: concept
tags: [Agent, Skill, 设计模式]
sources: [Google-5-Agent-Skill-design-patterns-2026-03-19]
last_updated: 2026-04-17
---
## Summary
从模板生成结构化输出的 Agent Skill 设计模式,解决 agent 输出格式不一致的问题。
## Definition
Generator 利用"填空"流程,通过模板和样式指南强制一致的输出格式。
## Components
- **assets/**:存放输出模板
- **references/**:存放样式指南
- **SKILL.md**:扮演项目经理角色
## Workflow
1. 加载模板
2. 读取样式指南
3. 向用户询问缺失的变量
4. 填充文档
## Use Cases
- 生成统一的 API 文档
- 标准化 commit 信息
- 脚手架项目结构
## Related Concepts
- [[Agent-Skill-设计模式]]
- [[Inversion]]:可在最开始依赖 Inversion 收集必要变量