deployment-patterns
Skill0 starsChanged 3 months agoMITView on GitHub
Plan safe deploys for Kubernetes, Docker, Vercel, and cloud hosts. Covers rolling, blue-green, and canary deploys, health checks, rollback, scaling, and updates with no downtime.
22 other projects use a version of this.
Adopted by
Most recently taken up by
- Lukk17/agent-standardstheir own version, first seen Oct 5, 2026
- productionx-in/Core-Skillstheir own version, first seen Sep 29, 2026
- templetongroup/radianttheir own version, first seen Sep 17, 2026
- socialadsmentor/sam-agentic-harnesstheir own version, first seen Sep 3, 2026
- SamuelNDCE/claude-super-skill-librarytheir own version, first seen Aug 1, 2026
- thanvish21/hcc-bundletheir own version, first seen Jul 25, 2026
Used with
Projects with it also use kotlin-testing, nuxt4-patterns and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
tpavanipradeepSkillkotlin-testing
Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.
Also in 6 projects that use this
mryeastcodeSkillnuxt4-patterns
Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.
Also in 5 projects that use this
mryeastcodeSkillpytorch-patterns
PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.
Also in 8 projects that use this
JamkrisSkillagent-sort
Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.
Also in 4 projects that use this
JamkrisSkilldart-flutter-patterns
Production-ready Dart and Flutter patterns covering null safety, immutable state, async composition, widget architecture, popular state management frameworks (BLoC, Riverpod, Provider), GoRouter navigation, Dio networking, Freezed code generation, and clean architecture.
Also in 4 projects that use this
tpavanipradeepSkillai-regression-testing
Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code.
Also in 9 projects that use this
- +1 more from mryeastcode
- +3 more from Jamkris
- +1 more from tpavanipradeep
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- xu-xiang/everything-claude-code-zh★ 2ksame name
- loulanyue/awesome-claude-notes★ 272same name
- tpavanipradeep/everything-claude-code★ 134same name
- templetongroup/radiant★ 113same name
- Jamkris/everything-gemini-code★ 87same name
- skateddu/claude-code-python-setup★ 28same name
- woxiangyangzhimao/skills★ 14same name
- noah-sheldon/ai-dev-kit★ 13same name
- Infopibe/everything-claude-code★ 8same name
- zero-click/zero-ratchet★ 8same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
36 rules. 0 are common, 35 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
35
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use this skill to plan and check safe app deploys.
- Distinctive: line 15
Use this skill when you need to:
- Distinctive: line 18
Update an app with no planned downtime.
- Distinctive: line 26
Check these facts first:
- Distinctive: line 35
Do not claim zero downtime unless the full path supports it.
- Distinctive: line 74
Run two full sites:
- Distinctive: line 79
Test green first. Then send users to green.
- Distinctive: line 95
Keep blue ready until green has been stable for the set check time.
- Distinctive: line 104
Check errors, speed, and key user tasks.
- Distinctive: line 121
Stop the rollout if you cannot tell old and new results apart.
- Distinctive: line 125
Stop the old app. Then start the new app.
- Distinctive: line 127
Use it only when:
- Distinctive: line 137
Use separate checks when the host supports them:
- Distinctive: line 147
Test what users need.
- Distinctive: line 150
Do not make every check call many other services.
- Distinctive: line 156
Use changes that work with both old and new code.
- Distinctive: line 160
Add the new table or field.
- Distinctive: line 164
Remove old data only after rollback is no longer needed.
- Distinctive: line 166
Do not remove or rename a field before all old app copies are gone.
- Distinctive: line 172
Before stopping an old app copy:
- Distinctive: line 174
Stop sending it new work.
- Distinctive: line 180
Make sure queue workers do not take the same job twice during a deploy.
- Distinctive: line 184
When auto scaling is used:
- Distinctive: line 187
Keep enough copies for a rolling deploy.
- Distinctive: line 188
Test sudden traffic growth.
- Distinctive: line 190
Do not scale from CPU alone if queue size or wait time matters more.
- Distinctive: line 191
Make sure new copies can start fast enough.
- Distinctive: line 197
Write rollback rules before the deploy.
- Distinctive: line 209
Keep the last good app image and settings until the new release is stable.
- Distinctive: line 217
Run at least three app pods.
- Distinctive: line 218
Add start, ready, and live checks.
- Very specific: line 220
Use maxSurge: 1 and maxUnavailable: 0.
- Distinctive: line 221
Start one new pod.
- Distinctive: line 222
Wait until its ready check passes.
- Distinctive: line 226
Stop if a set limit fails.
- Distinctive: line 228
Keep old database fields until rollback time has passed.
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deployment Patterns
This skill comes from ECC. Full credit goes to the original ECC author.
Use this skill to plan and check safe app deploys.
When to Use
Use this skill when you need to:
- Deploy an app to Kubernetes, Docker, Vercel, or a cloud host.
- Update an app with no planned downtime.
- Pick a rolling, blue-green, or canary deploy.
- Add health checks.
- Set up auto scaling.
- Make a rollback plan.
Before You Deploy
Check these facts first:
- How much downtime is allowed?
- Can the old and new app run at the same time?
- Will the new app change the database?
- How will you know the new app is healthy?
- How fast must you roll back?
- Can the host send only some users to the new app?
Do not claim zero downtime unless the full path supports it. This includes the app, database, network, and host.
Pick a Deploy Plan
1. Rolling Deploy
Replace old app copies a few at a time.
Use it when:
- Old and new copies can run at the same time.
- The app has more than one copy.
- A slow update is safe.
Kubernetes example:
spec:
replicas: 3
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0maxSurge: 1 lets one extra pod start.
maxUnavailable: 0 keeps all needed pods ready during the update.
Watch for:
- One app copy is not enough for no downtime.
- A bad health check may send work to a pod too soon.
- Old and new code may use the database in different ways.
- Long jobs may stop when an old pod shuts down.
2. Blue-Green Deploy
Run two full sites:
- Blue is the live site.
- Green is the new site.
Test green first. Then send users to green.
Use it when:
- You need a fast switch.
- You need a fast rollback.
- You can pay for two full sites for a short time.
Watch for:
- Both sites may write to the same database.
- User sessions may break after the switch.
- Cache data may not match.
- Old jobs may still run after traffic moves.
- Database changes may make rollback unsafe.
Keep blue ready until green has been stable for the set check time.
3. Canary Deploy
Send a small part of traffic to the new app first. Raise the share in steps.
A simple plan:
- Send 5% of traffic to the new app.
- Check errors, speed, and key user tasks.
- Raise traffic to 25%.
- Check again.
- Raise traffic to 50%.
- Move to 100% only if all checks pass.
Use it when:
- Your host can split traffic.
- You can track the new app by version.
- A small test group is safe.
Watch for:
- A small group may miss rare bugs.
- Signed-in users may need to stay on one version.
- Workers and timed jobs do not follow web traffic rules.
- Stop the rollout if you cannot tell old and new results apart.
4. Replace All at Once
Stop the old app. Then start the new app.
Use it only when:
- Downtime is allowed.
- The app is small or used for tests.
- Other plans cost too much or add too much work.
State the planned downtime before using this plan.
Health Checks
Use separate checks when the host supports them:
- Start check: Has the app finished starting?
- Ready check: Can the app take new work?
- Live check: Is the app stuck and in need of a restart?
A health check should:
- Return fast.
- Have a short wait limit.
- Test what users need.
- Fail when the app cannot serve safe work.
Do not make every check call many other services. One slow service could restart healthy app copies again and again.
Give slow apps enough start time. Do not send traffic before they are ready.
Safe Database Changes
Use changes that work with both old and new code.
A safe order is:
- Add the new table or field.
- Deploy code that can use both old and new data.
- Move or fill old data in small parts.
- Deploy code that uses the new data.
- Remove old data only after rollback is no longer needed.
Do not remove or rename a field before all old app copies are gone.
Back up key data before a risky change. Test that the backup can be restored.
Shutdown and Long Jobs
Before stopping an old app copy:
- Stop sending it new work.
- Let open requests finish.
- Save or move long jobs.
- Set a clear shutdown time.
- Make repeated work safe when possible.
Make sure queue workers do not take the same job twice during a deploy.
Auto Scaling
When auto scaling is used:
- Set a safe low and high copy count.
- Keep enough copies for a rolling deploy.
- Test sudden traffic growth.
- Check host limits.
- Do not scale from CPU alone if queue size or wait time matters more.
- Make sure new copies can start fast enough.
A deploy and a traffic spike can happen at the same time. Plan for both.
Rollback Rules
Write rollback rules before the deploy.
Roll back when:
- Error rate rises past the set limit.
- Requests become too slow.
- Health checks keep failing.
- A key user task fails.
- Data is lost or changed in a bad way.
A code rollback may not undo a database change. Write a separate data repair plan when needed.
Keep the last good app image and settings until the new release is stable.
Concrete Example
Task: Deploy version 2.4.0 to Kubernetes with no planned downtime.
Plan:
- Run at least three app pods.
- Add start, ready, and live checks.
- Confirm versions
2.3.0and2.4.0can use the same database. - Use
maxSurge: 1andmaxUnavailable: 0. - Start one new pod.
- Wait until its ready check passes.
- Send it traffic.
- Replace the next old pod.
- Watch errors, speed, restarts, and key user tasks.
- Stop if a set limit fails.
- Roll back to
2.3.0if the fault does not clear. - Keep old database fields until rollback time has passed.
Success means all new pods are ready, key tasks work, and error and speed limits stay normal.
Final Check
- The deploy plan fits the host.
- More than one app copy runs when no downtime is needed.
- Start, ready, and live checks work.
- Logs show the app version.
- Error and speed checks are ready.
- Key user tasks are tested.
- Old and new code can run together.
- Database changes are safe to roll out.
- Sessions, caches, jobs, and workers are covered.
- Auto scaling has safe limits.
- Stop and rollback rules are clear.
- The last good app image is kept.
- The plan was tested in a setup like the live site.
- The team knows who can stop or roll back the deploy.
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.

