adapt-workflow

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

MANDATORY PREPARATION

强制准备步骤

Invoke {{command_prefix}}agent-workflow — it contains workflow principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no workflow context exists yet, you MUST run {{command_prefix}}teach-maestro first. Additionally gather: what the workflow is being adapted to.

Adapt a working workflow for a different context.
调用{{command_prefix}}agent-workflow — 它包含了工作流原则、反模式以及上下文收集协议。在继续操作前请遵循该协议 — 如果目前还不存在工作流上下文,你必须先运行{{command_prefix}}teach-maestro。此外还需要收集:该工作流要适配的目标信息。

针对不同场景适配可用的工作流。

Adaptation Assessment

适配评估

DimensionCurrentTargetImpact
Model provider??Prompt format, capabilities, pricing
Model tier??Context window, reasoning ability
Deployment env??Latency, availability, compliance
Team structure??Monitoring, escalation, ownership
Data sensitivity??Guardrails, logging, access controls
维度当前值目标值影响
模型提供商??Prompt格式、能力、定价
模型层级??上下文窗口、推理能力
部署环境??延迟、可用性、合规性
团队架构??监控、上报流程、所有权
数据敏感度??防护规则、日志、访问控制

Provider Adaptation

提供商适配

  • Prompt format: Adjust for provider-specific features
  • Context limits: Resize context budget for different window sizes
  • Capability gaps: Identify features available in one provider but not another
  • Pricing model: Recalculate cost estimates
  • API differences: Update tool calling interfaces, error handling, retry logic
  • Prompt格式: 针对提供商专属特性调整
  • 上下文限制: 根据不同的窗口大小调整上下文预算
  • 能力缺口: 识别不同提供商之间存在的特性差异
  • 定价模型: 重新计算成本预估
  • API差异: 更新工具调用接口、错误处理、重试逻辑

Environment Adaptation

环境适配

  • Latency requirements: Adjust timeout values, caching strategy
  • Compliance: Add or adjust guardrails, logging, and data handling
  • Scale: Adjust concurrency limits, batch sizes
  • Monitoring: Adapt alerting thresholds
  • 延迟要求: 调整超时值、缓存策略
  • 合规性: 新增或调整防护规则、日志以及数据处理逻辑
  • 规模: 调整并发限制、批量大小
  • 监控: 调整告警阈值

Adaptation Checklist

适配检查清单

  • All provider-specific APIs updated
  • Context budget recalculated for target model
  • Cost estimates updated with target pricing
  • Guardrails adjusted for target compliance requirements
  • Tests updated and passing in target environment
  • Documentation updated for target team
  • 所有提供商专属API已更新
  • 已针对目标模型重新计算上下文预算
  • 已使用目标定价更新成本预估
  • 已针对目标合规要求调整防护规则
  • 测试已更新且在目标环境中通过
  • 已针对目标团队更新文档

Recommended Next Step

推荐后续步骤

After adaptation, run
{{command_prefix}}evaluate
to verify the workflow performs correctly in the target environment, then
{{command_prefix}}diagnose
for a full health check.
NEVER:
  • Assume prompts work identically across providers
  • Copy production config to development without adjusting guardrails
  • Adapt without updating the evaluation suite
  • Skip cost re-estimation
适配完成后,运行
{{command_prefix}}evaluate
验证工作流在目标环境中运行正常,随后运行
{{command_prefix}}diagnose
进行完整健康检查。
绝对禁止:
  • 假设Prompt在不同提供商之间的表现完全一致
  • 未调整防护规则就将生产配置复制到开发环境
  • 不更新评估套件就进行适配
  • 跳过成本重新预估