Rewrites and gradual rollouts: improving a system in place or rebuilding it, the old system as the specification, parity checks, moving traffic in steps that can be undone, comparing both systems on real traffic, keeping URLs and redirects, sharing features during a migration, and removing the old system. Load when replacing a system, moving traffic to a new one, or rolling out a large change.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Rewrites And Rollouts?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/the-up-rewrites-and-rollouts)
---
name: rewrites-and-rollouts
description: "Rewrites and gradual rollouts: improving a system in place or rebuilding it, the old system as the specification, parity checks, moving traffic in steps that can be undone, comparing both systems on real traffic, keeping URLs and redirects, sharing features during a migration, and removing the old system. Load when replacing a system, moving traffic to a new one, or rolling out a large change."
---
# Rewrites and Rollouts
- Improve a system in place when better tools or local fixes would solve its problems; propose a rewrite only when its architecture causes them. A rewrite changes the architecture, so ask the user before you start one.
- Keep the old system running and shipping until the new one serves everyone, and move traffic in steps that can be undone: by audience (for example search engine crawlers, then signed-out visitors, then signed-in people), by path, or by market. Route each request at the edge or in the router by its path and a [feature flag](../feature-flags/SKILL.md), so that a group can move without a deploy and go straight back.
- Before everyone moves, compare both systems on real traffic: split the first group into an experiment, and compare the field numbers of the two systems.
- Treat the old system as the specification. Port its behavior one case at a time, pin each case with a test that names the system it came from, and run a parity script that requests the same paths from both systems and compares what clients and crawlers read: status codes, redirects, titles, descriptions, canonical URLs, robots tags, Open Graph tags, language alternates, and structured data.
- Keep what works: the URLs, the redirects and aliases that people and crawlers depend on, the rules that clean up malformed URLs, and what search engines read. A rewrite is a chance to throw things away, and it's easy to throw away too much.
- When both systems need the same feature during the migration, build it once and load it in both at runtime (for example with module federation) instead of building it twice.
- As soon as a path has moved, remove the old system's code, build, and deployment for it.
Source: [Rebuilding the global town square from scratch](https://blog.x.com/en/engineering/rebuilding-the-global-town-square-from-scratch), X Engineering, 2026-11-04.