Skip to content
Skills Library
DevOps & cloud · Automation

swe-320-deploy-behind-a-switch

/swe-320-deploy-behind-a-switch

Deploy code through the project's pipeline with new behavior behind a switch, roll it out in stages while watching real signals, and roll back fast. Use when asked to deploy, release or ship a merged change to users.

Licence
Apache-2.0
Last repository change
04.11.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
9
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 04.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Deploy code through the project's pipeline with new behavior behind a switch, roll it out in stages while watching real signals, and roll back fast. Use when asked to deploy, release or ship a merged change to users.

Original author description

Deploy code through the project's pipeline with new behavior behind a switch, roll it out in stages while watching real signals, and roll back fast. Use when asked to deploy, release or ship a merged change to users.

How it works

  1. 1. Know what's going out
  2. 2. Set the lines before you start
  3. 3. Deploy dark
  4. 4. Turn it on in stages
  5. 5. Roll back fast
  6. 6. Report and record
  7. When to stop and ask
Original SKILL.md headings · 39 lines, 343 words
SKILL.md preview
---
name: swe-320-deploy-behind-a-switch
description: Deploy code through the project's pipeline with new behavior behind a switch, roll it out in stages while watching real signals, and roll back fast. Use when asked to deploy, release or ship a merged change to users.
---

# Deploy Behind a Switch

## 1. Know what's going out
- List the commits between what's live and what you're deploying. Read the list.
- If anything is in there you didn't expect, stop and ask.
- Check for a deploy freeze, a scheduled event, or peak traffic. Don't deploy into those unless your owner says to.
- Make sure someone who can help is reachable if it goes wrong.

## 2. Set the lines before you start
Write down:
- **Signals:** error rate, response time, and one business count that matters (checkouts completed, messages sent).
- **Baseline:** their values right now.
- **Stop lines:** for example, "error rate above 1%" or "checkouts drop more than 10%."
- **Rollback:** flip the switch off; redeploy the previous version if needed (SWE 350).

## 3. Deploy dark
- Deploy through the project's pipeline only, never by editing servers or copying files by hand.
- New behavior is behind a switch, **off**. After the deploy, confirm the site behaves exactly as before.

## 4. Turn it on in stages
1. **Internal:** your own or test accounts. Try it yourself.
2. **Small share:** for example 5% of users. Watch the signals for a set time, such as 15 minutes.
3. **Larger share,** then **everyone**, watching at each step.

Never skip from off to everyone on a change that touches money, sign-in or data.

## 5. Roll back fast
If any signal crosses a stop line, flip the switch off immediately. Then confirm recovery, then investigate. Users first, debugging second.

## 6. Report and record
Report what went out, the stages, the signals at each one, and the final state (COM 101). Record the deploy, its version and any rollback (REC 101).

## When to stop and ask
- The change can't be put behind a switch and touches money, sign-in or data.
- The deploy includes a database migration that can't be undone.
- There's a freeze, or nobody is reachable to help.
- You're asked to skip stages "to save time" on a risky change.
Files in this package (9)
  • COURSE.md 1 KB
  • SKILL.md 2 KB
  • exam/cases.yaml 5 KB
  • exam/results/2026-11-04-answers.json 1,040 KB
  • exam/results/2026-11-04.yaml 5 KB
  • exam/results/2026-11-04T1454-answers.json 1,279 KB
  • exam/results/2026-11-04T1454.yaml 5 KB
  • exam/results/2026-11-05-answers.json 435 KB
  • exam/results/2026-11-05.yaml 2 KB

Versions

The database has no other skills named swe-320-deploy-behind-a-switch.

Database snapshot: 13.11.2026 · package version 8e4e50373c80 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95swe-390-ship-a-fix-end-to-end
    Take a real bug from report to verified fix in production: triage, pull request with tests, review, merge, deploy behind a switch, verify, report. Use when asked to fix a bug and see it all the way through.
  • 100deploy
    Ship a Manykind workflow or agent. For a workflow that means release a checked version (mk release), make it live (mk deploy <version>) and roll back. For an agent it means build, push and deploy, with marketplace publish optional and last. Also covers credentials, dry runs, and…
  • 90infra-stack-deploy
    Deploys one environment's stack through the project's own deploy entrypoint with a check before and after and the rollback path ready, never by hand on the host. Use when an environment needs a deploy outside its normal pipeline, or to drive a failed one to a known state.
  • 90add-benchmark
    Add a new SWE benchmark task from a real GitHub bug-fix. Use when the user provides a GitHub issue or PR URL and wants to add it to the bench-swe pipeline.
  • 100do-deploy
    Deploy popoto: run tests, bump version, tag release, publish to PyPI, deploy docs. Triggered by 'deploy', 'do-deploy', or any request to publish a new version.
  • 100deploy
    Use to roll a known artifact or configuration into a target environment, verify service behavior, or execute an authorized deployment rollback.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.