Auto-sync: 2026-04-21 17:12
This commit is contained in:
@@ -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 收集必要变量
|
||||
Reference in New Issue
Block a user