land-and-deploy

运维部署 社区 v1.0.0
解读按原文结构重写,命令、链接、术语均保留;右侧可核对作者原始 SKILL.md

设计思路

land-and-deploy 是 gstack 的「合并 + 部署 + 验证」一体化 skill——把 PR 合并、CI 等待、merge queue、deploy、staging、canary 验证 串成一条线,并在每一步给用户讲清楚发生了什么。设计哲学最重要的两条:Auto-detect everything(PR 号 / 合并方式 / 部署策略 / 项目类型 / 队列 / staging 全自动识别,只在真推断不出时才问);Narrate the journey(用户永远知道刚发生了什么、正在发生什么、接下来要发生什么——绝不静默间隔)。

模式分级

  • First run = teacher mode:把每一步都讲清楚——这条 check 在做什么、为什么重要、用户的基础设施长什么样、用户确认后再继续。靠透明度建立信任。
  • Subsequent runs = efficient mode:简短状态更新,不重新解释;用户已经信任工具——把活干了报结果就行。

目标:初次用觉得「这工具好周全,我信」;老用户觉得「真快、就好使」。

终态 verdict

  • DEPLOYED AND VERIFIED:「Your changes are live and verified. Nice ship.」
  • DEPLOYED (UNVERIFIED):合了应该在部署,但没法验——「check it manually when you get a chance.」
  • REVERTED:merge 被 revert 了——PR 分支还在,可以修了重 ship。

后续建议

  • 验过生产 URL → 提议跑 /canary <url> 做 10 分钟扩展监控
  • 收到性能数据 → /benchmark <url> 深入分析
  • 文档需更新 → /document-release 同步 README / CHANGELOG

重要规则

  • Never force push——用 gh pr merge(安全的)
  • Never skip CI——挂了就停下来解释为什么
  • Auto-detect everything——只在确实推断不出时问
  • Poll with backoff——别打死 GitHub API,30s 间隔配合理超时
  • Revert is always an option——每个失败点都给 revert 这条逃生路
  • Single-pass verification——本 skill 跑一次;持续监控走 /canary
  • Clean up——合并后 --delete-branch 删 feature 分支

Telemetry 摘要

跑完 append 一条结构化记录:{merge_status, ci_wait_s, queue_s, deploy_s, staging_s, canary_s, total_s, review_status},让 retro 能消费。

适合谁

  • gstack 项目的合并 / 发布主流程使用者
  • 想要「点一下、自动 land + deploy + verify」的工程负责人
  • 给初次用 gstack 的同事演示发布流程的人

不适合

  • 仓库不在 GitHub / 没接 gh CLI——本 skill 依赖
  • 部署体系完全外部(手工 ssh)——自动检测识别不到

配套

ship(仅 push + PR,不含 land)、canary(10 分钟扩展监控)、landing-report(land 前看队列)、document-release(doc 同步)、benchmark(深度性能分析)。

流狐档案 作者与许可取自来源;运行、权限和网络为流狐检测或估算
流狐分类
运维部署
作者声明 Agent
未找到明确声明;不据此推断已兼容或已测试
静态检查
88 / 100 · 启发式扫描,不代表运行安全
作者 / 版本 / 许可
@garrytan · v1.0.0 · 未声明 license
流狐 Token 估算
较高消耗
流狐接入估算
需手动接入
是否需要外部 API Key
需要 · Vendor-specific
检测到的系统要求
macOS · Linux · Windows
底层运行要求
Bun
检测到的文件与系统行为
  • 只读
  • 允许写入 / 修改
  • Shell 执行
检测到的网络行为
允许外网请求
安装命令数
无(仅作为资料)

档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。

需要注意: 未限定 allowed-tools,默认拥有全部工具权限。

输出预览 land-and-deploy.preview
# Writing Style (skip entirely if EXPLAINLEVEL: terse appears in the preamble echo OR the user's current message explicitly requests terse / no-explanations output)

- Gloss curated jargon on first use per skill invocation, even if the user pasted the term.
- Frame questions in outcome terms: what pain is avoided, what capability unlocks, what user experience changes.
- Use short sentences, concrete nouns, active voice.
- Close decisions with user impact: what the user sees, waits for, loses, or gains.
- User-turn override wins: if the current message asks for terse / no explanations / just the answer, skip this section.
- Terse mode (EXPLAIN_LEVEL: terse): no glosses, no outcome-framing layer, shorter responses.

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。