zero-downtime-cutover
Skill2 starsChanged 7 months agoMITView on GitHub
Standardize refactor/update of critical services (especially model-path like cli-proxy-api/openclaw) with Zero-Downtime + Auto-Rollback Guard to avoid lost connectivity and hung session.
In this repository47 other files it gives its agents.
- brainstormingSkill
- claude-code-termux-runbookSkill
- cli-patcherSkill
- code-review-workflowSkill
- commit-commandsSkill
- consulting-analysisSkill
- context7-cleanSkill
- data-analysisSkill
- deep-researchSkill
- edit-tool-compat-guardSkill
- env-managerSkill
- executing-plansSkill
- feature-devSkill
- firecrawlSkill
- frontend-designSkill
- gateway-device-pairingSkill
- githubSkill
- glibc-prebuilt-bundleSkill
- gogSkill
- image-generationSkill
- memory-setupSkill
- module-auditorSkill
- module-scaffoldSkill
- openclaw-config-guardianSkill
- openclaw-ollama-runtime-kbSkill
- plugin-cutover-guardianSkill
- plugin-runtime-guardianSkill
- python-env-managerSkill
- self-improving-agentSkill
- simplify-and-hardenSkill
- skill-benchSkill
- skill-creatorSkill
- skill-unificationSkill
- skill-vetterSkill
- socratic-groundingSkill
- subagent-orchestrationSkill
- systematic-debuggingSkill
- tailscale-oauth-bridgeSkill
- termux-packagerSkill
- termux-runnerSkill
- test-driven-developmentSkill
- vercel-deploy-claimableSkill
- verification-before-completionSkill
- video-generationSkill
- workspace-cleanupSkill
- writing-plansSkill
- yt-dlp-ingest-firstSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Check results, state validation, and next steps.
- Distinctive: line 35
Use this skill before any change to critical services that can break model paths or gateway connectivity:
- Distinctive: line 42
Do not touch live files directly at the start.
- Very specific: line 51
verify required files exist (openclaw.plugin.json, package.json, index.js)
- Very specific: line 52
verify plugins.loadPaths does not point to deleted path
- Very specific: line 54
do not rely on --profile alone for external plugin shadow installs
- Distinctive: line 55
use a dedicated shadow home/staging root when plugin install/discovery paths matter
- Distinctive: line 56
verify the resolved install/discovery path stays inside the shadow root
- Distinctive: line 74
Do not refactor as “tear down and rebuild” while service is alive.
- Distinctive: line 75
Do not change live binary/config before arming rollback.
- Distinctive: line 76
If health does not come up in stop-loss window -> rollback immediately.
- Distinctive: line 105
If missing input/permissions: state what is missing and request clear additions.
- Distinctive: line 106
If runtime/tool errors: return short error + possible cause + proposed remediation.
- Distinctive: line 107
If policy/safety risk exists: stop and escalate via approval checkpoint.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Zero-Downtime Cutover (Default for Critical Services)
Scope
- In-scope: critical service refactor/update with zero-downtime + auto-rollback guard.
- Out-of-scope: destructive/live mutation without shadow verify/rollback.
SOP
- Determine whether the request is within the skill scope.
- Execute the skill's main workflow/instructions in safe order.
- Check results, state validation, and next steps.
Indexed Reference Map
- @[SKILL.md#L1-L97] Standard frontmatter (
name,description). - @[SKILL.md#L6-L97] Zero-Downtime Cutover (Default for Critical Services).
- @[SKILL.md#L8-L97] When to use (mandatory).
- @[SKILL.md#L15-L97] Goals.
- @[SKILL.md#L21-L97] Mandatory process (10 steps).
- @[SKILL.md#L46-L97] Hard guardrails.
- @[SKILL.md#L51-L97] Default stop-loss.
- @[SKILL.md#L56-L97] Required output.
- @[SKILL.md#L62-L97] References.
Supporting files
- @[references/cutover-checklist.md#L1-L22] Reference/rulebook for technical decisions.
- @[templates/guard.sh.template#L1-L28] Template used to scaffold/patch quickly.
- @[templates/rollback.sh.template#L1-L24] Template used to scaffold/patch quickly.
When to use (mandatory)
Use this skill before any change to critical services that can break model paths or gateway connectivity:
cli-proxy-apiopenclaw gateway- background services that provide API/model routes to agent/session
- plugin/hook/config changes that can cause gateway boot failure (plugin path, plugin schema, loadPaths, entries)
Goals
- Do not touch live files directly at the start.
- Have rollback script armed before cutover.
- Have guard process to monitor health and auto-rollback on failure.
- Atomic switch + minimal downtime.
Mandatory process (10 steps)
- Backup + checksum current runtime/module.
- Stage .new files in parallel (
*.new), do not overwrite live files. - Preflight plugin/config path (no restart):
- verify required files exist (
openclaw.plugin.json,package.json,index.js) - verify
plugins.loadPathsdoes not point to deleted path
- verify required files exist (
- Shadow test with proved filesystem isolation:
- do not rely on
--profilealone for external plugin shadow installs - use a dedicated shadow home/staging root when plugin install/discovery paths matter
- verify the resolved install/discovery path stays inside the shadow root
- proceed only when shadow is clean and isolation is proved
- do not rely on
- Validate before cutover:
sh -n/ syntax check- path/permission
- dependency checks
- Pre-arm rollback script:
- restore file backup
- restart old service
- verify health endpoint
- Start guard watcher (60-120s):
- poll health
- fail N consecutive times => auto rollback
- Atomic switch (
mvfile.new-> live). - Single restart + health verify immediately after switch.
- Disarm guard once health is stable; write report.
Hard guardrails
- Do not refactor as “tear down and rebuild” while service is alive.
- Do not change live binary/config before arming rollback.
- If health does not come up in stop-loss window -> rollback immediately.
Default stop-loss
- Probe interval: 3-5s
- Consecutive fail threshold: 3
- Total guard window: 60-120s
Required output
cutover planrollback pathhealth evidence(before/after)- verdict:
PASSorROLLED_BACK
References
references/cutover-checklist.mdtemplates/rollback.sh.templatetemplates/guard.sh.template
Trigger Rules
- Positive: Activate when user request matches
zero-downtime-cutoverby description: Standardize refactor/update of critical services (especially model-path like cli-proxy-api/openclaw) with Zero-Downtime + Auto-Rollback Guard to avoid lost connectivity and hung session. - Negative: Do not activate for out-of-scope requests or when this skill's workflow/expertise is not needed.
- Escalation: If there is external action/network write or sensitive operations, add an approval checkpoint before execution.
Output Contract
- Deliverable: result aligned with
zero-downtime-cutoverobjective; clearly state artifact/path/steps performed (if any). - Validation: report
PASS/FAILstatus with key checks run. - Failure mode: when failing, state root cause + proposed remediation.
Error Handling
- If missing input/permissions: state what is missing and request clear additions.
- If runtime/tool errors: return short error + possible cause + proposed remediation.
- If policy/safety risk exists: stop and escalate via approval checkpoint.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

