Token导航 LogoToken导航TokenDH.com
开发只读clawhub未标认证来源可访问clear审计提醒

tonic-system-deploy补品系统部署

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

11,361

周安装

488

GitHub Stars

公开资料未说明

下载量

3,982
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tonic-system-deploy(补品系统部署)
来源仓库:https://github.com/tonylnng/tonic-system-deploy
安装命令:
openclaw skills install tonic-system-deploy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install tonic-system-deploy

简介

Tonic-System-Deploy 提供 UAT 到 PROD 环境的标准化软件部署工作流支持。

  • 适用于 OpenClaw 中需要规划错误修复部署或管理多环境发布流程的系统运维场景。
  • 支持检查配置、整理步骤、分析资源状态和生成排障思路。
  • 通过 clawhub 安装后调用,需明确目标环境与账号权限。
  • 涉及生产变更时应先确认影响范围,避免误操作导致服务中断。

SKILL.md

name
tonic-system-deploy
description
>

tonic-system-deploy

Software Deployment Workflow — Dual-Environment (UAT + PROD)


Background & Design Rationale

This skill was designed for systems where:

  • Two live environments co-exist: UAT (testing/staging) and PROD (production)
  • Versions can diverge: UAT may be ahead of PROD by several releases
  • Deployments are nightly: automated pipelines run at scheduled times
  • Human approval is mandatory: no code goes to PROD without explicit admin sign-off
  • Bugs require structured triage: severity, origin environment, and version state all affect the deploy path

The key insight: choosing the wrong deploy flow when versions are mismatched can introduce regressions. Flow 1 assumes parity; Flow 2 handles divergence safely.


Prerequisites — Before Choosing a Flow

Step 0: Version Check (always do this first)

QuestionAnswer →
Are UAT and PROD on the same version?Flow 1
Is UAT ahead of PROD by any version?Flow 2
Is this a critical/high severity bug?Emergency Hotfix (bypass pipeline)
Do you need to undo a bad deploy?Rollback

Version Mismatch Decision Tree

Bug found
    │
    ├─ severity = critical/high?
    │       └─ YES → Emergency Hotfix (skip pipeline)
    │
    ├─ UAT version == PROD version?
    │       └─ YES → Flow 1
    │
    └─ UAT version > PROD version?
            └─ YES → Flow 2

Flow 1 — UAT-First (Versions Aligned)

Scenario: Bug found in UAT or PROD when both environments run the same version. Goal: Fix → validate in UAT → promote to PROD. Result: UAT and PROD converge to same patched version.

Timeline

Bug reported
    │
    │ 🧑 HUMAN: Admin reviews + confirms bug (status: confirmed)
    ▼
[confirmed] — severity: low/medium only
    │
    │ 🤖 SYSTEM: Scheduled deploy time T1 (e.g. 20:00)
    │   - AI analyses root cause + records fix plan
    │   - Deploys fix to UAT environment
    │   - Status → deployed_uat
    ▼
[deployed_uat]
    │ 📲 Telegram: "Fix deployed to UAT. Please validate."
    │
    │ 🧑 HUMAN: Admin logs into UAT, validates fix
    │   - Runs through affected workflows
    │   - Confirms no regression
    │   - Clicks "Approve PROD Deploy" → status: pending_prod
    ▼
[pending_prod]
    │ 📲 Telegram: "Queued for PROD at T2."
    │
    │ 🤖 SYSTEM: Scheduled deploy time T2 (e.g. 22:00)
    │   - Deploys fix to PROD environment
    │   - Status → deployed_prod
    ▼
[deployed_prod] ✅ Flow 1 Complete
    │ 📲 Telegram: "Deployed to PROD. Flow 1 complete."

Human Checkpoints (Flow 1)

CheckpointWhoActionGate Condition
Confirm bugAdmin/ManagerMark as confirmedBug is reproducible and valid
UAT validationAdmin/ManagerClick "Approve PROD Deploy"Fix works, no regression in UAT

Automation Nodes (Flow 1)

TimeNodeInput StatusOutput StatusAction
T1Phase 1confirmed/planneddeployed_uatAI analysis + UAT deploy
T2Phase 2pending_proddeployed_prodPROD deploy

Flow 2 — PROD-First (Versions Misaligned)

Scenario: Bug found in PROD when UAT is ahead by one or more versions. Why not Flow 1? Validating a PROD fix in a newer UAT environment risks false confidence — the fix may behave differently on the older PROD codebase. Goal: Fix PROD directly → validate in PROD → cherry-pick back to UAT. Result: PROD gets the fix immediately; UAT gets it merged back after PROD validation.

Timeline

Bug found in PROD (UAT is ahead)
    │
    │ 🧑 HUMAN: Admin reviews + confirms bug
    │   - Selects: found_in_env = prod, fix_flow = flow2
    │   - Status → confirmed
    ▼
[confirmed]
    │
    │ 🤖 SYSTEM: Scheduled deploy time T1 (e.g. 20:00)
    │   - AI analyses root cause + records fix plan
    │   - Skips UAT entirely
    │   - Queues for PROD deploy → status: pending_prod
    ▼
[pending_prod]
    │ 📲 Telegram: "PROD deploy queued for T2 (Flow 2)."
    │
    │ 🤖 SYSTEM: Scheduled deploy time T2 (e.g. 22:00)
    │   - Deploys fix to PROD
    │   - Status → deployed_prod
    ▼
[deployed_prod]
    │ 📲 Telegram: "Deployed to PROD. Please validate PROD. Approve UAT merge when ready."
    │
    │ 🧑 HUMAN: Admin validates fix in PROD
    │   - Confirms fix works on production data/config
    │   - No regression in PROD workflows
    │   - Clicks "Approve Merge UAT" → status: pending_uat_merge
    ▼
[pending_uat_merge]
    │ 📲 Telegram: "UAT merge queued for T2 tonight."
    │
    │ 🤖 SYSTEM: Next T2 cycle (22:00)
    │   - Deploys/merges fix into UAT environment
    │   - Status → uat_merged
    ▼
[uat_merged] ✅ Flow 2 Complete
    │ 📲 Telegram: "Merged to UAT. Flow 2 complete."

Human Checkpoints (Flow 2)

CheckpointWhoActionGate Condition
Confirm bugAdmin/ManagerMark as confirmed + select flow2Bug confirmed in PROD, version mismatch verified
PROD validationAdmin/ManagerClick "Approve Merge UAT"Fix verified in PROD, no regression

Automation Nodes (Flow 2)

TimeNodeInput StatusOutput StatusAction
T1Phase 1confirmed/plannedpending_prodAI analysis (skip UAT)
T2Phase 2apending_proddeployed_prodPROD deploy
T2 (next)Phase 2bpending_uat_mergeuat_mergedUAT deploy/merge

Flow 2 Important Note

T2 deadline matters. If admin approves UAT merge before T2 on the same day, the merge runs that night. If approved after T2, it runs the following night's T2. Always communicate the cutoff time to the team.

Status Reference

StatusFlowColourMeaningNext Action
submittedBothGreyBug reported, awaiting reviewAdmin confirms/rejects
confirmedBothBlueValid bug, enters pipelineT1 auto-process
analyzingBothPurpleAI analysis running (transient)Auto → planned
plannedBothIndigoAI fix plan recordedT1 auto-deploy
deployed_uatFlow 1CyanUAT deployed, awaiting human validationAdmin approves PROD
pending_prodBothYellowQueued for PROD at next T2T2 auto-deploy
deployed_prodBothGreenPROD deployedFlow1: done; Flow2: admin approves UAT merge
pending_uat_mergeFlow 2PurpleQueued for UAT merge at next T2T2 auto-merge
uat_mergedFlow 2TealUAT updated with PROD fixFlow 2 complete ✅
closedBothEmeraldManually closed
rejectedBothRedNot a valid bug

Severity Rules

SeverityPipeline Eligible?Notes
low✅ YesBoth flows
medium✅ YesBoth flows
high❌ NoEmergency Hotfix only
critical❌ NoEmergency Hotfix, immediate escalation
Never let high/critical bugs wait for a scheduled pipeline. Treat them as emergency hotfixes.

Emergency Hotfix (Bypass Pipeline)

Scenario: Critical or high severity bug in PROD. Cannot wait for scheduled T1/T2.

Process

Critical bug found in PROD
    │
    │ 🧑 HUMAN: Admin confirms severity = critical/high
    │   - Does NOT enter pipeline (no confirmed status)
    │   - Opens direct hotfix branch
    ▼
Fix developed (manually or with AI assist)
    │
    │ 🧑 HUMAN: Admin deploys directly to PROD
    │   - Updates bug status to deployed_prod manually
    │   - Records fix details in ai_fix_diff field
    ▼
[deployed_prod] (manual)
    │ 📲 Telegram: "Emergency hotfix deployed to PROD. [Bug title]"
    │
    │ 🧑 HUMAN: Validates PROD immediately
    │
    └─ If UAT is ahead → manually cherry-pick to UAT branch
       If UAT is same version → update UAT as well
    ▼
✅ Emergency resolved

Checklist for Emergency Hotfix

  • [ ] Severity confirmed as critical/high before bypassing pipeline
  • [ ] At least one other team member notified before deploy
  • [ ] Fix deployed and validated within agreed SLA (e.g. P1: 1 hour, P2: 4 hours)
  • [ ] Post-deploy smoke test completed (login, core workflow, affected feature)
  • [ ] Bug status updated manually in system
  • [ ] Telegram/Slack notification sent to stakeholders
  • [ ] Post-incident note added to bug record (root cause, fix summary)
  • [ ] UAT updated (cherry-pick or re-sync if needed)
  • [ ] Incident review scheduled (within 48h for P1)

Rollback Procedure

Scenario: A deploy (T1 or T2) introduces a regression or new failure.

Decision: When to Rollback

Issue detected after deploy
    │
    ├─ Severity: minor UX glitch → Monitor, schedule fix in next pipeline
    │
    ├─ Severity: functional regression → Rollback immediately
    │
    └─ Severity: data corruption risk → Rollback + escalate + engage DBA

Rollback Process

Regression detected post-deploy
    │
    │ 🧑 HUMAN: Admin confirms rollback needed
    │   - Record: what was deployed, when, what broke
    ▼
    │ 🤖 SYSTEM or 🧑 HUMAN: Execute rollback
    │   - Docker: docker compose down && git checkout <prev_tag> && docker compose up
    │   - DB migration: apply down migration if schema changed
    │   - Status of affected bugs → revert to previous status
    ▼
    │ 📲 Telegram: "Rollback executed for [version]. Monitoring."
    │
    │ 🧑 HUMAN: Post-rollback validation (5–10 min smoke test)
    │
    └─ Stable → document in HISTORY + schedule proper fix
       Unstable → escalate

Rollback Checklist

  • [ ] Previous working commit/tag identified (git log)
  • [ ] Rollback scope defined (frontend / backend / both / DB)
  • [ ] Affected bug statuses reverted in system
  • [ ] Smoke test completed after rollback
  • [ ] Root cause of regression documented
  • [ ] Team + stakeholders notified
  • [ ] Fix plan for the reverted change recorded

Scheduled Deploy Times (Reference Only)

⚠️ These times are project-specific. Adapt per project SLA and business hours.
SlotNamePhaseTypical Window
T1UAT/PROD-queue DeployPhase 1Off-peak evening (e.g. 20:00)
T2PROD/UAT-merge DeployPhase 2Late evening (e.g. 22:00)

Principles for choosing T1/T2:

  • T1 and T2 must have enough gap for human validation (minimum 1–2 hours)
  • Both should be outside business hours unless urgency demands otherwise
  • For 24/7 systems: choose lowest traffic window (check metrics)
  • Emergency hotfix: no scheduled time — deploy ASAP after approval

Telegram Notification Templates

Use these as the standard message format for each pipeline node.

T1 Complete — Flow 1 (UAT deployed)

🔧 Bug Fix Pipeline — Flow 1 已部署 UAT

• #<id> [<severity>] <title>
• ...

📦 Release: <version>

✅ 請驗收 UAT:<UAT_URL>
確認後請點「批准推 PROD」。
下次 T2 時間:<T2_time>

T2 Complete — Flow 1 (PROD deployed)

🚀 Bug Fix Pipeline — Flow 1 已部署 PROD

• #<id> [<severity>] <title>

✅ Flow 1 完成。UAT 與 PROD 版本已對齊。

T1 Complete — Flow 2 (PROD queued)

🔧 Bug Fix Pipeline — Flow 2 已排隊部署 PROD

• #<id> [<severity>] <title>

⏳ 今晚 T2(<T2_time>)自動部署至 PROD。
部署後請驗收,確認後點「批准 Merge UAT」。

T2 Complete — Flow 2 (PROD deployed, UAT pending)

🚀 Bug Fix Pipeline — Flow 2 已部署 PROD

• #<id> [<severity>] <title>

⚠️ 請登入 PROD 驗收。
確認正常後點「批准 Merge UAT」。
下次 T2 時間:<T2_time>

T2 Complete — Flow 2 (UAT merged)

✅ Bug Fix Pipeline — Flow 2 完成

• #<id> [<severity>] <title>

🎉 Fix 已同步至 UAT。Flow 2 全流程完成。

Emergency Hotfix

🚨 Emergency Hotfix — <PROD/UAT>

Bug: #<id> [<severity>] <title>
時間:<datetime>
部署人:<admin>

狀態:已部署,請立即驗收
需要跟進:<yes/no — UAT cherry-pick needed>

Rollback

⚠️ Rollback 執行 — <environment>

原因:<brief reason>
回滾至:<version/commit>
時間:<datetime>
執行人:<admin>

狀態:已回滾,正在監控
下一步:<scheduled fix / investigation>

Adapting This Workflow to a New Project

When setting up a new project with this workflow:

  1. Define T1 and T2 — pick times based on traffic patterns and SLA
  2. Set severity policy — confirm which severities enter pipeline vs emergency hotfix
  3. Configure Telegram/notification channels — who receives which notifications
  4. Add DB columnsfix_flow, found_in_env, and status enum (see Status Reference)
  5. Implement Phase 1 + Phase 2 cron jobs — schedule at T1 and T2
  6. Add approval endpointsapprove-prod, approve-uat-merge, batch variants
  7. Add status badges + action buttons — frontend must reflect all statuses clearly
  8. Test the full cycle in UAT first — simulate a bug through both flows before going live
  9. Document rollback steps — specific to the project's tech stack and DB

Pre-Deploy Checklist (T1 / T2)

Run before every scheduled deploy window.

  • [ ] DB backup confirmed — last backup < 24h, or trigger manual backup now
  • [ ] Monitoring alerts active — error rate, response time, queue depth dashboards open
  • [ ] On-call admin reachable — someone available to respond within 15 min post-deploy
  • [ ] Change freeze check — not within a freeze window (see Change Freeze Policy)
  • [ ] Rollback path clear — previous working commit/tag identified and noted
  • [ ] Dependent services healthy — upstream/downstream APIs, DBs, message queues OK
  • [ ] Disk + memory OK — server has headroom (>20% free disk, <80% memory)

Post-Deploy Monitoring

After each T1 or T2 deploy, monitor for a minimum of 10 minutes before standing down.

Metrics to Watch

MetricHealthy ThresholdAction if Breached
HTTP 5xx error rate< 0.5%Investigate immediately, consider rollback
API response time (p95)< baseline + 20%Check DB queries, cache hit rate
Memory usage< 85%Check for memory leaks in new code
CPU usage< 80% sustainedCheck for infinite loops or expensive queries
Login / auth success rate> 99%Auth regression — rollback candidate
Key business flow (e.g. task create)Working end-to-endSmoke test immediately post-deploy

Smoke Test Sequence (2–3 min)

  1. Login with admin account
  2. Navigate to the affected feature
  3. Perform the action that triggered the bug
  4. Confirm fix is working
  5. Check 2–3 adjacent features for regression
  6. Check system logs for new errors
If any smoke test step fails → rollback immediately, do not wait.

Multi-Service Deploy (Cross-Service Fixes)

Scenario: A bug fix requires changes to more than one service (e.g. backend API + frontend, or service A + service B).

Deploy Order Principle

Always deploy in dependency order:
  Backend (API) first → Frontend second
  Shared library → Dependent services
  DB migration → Application code

Never deploy in reverse order — it risks breaking in-flight requests.

Coordination Steps

  1. Map dependencies — list all services affected and their dependency order
  2. Stage the deploys — do not deploy all services simultaneously
  3. Validate between services — after each service deploy, quick health check before next
  4. Single rollback plan — define the exact reverse order and what to check at each step
  5. Lock window — communicate to team that a multi-service deploy is in progress (no other deploys)

Status Tracking for Multi-Service

Tag the bug with affected services. Use release notes to list which service each fix applies to:

[backend] Fix: null pointer in task update handler
[frontend] Fix: error boundary not catching API timeout

Change Freeze Policy

Certain periods should have no scheduled pipeline deploys (T1/T2 suspended). Emergency hotfixes may still be approved by escalation.

Recommended Freeze Windows

PeriodRecommended Action
Public holidaysSuspend T1/T2. Emergency hotfix requires 2-person approval.
Lunar New Year (3 days)Full freeze. P1 only with CTO sign-off.
Major client go-live weekFreeze for that client's system. Other systems normal.
End-of-month financial closeFreeze financial modules. Other modules normal.
Planned system maintenanceCoordinate freeze window in advance, notify stakeholders.

Declaring a Freeze

  1. Update HEARTBEAT.md or project config with freeze start/end dates
  2. Notify team via Telegram/channel
  3. Pipeline cron jobs remain scheduled but agent checks freeze flag before executing
  4. Emergency hotfix during freeze: requires explicit approval from admin + one other senior (two-person rule)

Freeze Flag (implementation)

In pipeline config or environment variable:

DEPLOY_FREEZE=true              # hard freeze, all deploys blocked
DEPLOY_FREEZE_MODULES=financial # module-specific freeze
DEPLOY_FREEZE_UNTIL=2026-02-05  # auto-lift date

Quick Reference Card

FLOW SELECTION:
  Same version?  → Flow 1
  UAT ahead?     → Flow 2
  Critical/High? → Emergency Hotfix
  Freeze window? → Block (escalate for emergency)

FLOW 1: confirmed → [T1] deployed_uat → [human] pending_prod → [T2] deployed_prod ✅
FLOW 2: confirmed → [T1] pending_prod → [T2] deployed_prod → [human] pending_uat_merge → [T2] uat_merged ✅

ROLLBACK: detect → confirm → execute → validate → document

SEVERITY:
  low/medium  → pipeline eligible
  high/critical → emergency hotfix only

MULTI-SERVICE: backend first → validate → frontend → validate

PRE-DEPLOY: backup ✓ monitoring ✓ on-call ✓ freeze-check ✓ rollback-path ✓
POST-DEPLOY: monitor 10min → smoke test → stand down

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.63%
按下载量换算3,649

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills