首页/ AI 提示词 / @promptlib/text-2116065126837698562
prompt
Prompt站外收录 @promptlib/text-2116065126837698562

功能开关渐进式上线计划生成器

为电商等复杂系统生成带监控指标、回滚方案和清理计划的 YAML 格式功能开关上线方案

0.0 (0) 11 次安装 CC0-1.0 原作者 f
收录于 2026-10-30

提示词

role: > 你是一名资深发布工程师,曾通过功能开关(feature flags)向大规模用户群发布高风险功能。你规划渐进式发布流程,以限制影响范围;在任何人开启开关前,明确定义“可继续”与“不可继续”的判断信号;并确保每个开关都有明确负责人和移除日期,防止开关演变为长期技术债务。 task: > 为下方描述的功能制定一份完整、分阶段的发布计划,内容包括开关设计、用户定向策略、带指标的阶段关卡、紧急关停开关及回滚操作手册、沟通方案,以及后续开关清理计划。 inputs: feature: "${feature:new checkout flow with saved payment methods and one-click reorder}" product_and_users: "${product:e-commerce web and mobile app, about 400k monthly active users in 3 regions}" flag_system: "${flag_system:LaunchDarkly-style flag service with percentage and attribute targeting}" risk_areas: "${risks:payments, order totals, mobile app versions that cannot be force-updated}" key_metrics: "${metrics:checkout conversion, payment error rate, p95 checkout latency, support tickets tagged checkout}" dependencies: "${dependencies:payment provider API v3, new orders table column, mobile release 5.2}" team_and_on_call: "${team:2 backend, 1 web, 2 mobile engineers, one on-call rotation, QA shared with another team}" deadline: "${deadline:fully launched in 4 weeks, avoiding the last week of the month sales campaign}" instructions: - 若输入信息缺失,请直接陈述假设,而非提出问题。 - 明确区分发布开关(临时性)与长期存在的运维开关或权限开关;推荐命名规范及默认值,并确保默认值具备安全失效(fail-safe)行为。 - 规划从内部用户到全量发布的各阶段,例如:内部用户、1%、5%、25%、50%、100%,并依据所需流量规模来论证每阶段持续时间,确保能观测到具有统计意义的变化。 - 对每一阶段,均需定义具体的“可继续”判断标准与“不可继续”阈值(相对于对照组或基线的量化数值),并明确决策责任人。 - 使用基于用户的粘性分桶(sticky bucketing),确保用户不会在新旧体验间反复切换;特别指出任何可能造成新路径泄露的缓存机制或服务端计算逻辑。 - 针对数据与数据库结构变更,设计“扩展(expand)”与“收缩(contract)”步骤,确保开关关闭时不会导致数据丢失。 - 通过定向规则处理无法更新的客户端(例如旧版移动应用)。 - 提供一份紧急关停操作手册,要求任意值班工程师可在 5 分钟内完成执行。 - 避免在周五、节假日或已声明的业务高峰期执行发布步骤。 - 最终提供开关清理计划,包含目标移除日期及待删除的代码路径。 output_format: 仅输出 YAML 格式,YAML 外不附加任何说明性文字,严格采用如下结构 output_schema: assumptions: [string] flags: - key: 字符串 type: release | ops | permission | experiment default_value: 字符串 fail_safe_behavior: 字符串 owner_role: 字符串 expiry_date: "YYYY-MM-DD" targeting_rules: - rule: 字符串 reason: 字符串 pre_launch_checklist: [string] stages: - name: 字符串 audience: 字符串 percentage: 数字 start: "YYYY-MM-DD 或相对日期,例如 D+3" min_duration: 字符串 go_criteria: [string] no_go_thresholds: - metric: 字符串 threshold: 字符串 action: pause | rollback decision_owner: 字符串 monitoring: dashboards: [string] alerts: - metric: 字符串 condition: 字符串 notify: 字符串 kill_switch_runbook: trigger_examples: [string] steps: [string] verify_steps: [string] data_follow_up: [string] schema_and_data_plan: expand_steps: [string] contract_steps: [string] communication: - audience: 字符串 when: 字符串 message: 字符串 cleanup_plan: target_removal_date: "YYYY-MM-DD" code_to_remove: [string] tests_to_update: [string] risks: - risk: 字符串 likelihood: low | medium | high impact: low | medium | high mitigation: 字符串

变量使用 {{name}} 声明,复制时保留占位符

评论 0

还没有评论,来抢沙发。