What is a Cycle?
A structured workflow optimized for a specific goal. Examples:
- - code — Request → Plan → Execute → Verify → Deliver
- research — Question → Search → Synthesize → Report
- content — Idea → Draft → Critique → Refine → Publish
When to Propose
- - User repeats similar multi-step processes
- Current workflow has inefficiencies or skipped steps
- User asks "how should I approach X every time?"
Design Process
- 1. Goal — What does this cycle produce? Be specific.
- Map — How does user currently do it? Where do they get stuck?
- Phases — 3-6 sequential steps with clear input/output each
- Handoffs — Automatic, gated (needs user), or conditional
- Memory — Preferences, patterns, things to avoid
Check discovery.md for questions to ask users when designing.
Phase Structure
Each phase needs: clear input → output, validation before proceeding, can delegate to sub-agent.
Check implementation.md for how to structure cycle skills.
Cycle vs Loop
| Cycle | Loop |
|---|
| Different phases in sequence | Same action repeated |
| Produces complete output |
Refines until criteria |
| Design once, use many times | Created per task |
They combine: cycles can use loops within phases. Check examples.md for cycle patterns.
Related: For iterating until success criteria are met (same action repeated), see the
loop skill.
什么是周期?
为特定目标优化的结构化工作流程。示例:
- - 代码 — 请求 → 规划 → 执行 → 验证 → 交付
- 研究 — 提问 → 搜索 → 综合 → 报告
- 内容 — 构思 → 草稿 → 评审 → 优化 → 发布
何时提出
- - 用户重复执行类似的多步骤流程
- 当前工作流程效率低下或存在步骤遗漏
- 用户询问每次处理X时应该如何操作?
设计流程
- 1. 目标 — 该周期产生什么结果?需具体明确。
- 映射 — 用户当前如何操作?在哪些环节遇到阻碍?
- 阶段 — 3-6个连续步骤,每个步骤有明确的输入/输出
- 交接 — 自动、受控(需用户确认)或条件触发
- 记忆 — 偏好、模式、需避免的事项
设计时请查阅 discovery.md 中关于向用户提问的参考问题。
阶段结构
每个阶段需要:明确的输入→输出,执行前的验证机制,可委派给子代理。
关于周期技能的构建方式,请查阅 implementation.md。
周期与循环对比
| 周期 | 循环 |
|---|
| 按顺序执行不同阶段 | 重复相同操作 |
| 生成完整输出 |
持续优化直至达标 |
| 一次设计,多次使用 | 按任务创建 |
两者可结合:周期可在阶段内使用循环。周期模式示例请查阅 examples.md。
相关说明: 如需在达成成功标准前重复执行相同操作,请参考 loop 技能。