CICD
Structured guidance for CI/CD (continuous integration and delivery): confirm triggers, propose the stages below, and adapt if the user wants a lighter pass.
When to Offer This Workflow
Trigger conditions:
- - User mentions CI/CD, CICD, pipelines, or closely related work
- They want a structured workflow rather than ad-hoc tips
- They are preparing a review, rollout, or stakeholder communication
Initial offer:
Explain the four stages briefly and ask whether to follow this workflow or work freeform. If they decline, continue in their preferred style.
Workflow Stages
Stage 1: Clarify context & goals
Anchor on pipeline stages and artifacts. Ask what success looks like, constraints, and what must not break. Capture unknowns early.
Stage 2: Design or plan the approach
Translate goals into a concrete plan around secrets, permissions, and reproducibility. Compare alternatives and explicit trade-offs; avoid implicit assumptions.
Stage 3: Implement, validate, and harden
Execute with verification loops tied to deployment strategies and approvals. Prefer small steps, measurable checks, and rollback points where risk is high.
Stage 4: Operate, communicate, and iterate
Close the loop with observability and rollback hooks: monitoring, documentation, stakeholder updates, and lessons learned for the next cycle.
Checklist Before Completion
- - Goals and constraints are explicit for CICD
- Risks and trade-offs are stated, not hand-waved
- Verification steps match the change’s impact (tests, canary, peer review)
- Operational follow-through is covered (monitoring, docs, owners)
Tips for Effective Guidance
- - Be procedural: stage-by-stage, with clear exit criteria
- Ask for missing context (environment, scale, deadlines) before prescribing
- Prefer checklists and concrete examples over generic platitudes
- If the user declines the workflow, switch to freeform help without lecturing
Handling Deviations
- - If the user wants to skip a stage: confirm and continue with what they need.
- If context is missing: ask targeted questions before strong recommendations.
- Prefer concrete examples, trade-offs, and verification steps over generic advice.
Quality Bar
- - Each recommendation should be actionable (what to do next).
- Call out failure modes relevant to CI/CD (security, scale, UX, or ops).
- Keep tone direct and respectful of the user’s time.
CICD
针对 CI/CD(持续集成与持续交付)的结构化指导:确认触发条件,建议以下阶段,若用户希望简化流程则进行调整。
何时提供此工作流
触发条件:
- - 用户提及 CI/CD、CICD、流水线或密切相关的工作
- 用户需要结构化工作流而非临时建议
- 用户正在准备评审、发布或利益相关方沟通
初始建议:
简要说明四个阶段,并询问是否遵循此工作流或自由进行。若用户拒绝,则按其偏好的风格继续。
工作流阶段
阶段 1:明确背景与目标
聚焦于流水线阶段与产物。询问成功的标准、约束条件以及哪些环节不可出错。尽早识别未知因素。
阶段 2:设计或规划方案
将目标转化为围绕密钥、权限与可复现性的具体计划。比较备选方案并明确权衡取舍,避免隐含假设。
阶段 3:实施、验证与加固
通过关联部署策略与审批的验证循环来执行。优先采用小步骤、可量化检查以及高风险场景的回滚点。
阶段 4:运维、沟通与迭代
通过可观测性与回滚机制形成闭环:监控、文档、利益相关方更新以及下一周期的经验总结。
完成前检查清单
- - CICD 的目标与约束已明确
- 风险与权衡已陈述,而非含糊带过
- 验证步骤与变更影响相匹配(测试、金丝雀发布、同行评审)
- 运维跟进已覆盖(监控、文档、负责人)
有效指导技巧
- - 按流程推进:分阶段进行,并明确退出标准
- 在给出建议前,先询问缺失的背景信息(环境、规模、截止日期)
- 优先使用检查清单和具体示例,而非泛泛之谈
- 若用户拒绝工作流,则切换为自由帮助模式,避免说教
偏差处理
- - 若用户希望跳过某个阶段:确认后按其需求继续
- 若背景信息缺失:在给出强烈建议前先提出针对性问题
- 优先提供具体示例、权衡取舍和验证步骤,而非通用建议
质量标准
- - 每条建议应可操作(明确下一步行动)
- 指出与 CI/CD 相关的故障模式(安全、规模、用户体验或运维)
- 保持语气直接,尊重用户时间