{"name":"promote-release","title":"Promote a release","description":"Move one build from a developer's machine to production in steps, local, the shared preview, staging, production, each on its own go, under its own name (X.Y.Z-preview.N, X.Y.Z-staging.N, X.Y.Z) and through a pull request into that step's branch; check that the address serves the commit shipped; record the step and the way back; mark the tickets it carries; and draft who to tell for a person to send. Production happens only on an explicit yes that names production, every confirmation a step waits for is recorded, and every command comes from the project's own RELEASING.md, never guessed. Symptoms: release this, cut a preview, promote to staging, promote to production, is it on staging, what number is this release, roll it back, someone asks to skip staging, a -preview name about to reach staging, an address that may not be serving the new build. The note for the version is release-notes', the ticket marks track-in-linear's, and one ticket's own preview implement-ticket's.","compatibility":"A git repository whose project keeps a RELEASING.md with its commands (a template ships in references), a forge that takes pull requests, and a team profile naming each step's branch, address and who gives its go. Marks tickets through track-in-linear with Linear's MCP server; works without Linear when the team tracks elsewhere, and says so. Sends nothing. Output is the shipped step, its record, the ticket marks, and the drafted messages.","allowedTools":"Read Write Edit Grep Glob Bash","license":"MIT","kind":"signals","useWhen":"a build is about to move to the shared preview, staging or production, or a release must be named, approved, checked or rolled back","group":"workflow","lifecycle":"release","version":"1.0.0","author":"crissmoldovan","install":["npx skills add crissmoldovan/agent-skills --skill promote-release"],"asks":["Use promote-release: put what is on the shared preview onto staging. Name it, stamp it through a\npull request, check the staging address serves the new commit, mark the tickets, and draft who to\ntell. Stop before production.","2.4.0-staging.1 has both confirmations recorded. Ask me the production question, and if I say\nyes, take it to production and write down the deployment we would go back to.","The client asked us to skip staging for tonight's fix. Check who the profile says can skip a step,\nand tell me what that means for this release.","Production is serving the wrong build after 2.4.0. Roll it back the way RELEASING.md says,\nrecord it, and draft the note to the people who were told it shipped."],"commands":[],"documents":[{"path":"references/releasing-template.md","slug":"releasing-template","title":"The RELEASING.md template","body":"# The RELEASING.md template\n\n`promote-release` takes every command from the project's own `RELEASING.md` and stops where a\ncommand is missing. Copy the template below to the root of the project's repository as\n`RELEASING.md`, fill every `<…>`, and write \"none\" where a step does not apply, with why. Never\nwrite a key, a token or a password in it: name where it is kept instead.\n\nWho gives each go, and what each step waits for, is not in this file: it is in the team's profile\n(the Releases section of the shape `track-in-linear` describes) and the team's Standing rules\npage. This file holds the commands, because they change with the code.\n\n````markdown\n# Releasing <project>\n\nHow a build of `<project>` moves from a developer's machine to production: the commands for each\nstep, and the way back from each. Who gives each go is in the team's profile, not here.\n\n## Environments\n\n| Step | Branch | Address | Release name | Shares data with |\n|---|---|---|---|---|\n| Local | the work's own branch | `<http://localhost:…>` | none | `<a local database, or none>` |\n| A piece of work's own preview | `<its own branch>` | `<https://<slug>.preview.example.com>` | `X.Y.Z-preview.<slug>.N` | `<…>` |\n| The shared preview | `<one branch>` | `<https://preview.example.com>` | `X.Y.Z-preview.N` | `<…>` |\n| Staging | `<the staging branch>` | `<https://staging.example.com>` | `X.Y.Z-staging.N` | `<…>` |\n| Production | `<the production branch>` | `<https://example.com>` | `X.Y.Z` | `<…>` |\n\nRemove the rows this project does not have. A preview's address says \"preview\", never \"staging\".\n\n**The stamp.** The next step's release name is stamped as its own commit, in its own pull request\ninto the current step's branch (for production: a stamp pull request into staging). The current\nbranch is then promoted as it is, so the next step's tree is identical to the current step's at\npromotion. The trade-off: between the stamp's merge and the promotion, the current environment\nbriefly carries the next step's name. Each step below has a **Stamp** line for this project's\ncommand, the files it writes, and the branch its pull request goes into.\n\n## Before any step\n\n- **Tests and checks:** `<command>` (what it covers; how long it takes).\n- **Browser checks:** `<command, and the step it runs at; or none>`.\n- **What else must be up first:** `<database changes, other services, in which order; or none>`.\n\n## Local\n\n- **Stamp:** none; a local build carries no release name.\n- **Build:** `<command>`\n- **Run it:** `<command>`, then open `<address>`.\n\n## The shared preview\n\n- **Stamp** (`X.Y.Z-preview.N`): `<command, and the files it writes>`.\n- **Ship:** a pull request from `<the work's branch>` into `<the shared preview's branch>`; it\n  deploys by `<how: on merge, or a command>`.\n- **Point the address at the build:** `<command, or \"automatic\">`\n- **Check the address serves the commit shipped:** `<command, and what it prints>`\n- **The way back:** `<command that points the address at the build it replaced>`\n\n## Staging\n\n- **Stamp** (`X.Y.Z-staging.N`): `<command>`; its own pull request into `<the shared preview's\n  branch>`, before this step's promotion.\n- **Ship:** a pull request from `<the shared preview's branch>` into `<the staging branch>`: the\n  shared preview's tree as it is, with the stamp in it. It deploys by `<how>`.\n- **Point the address at the build:** `<command, or \"automatic\">`\n- **Check the address serves the commit shipped:** `<command>`\n- **Browser checks:** `<command, or none>`; their results go in the staging notes.\n- **The way back:** `<revert the pull request, or point at the previous deployment: the command>`\n\n## Production\n\n- **Stamp** (the plain `X.Y.Z`): `<command>`; its own pull request into `<the staging branch>`,\n  before this step's promotion. Until the promotion, staging carries this stamp.\n- **Ship:** a pull request from `<the staging branch>` into `<the production branch>`: staging's\n  tree as it is, with the stamp in it. It deploys by `<how>`.\n- **Point the address at the build:** `<command, or \"automatic\">`\n- **Check the address serves the commit shipped:** `<command>`\n- **Live checks:** `<what to open or run, and what it must show>`\n- **Write down the deployment to go back to:** `<command that lists deployments, and which one>`\n- **The way back:** `<command that puts the noted deployment back>`\n\n## Where the record goes\n\n- **Release notes:** `<path or place, e.g. releases/<version>.md>`\n- **The record of each step** (step, deployment, commit served, UTC time, who shipped it on whose\n  word, the way back): `<path or place>`\n\n## Who to ask\n\n- **When a command fails, or a step is not covered here:** `<name>`\n````\n","bodyHtml":"<h2 id=\"the-releasingmd-template\">The RELEASING.md template</h2>\n<p><code>promote-release</code> takes every command from the project&#39;s own <code>RELEASING.md</code> and stops where a\ncommand is missing. Copy the template below to the root of the project&#39;s repository as\n<code>RELEASING.md</code>, fill every <code>&lt;…&gt;</code>, and write &quot;none&quot; where a step does not apply, with why. Never\nwrite a key, a token or a password in it: name where it is kept instead.</p>\n<p>Who gives each go, and what each step waits for, is not in this file: it is in the team&#39;s profile\n(the Releases section of the shape <code>track-in-linear</code> describes) and the team&#39;s Standing rules\npage. This file holds the commands, because they change with the code.</p>\n<pre><code class=\"language-markdown\"># Releasing &lt;project&gt;\n\nHow a build of `&lt;project&gt;` moves from a developer&#39;s machine to production: the commands for each\nstep, and the way back from each. Who gives each go is in the team&#39;s profile, not here.\n\n## Environments\n\n| Step | Branch | Address | Release name | Shares data with |\n|---|---|---|---|---|\n| Local | the work&#39;s own branch | `&lt;http://localhost:…&gt;` | none | `&lt;a local database, or none&gt;` |\n| A piece of work&#39;s own preview | `&lt;its own branch&gt;` | `&lt;https://&lt;slug&gt;.preview.example.com&gt;` | `X.Y.Z-preview.&lt;slug&gt;.N` | `&lt;…&gt;` |\n| The shared preview | `&lt;one branch&gt;` | `&lt;https://preview.example.com&gt;` | `X.Y.Z-preview.N` | `&lt;…&gt;` |\n| Staging | `&lt;the staging branch&gt;` | `&lt;https://staging.example.com&gt;` | `X.Y.Z-staging.N` | `&lt;…&gt;` |\n| Production | `&lt;the production branch&gt;` | `&lt;https://example.com&gt;` | `X.Y.Z` | `&lt;…&gt;` |\n\nRemove the rows this project does not have. A preview&#39;s address says &quot;preview&quot;, never &quot;staging&quot;.\n\n**The stamp.** The next step&#39;s release name is stamped as its own commit, in its own pull request\ninto the current step&#39;s branch (for production: a stamp pull request into staging). The current\nbranch is then promoted as it is, so the next step&#39;s tree is identical to the current step&#39;s at\npromotion. The trade-off: between the stamp&#39;s merge and the promotion, the current environment\nbriefly carries the next step&#39;s name. Each step below has a **Stamp** line for this project&#39;s\ncommand, the files it writes, and the branch its pull request goes into.\n\n## Before any step\n\n- **Tests and checks:** `&lt;command&gt;` (what it covers; how long it takes).\n- **Browser checks:** `&lt;command, and the step it runs at; or none&gt;`.\n- **What else must be up first:** `&lt;database changes, other services, in which order; or none&gt;`.\n\n## Local\n\n- **Stamp:** none; a local build carries no release name.\n- **Build:** `&lt;command&gt;`\n- **Run it:** `&lt;command&gt;`, then open `&lt;address&gt;`.\n\n## The shared preview\n\n- **Stamp** (`X.Y.Z-preview.N`): `&lt;command, and the files it writes&gt;`.\n- **Ship:** a pull request from `&lt;the work&#39;s branch&gt;` into `&lt;the shared preview&#39;s branch&gt;`; it\n  deploys by `&lt;how: on merge, or a command&gt;`.\n- **Point the address at the build:** `&lt;command, or &quot;automatic&quot;&gt;`\n- **Check the address serves the commit shipped:** `&lt;command, and what it prints&gt;`\n- **The way back:** `&lt;command that points the address at the build it replaced&gt;`\n\n## Staging\n\n- **Stamp** (`X.Y.Z-staging.N`): `&lt;command&gt;`; its own pull request into `&lt;the shared preview&#39;s\n  branch&gt;`, before this step&#39;s promotion.\n- **Ship:** a pull request from `&lt;the shared preview&#39;s branch&gt;` into `&lt;the staging branch&gt;`: the\n  shared preview&#39;s tree as it is, with the stamp in it. It deploys by `&lt;how&gt;`.\n- **Point the address at the build:** `&lt;command, or &quot;automatic&quot;&gt;`\n- **Check the address serves the commit shipped:** `&lt;command&gt;`\n- **Browser checks:** `&lt;command, or none&gt;`; their results go in the staging notes.\n- **The way back:** `&lt;revert the pull request, or point at the previous deployment: the command&gt;`\n\n## Production\n\n- **Stamp** (the plain `X.Y.Z`): `&lt;command&gt;`; its own pull request into `&lt;the staging branch&gt;`,\n  before this step&#39;s promotion. Until the promotion, staging carries this stamp.\n- **Ship:** a pull request from `&lt;the staging branch&gt;` into `&lt;the production branch&gt;`: staging&#39;s\n  tree as it is, with the stamp in it. It deploys by `&lt;how&gt;`.\n- **Point the address at the build:** `&lt;command, or &quot;automatic&quot;&gt;`\n- **Check the address serves the commit shipped:** `&lt;command&gt;`\n- **Live checks:** `&lt;what to open or run, and what it must show&gt;`\n- **Write down the deployment to go back to:** `&lt;command that lists deployments, and which one&gt;`\n- **The way back:** `&lt;command that puts the noted deployment back&gt;`\n\n## Where the record goes\n\n- **Release notes:** `&lt;path or place, e.g. releases/&lt;version&gt;.md&gt;`\n- **The record of each step** (step, deployment, commit served, UTC time, who shipped it on whose\n  word, the way back): `&lt;path or place&gt;`\n\n## Who to ask\n\n- **When a command fails, or a step is not covered here:** `&lt;name&gt;`\n</code></pre>\n","words":754}],"body":"# Promote a release\n\nA release goes wrong in a handful of ways that look like nothing at the time: a build that says\n\"preview\" reaches staging, a staging branch gets work added that never went through the preview,\na \"go for release\" is read as a go for production, the alias still serves yesterday's build while\neveryone is told the fix is live, nobody wrote down which deployment to go back to. This skill\nmoves one build through the team's environments in order, and each of those is a check it makes,\nnot a hope.\n\nEvery command comes from the project's own `RELEASING.md`, because commands change with the code\nand a guessed one is the most dangerous kind. Who gives each go comes from the team's profile,\nbecause that changes with the people. The skill carries the rules that do not change.\n\n## When to Use\n\n- \"Release this\", \"cut a preview\", \"promote to staging\", \"promote to production\".\n- \"Is it on staging?\", \"what number is this release?\", \"roll it back\".\n- Someone asks to skip a step, or to go straight to production.\n- A build's name does not match where it is going, or an address may not serve the new build.\n\nDo not use it for one ticket's own preview (`implement-ticket`), for writing the version's note\n(`release-notes`, which this skill hands the notes to), or for the Linear writes themselves\n(`track-in-linear`, which this skill hands the ticket marks to).\n\n| Job | Owner |\n|---|---|\n| A build moved one step, named, checked, recorded | this skill |\n| The note for the version: the semver call, what shipped, where it is recorded | `release-notes` |\n| Every ticket the release carries marked, each read back | `track-in-linear` |\n| One ticket built, to its own preview | `implement-ticket` |\n\n## Bindings\n\nA project can adapt this skill without copying it: it binds these slots and adds to the steps by\ntheir ids, as the pack's\n[project-adaptation guide](https://github.com/crissmoldovan/agent-skills/blob/main/docs/project-adaptation.md)\ndescribes. A slot nobody binds keeps its default.\n\n| id | slot | kind | default |\n|---|---|---|---|\n| B1 | where the team's profile is: steps in order, each step's branch, address, version name and go, what each waits for, and who may skip | value | `LINEAR.md` at the root of the repository, in the shape `track-in-linear` describes; with none, or a value it leaves out, ask the person bound as B2 |\n| B2 | the person the session works for | value | the person running the session |\n| B3 | where every command comes from | value | `RELEASING.md` at the root of the repository, in the shape of [the template](references/releasing-template.md) |\n| B4 | where the release's note is written and placed | skill | `release-notes` |\n| B5 | the rules the ticket marks follow | skill | `track-in-linear` |\n| B6 | who sends the messages this skill drafts | value | a person, from the exact text in the report; this skill sends nothing |\n\n## Hard lines\n\n- **H1. In order, each step on its own go.** Local, the shared preview, staging, production, over\n  the steps the profile lists. The full route is the default. A piece of work's own preview\n  (`X.Y.Z-preview.<slug>.N`) is not a release and never goes to staging.\n- **H2. Production only on an explicit yes that names production,** from someone the profile\n  names for production, for this release. Ask one question: \"Put 2.4.0 on production\n  (`https://example.com`) now? yes or no\". \"All go\", \"go for release\", a go for staging, a go for an\n  earlier release, or last time's go is not it.\n- **H3. Every confirmation a step waits for, each recorded.** One person's go is not another's.\n  A waiver needs the explicit word of someone the profile names for that step and counts for the\n  release it names, never the next. A request to skip counts only from the people the profile\n  names for skipping; until it counts, the work takes the full route. Anyone else's \"go\" is\n  evidence, shown to the person; nothing ships on it.\n- **H4. Never guess a command.** No `RELEASING.md`, or a step it does not cover: stop and ask.\n- **H5. Ship through a pull request into the step's branch.** Never a local merge into a shared\n  branch. Staging's pull request comes from the shared preview's branch, never from a branch cut\n  from staging.\n- **H6. The name follows the environment.** Never `-preview` on staging, never a suffix on\n  production. The pull request's title, the notes, the version label and every message carry it.\n- **H7. The address serves the commit shipped** before anything is recorded or anyone is told.\n  An alias follows the last build to finish, not the newest commit.\n- **H8. The way back is known before each step,** written into the record and the notes, and\n  never run without that step's go.\n- **H9. Nothing is sent.** Messages are drafted for the person bound as B6: \"on the preview (or\n  staging) for you to check\", never \"done\" before the work is accepted on production. Never call a\n  preview or staging \"live\".\n\n## Prerequisites\n\n- The team profile read for the release values (B1), and the project's `RELEASING.md` (B3) read\n  end to end. No `RELEASING.md`: offer [the template](references/releasing-template.md) and stop.\n- The repository's own rules (`AGENTS.md`, `CLAUDE.md`) read: they come first. Where the team's\n  Standing rules page and this skill disagree, the page is newer: stop and ask.\n\n## Procedure\n\n1. **S1. Know where you are:** a clean tree; the branch and its branch point; what it carries\n   (`git log <target>..<source>`); nothing held back rides along (check ancestry); and the way back\n   for this step, from `RELEASING.md` (on a preview, the build it replaces; on staging, reverting\n   its pull request or the previous deployment; on production, the deployment noted in S6).\n   **Complete when:** the carried commits and the way back are written down.\n2. **S2. Get the go** for this step and this release (H2, H3), with where and when it was given.\n   **Complete when:** every confirmation the step waits for is recorded, or the build stays and the\n   notes say what it waits for.\n3. **S3. Name it, stamp it, write its notes.** Semver by what a reader relies on: a fix raises\n   PATCH, something new MINOR, a breaking change MAJOR; the person may overrule the proposed\n   number. The stamp is its own pull request into the current step's branch, merged before the\n   promotion, as `RELEASING.md` says. The notes (what is in it, what it waits for, how to undo it)\n   are written as B4 writes them. **Complete when:** the stamp is merged and the notes exist.\n4. **S4. Check before,** as `RELEASING.md` says. A browser check only where the team does one: on\n   staging, after it lands, with results in the staging notes. **Complete when:** the checks pass,\n   with their output kept.\n5. **S5. Ship through a pull request** into the step's branch (H5): say the branch point and the\n   target, push, open it; it merges as the repository's rules say. **Complete when:** it is merged\n   and the deployment has finished.\n6. **S6. Check the address serves it** (H7), with `RELEASING.md`'s command. On production, run\n   its live checks and write down the deployment to go back to. **Complete when:** the address\n   reports the commit shipped.\n7. **S7. Record it, before any message:** the step, the deployment, the commit served, the UTC\n   time, who shipped it on whose word, the way back. **Complete when:** the record is written where\n   `RELEASING.md` says.\n8. **S8. Mark the tickets** the release carries, through B5: each ticket it completes gets the\n   shipped status with this step's stage mark and the version label as shipped; a ticket only partly\n   in it keeps its status and gets a comment naming the part that arrived. One comment each, read\n   back; never accepted. A\n   team on Linear's Releases checks the release appeared in its pipeline instead. **Complete\n   when:** every carried ticket is marked or listed with why it was left.\n9. **S9. Draft who to tell:** the people the profile lists for this step, and for each carried\n   ticket the person who reported it. One draft each, with the notes, shown together as exact text\n   for the person bound as B6 (H9). No list in the profile: ask who to tell. **Complete when:** the\n   drafts are in the report.\n\n**Anything deferred** gets its own line, an owner and a trigger. A release is not closed until\neach is done, or moved to a named later release with the notes saying so; never dropped silently.\n\n## Usage Examples\n\n```text\nUse promote-release: put what is on the shared preview onto staging. Name it, stamp it through a\npull request, check the staging address serves the new commit, mark the tickets, and draft who to\ntell. Stop before production.\n```\n\n```text\n2.4.0-staging.1 has both confirmations recorded. Ask me the production question, and if I say\nyes, take it to production and write down the deployment we would go back to.\n```\n\n```text\nThe client asked us to skip staging for tonight's fix. Check who the profile says can skip a step,\nand tell me what that means for this release.\n```\n\n```text\nProduction is serving the wrong build after 2.4.0. Roll it back the way RELEASING.md says,\nrecord it, and draft the note to the people who were told it shipped.\n```\n\n## Pitfalls\n\n| Mistake | Instead |\n|---|---|\n| Staging's branch cut from staging, with work added | A pull request from the shared preview's branch |\n| `-preview` on staging; a suffix on production | The stamp: `X.Y.Z-staging.N`; the plain `X.Y.Z` |\n| Production on \"all go\", a go for staging, or last time's go | The one question naming production; act on its yes |\n| One confirmation taken for all; one person's go for another's | Every confirmation the step waits for, each recorded |\n| A skip or waiver taken from a general go or a precedent | The explicit word of the people the profile names; else the full route |\n| \"Deployed\" read as \"served\" | Check the address reports the commit shipped |\n| A command remembered from last time | The command in `RELEASING.md`, or stop and ask |\n| Browser checks before the preview is out | On staging, after it lands, if the team does them |\n\n## Verification\n\n- [ ] The steps ran in order, each on its own go, with every confirmation recorded with where and when\n- [ ] Production, if reached, followed a yes to the one question naming production and this release\n- [ ] Every command came from `RELEASING.md`; nothing was guessed\n- [ ] The release name matches the environment on the pull request, the notes, the labels and the drafts\n- [ ] Each step shipped through a pull request into its branch; no local merge into a shared branch\n- [ ] The address served the commit shipped before anything was recorded or drafted\n- [ ] The record holds the step, deployment, commit, UTC time, who shipped it on whose word, and the way back\n- [ ] Every carried ticket is marked through `track-in-linear`, or listed with why it was left; none was marked accepted\n- [ ] Nothing was sent; every message is a draft in the report\n- [ ] Every deferred item has an owner and a trigger\n","bodyHtml":"<h2 id=\"promote-a-release\">Promote a release</h2>\n<p>A release goes wrong in a handful of ways that look like nothing at the time: a build that says\n&quot;preview&quot; reaches staging, a staging branch gets work added that never went through the preview,\na &quot;go for release&quot; is read as a go for production, the alias still serves yesterday&#39;s build while\neveryone is told the fix is live, nobody wrote down which deployment to go back to. This skill\nmoves one build through the team&#39;s environments in order, and each of those is a check it makes,\nnot a hope.</p>\n<p>Every command comes from the project&#39;s own <code>RELEASING.md</code>, because commands change with the code\nand a guessed one is the most dangerous kind. Who gives each go comes from the team&#39;s profile,\nbecause that changes with the people. The skill carries the rules that do not change.</p>\n<h3 id=\"when-to-use\">When to Use</h3>\n<ul>\n<li>&quot;Release this&quot;, &quot;cut a preview&quot;, &quot;promote to staging&quot;, &quot;promote to production&quot;.</li>\n<li>&quot;Is it on staging?&quot;, &quot;what number is this release?&quot;, &quot;roll it back&quot;.</li>\n<li>Someone asks to skip a step, or to go straight to production.</li>\n<li>A build&#39;s name does not match where it is going, or an address may not serve the new build.</li>\n</ul>\n<p>Do not use it for one ticket&#39;s own preview (<code>implement-ticket</code>), for writing the version&#39;s note\n(<code>release-notes</code>, which this skill hands the notes to), or for the Linear writes themselves\n(<code>track-in-linear</code>, which this skill hands the ticket marks to).</p>\n<table>\n<thead>\n<tr>\n<th>Job</th>\n<th>Owner</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>A build moved one step, named, checked, recorded</td>\n<td>this skill</td>\n</tr>\n<tr>\n<td>The note for the version: the semver call, what shipped, where it is recorded</td>\n<td><code>release-notes</code></td>\n</tr>\n<tr>\n<td>Every ticket the release carries marked, each read back</td>\n<td><code>track-in-linear</code></td>\n</tr>\n<tr>\n<td>One ticket built, to its own preview</td>\n<td><code>implement-ticket</code></td>\n</tr>\n</tbody></table>\n<h3 id=\"bindings\">Bindings</h3>\n<p>A project can adapt this skill without copying it: it binds these slots and adds to the steps by\ntheir ids, as the pack&#39;s\n<a href=\"https://github.com/crissmoldovan/agent-skills/blob/main/docs/project-adaptation.md\" target=\"_blank\" rel=\"noreferrer\">project-adaptation guide</a>\ndescribes. A slot nobody binds keeps its default.</p>\n<table>\n<thead>\n<tr>\n<th>id</th>\n<th>slot</th>\n<th>kind</th>\n<th>default</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>B1</td>\n<td>where the team&#39;s profile is: steps in order, each step&#39;s branch, address, version name and go, what each waits for, and who may skip</td>\n<td>value</td>\n<td><code>LINEAR.md</code> at the root of the repository, in the shape <code>track-in-linear</code> describes; with none, or a value it leaves out, ask the person bound as B2</td>\n</tr>\n<tr>\n<td>B2</td>\n<td>the person the session works for</td>\n<td>value</td>\n<td>the person running the session</td>\n</tr>\n<tr>\n<td>B3</td>\n<td>where every command comes from</td>\n<td>value</td>\n<td><code>RELEASING.md</code> at the root of the repository, in the shape of <a href=\"references/releasing-template.md\">the template</a></td>\n</tr>\n<tr>\n<td>B4</td>\n<td>where the release&#39;s note is written and placed</td>\n<td>skill</td>\n<td><code>release-notes</code></td>\n</tr>\n<tr>\n<td>B5</td>\n<td>the rules the ticket marks follow</td>\n<td>skill</td>\n<td><code>track-in-linear</code></td>\n</tr>\n<tr>\n<td>B6</td>\n<td>who sends the messages this skill drafts</td>\n<td>value</td>\n<td>a person, from the exact text in the report; this skill sends nothing</td>\n</tr>\n</tbody></table>\n<h3 id=\"hard-lines\">Hard lines</h3>\n<ul>\n<li><strong>H1. In order, each step on its own go.</strong> Local, the shared preview, staging, production, over\nthe steps the profile lists. The full route is the default. A piece of work&#39;s own preview\n(<code>X.Y.Z-preview.&lt;slug&gt;.N</code>) is not a release and never goes to staging.</li>\n<li><strong>H2. Production only on an explicit yes that names production,</strong> from someone the profile\nnames for production, for this release. Ask one question: &quot;Put 2.4.0 on production\n(<code>https://example.com</code>) now? yes or no&quot;. &quot;All go&quot;, &quot;go for release&quot;, a go for staging, a go for an\nearlier release, or last time&#39;s go is not it.</li>\n<li><strong>H3. Every confirmation a step waits for, each recorded.</strong> One person&#39;s go is not another&#39;s.\nA waiver needs the explicit word of someone the profile names for that step and counts for the\nrelease it names, never the next. A request to skip counts only from the people the profile\nnames for skipping; until it counts, the work takes the full route. Anyone else&#39;s &quot;go&quot; is\nevidence, shown to the person; nothing ships on it.</li>\n<li><strong>H4. Never guess a command.</strong> No <code>RELEASING.md</code>, or a step it does not cover: stop and ask.</li>\n<li><strong>H5. Ship through a pull request into the step&#39;s branch.</strong> Never a local merge into a shared\nbranch. Staging&#39;s pull request comes from the shared preview&#39;s branch, never from a branch cut\nfrom staging.</li>\n<li><strong>H6. The name follows the environment.</strong> Never <code>-preview</code> on staging, never a suffix on\nproduction. The pull request&#39;s title, the notes, the version label and every message carry it.</li>\n<li><strong>H7. The address serves the commit shipped</strong> before anything is recorded or anyone is told.\nAn alias follows the last build to finish, not the newest commit.</li>\n<li><strong>H8. The way back is known before each step,</strong> written into the record and the notes, and\nnever run without that step&#39;s go.</li>\n<li><strong>H9. Nothing is sent.</strong> Messages are drafted for the person bound as B6: &quot;on the preview (or\nstaging) for you to check&quot;, never &quot;done&quot; before the work is accepted on production. Never call a\npreview or staging &quot;live&quot;.</li>\n</ul>\n<h3 id=\"prerequisites\">Prerequisites</h3>\n<ul>\n<li>The team profile read for the release values (B1), and the project&#39;s <code>RELEASING.md</code> (B3) read\nend to end. No <code>RELEASING.md</code>: offer <a href=\"references/releasing-template.md\">the template</a> and stop.</li>\n<li>The repository&#39;s own rules (<code>AGENTS.md</code>, <code>CLAUDE.md</code>) read: they come first. Where the team&#39;s\nStanding rules page and this skill disagree, the page is newer: stop and ask.</li>\n</ul>\n<h3 id=\"procedure\">Procedure</h3>\n<ol>\n<li><strong>S1. Know where you are:</strong> a clean tree; the branch and its branch point; what it carries\n(<code>git log &lt;target&gt;..&lt;source&gt;</code>); nothing held back rides along (check ancestry); and the way back\nfor this step, from <code>RELEASING.md</code> (on a preview, the build it replaces; on staging, reverting\nits pull request or the previous deployment; on production, the deployment noted in S6).\n<strong>Complete when:</strong> the carried commits and the way back are written down.</li>\n<li><strong>S2. Get the go</strong> for this step and this release (H2, H3), with where and when it was given.\n<strong>Complete when:</strong> every confirmation the step waits for is recorded, or the build stays and the\nnotes say what it waits for.</li>\n<li><strong>S3. Name it, stamp it, write its notes.</strong> Semver by what a reader relies on: a fix raises\nPATCH, something new MINOR, a breaking change MAJOR; the person may overrule the proposed\nnumber. The stamp is its own pull request into the current step&#39;s branch, merged before the\npromotion, as <code>RELEASING.md</code> says. The notes (what is in it, what it waits for, how to undo it)\nare written as B4 writes them. <strong>Complete when:</strong> the stamp is merged and the notes exist.</li>\n<li><strong>S4. Check before,</strong> as <code>RELEASING.md</code> says. A browser check only where the team does one: on\nstaging, after it lands, with results in the staging notes. <strong>Complete when:</strong> the checks pass,\nwith their output kept.</li>\n<li><strong>S5. Ship through a pull request</strong> into the step&#39;s branch (H5): say the branch point and the\ntarget, push, open it; it merges as the repository&#39;s rules say. <strong>Complete when:</strong> it is merged\nand the deployment has finished.</li>\n<li><strong>S6. Check the address serves it</strong> (H7), with <code>RELEASING.md</code>&#39;s command. On production, run\nits live checks and write down the deployment to go back to. <strong>Complete when:</strong> the address\nreports the commit shipped.</li>\n<li><strong>S7. Record it, before any message:</strong> the step, the deployment, the commit served, the UTC\ntime, who shipped it on whose word, the way back. <strong>Complete when:</strong> the record is written where\n<code>RELEASING.md</code> says.</li>\n<li><strong>S8. Mark the tickets</strong> the release carries, through B5: each ticket it completes gets the\nshipped status with this step&#39;s stage mark and the version label as shipped; a ticket only partly\nin it keeps its status and gets a comment naming the part that arrived. One comment each, read\nback; never accepted. A\nteam on Linear&#39;s Releases checks the release appeared in its pipeline instead. <strong>Complete\nwhen:</strong> every carried ticket is marked or listed with why it was left.</li>\n<li><strong>S9. Draft who to tell:</strong> the people the profile lists for this step, and for each carried\nticket the person who reported it. One draft each, with the notes, shown together as exact text\nfor the person bound as B6 (H9). No list in the profile: ask who to tell. <strong>Complete when:</strong> the\ndrafts are in the report.</li>\n</ol>\n<p><strong>Anything deferred</strong> gets its own line, an owner and a trigger. A release is not closed until\neach is done, or moved to a named later release with the notes saying so; never dropped silently.</p>\n<h3 id=\"usage-examples\">Usage Examples</h3>\n<pre><code class=\"language-text\">Use promote-release: put what is on the shared preview onto staging. Name it, stamp it through a\npull request, check the staging address serves the new commit, mark the tickets, and draft who to\ntell. Stop before production.\n</code></pre>\n<pre><code class=\"language-text\">2.4.0-staging.1 has both confirmations recorded. Ask me the production question, and if I say\nyes, take it to production and write down the deployment we would go back to.\n</code></pre>\n<pre><code class=\"language-text\">The client asked us to skip staging for tonight&#39;s fix. Check who the profile says can skip a step,\nand tell me what that means for this release.\n</code></pre>\n<pre><code class=\"language-text\">Production is serving the wrong build after 2.4.0. Roll it back the way RELEASING.md says,\nrecord it, and draft the note to the people who were told it shipped.\n</code></pre>\n<h3 id=\"pitfalls\">Pitfalls</h3>\n<table>\n<thead>\n<tr>\n<th>Mistake</th>\n<th>Instead</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Staging&#39;s branch cut from staging, with work added</td>\n<td>A pull request from the shared preview&#39;s branch</td>\n</tr>\n<tr>\n<td><code>-preview</code> on staging; a suffix on production</td>\n<td>The stamp: <code>X.Y.Z-staging.N</code>; the plain <code>X.Y.Z</code></td>\n</tr>\n<tr>\n<td>Production on &quot;all go&quot;, a go for staging, or last time&#39;s go</td>\n<td>The one question naming production; act on its yes</td>\n</tr>\n<tr>\n<td>One confirmation taken for all; one person&#39;s go for another&#39;s</td>\n<td>Every confirmation the step waits for, each recorded</td>\n</tr>\n<tr>\n<td>A skip or waiver taken from a general go or a precedent</td>\n<td>The explicit word of the people the profile names; else the full route</td>\n</tr>\n<tr>\n<td>&quot;Deployed&quot; read as &quot;served&quot;</td>\n<td>Check the address reports the commit shipped</td>\n</tr>\n<tr>\n<td>A command remembered from last time</td>\n<td>The command in <code>RELEASING.md</code>, or stop and ask</td>\n</tr>\n<tr>\n<td>Browser checks before the preview is out</td>\n<td>On staging, after it lands, if the team does them</td>\n</tr>\n</tbody></table>\n<h3 id=\"verification\">Verification</h3>\n<ul>\n<li><input disabled=\"\" type=\"checkbox\"> The steps ran in order, each on its own go, with every confirmation recorded with where and when</li>\n<li><input disabled=\"\" type=\"checkbox\"> Production, if reached, followed a yes to the one question naming production and this release</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every command came from <code>RELEASING.md</code>; nothing was guessed</li>\n<li><input disabled=\"\" type=\"checkbox\"> The release name matches the environment on the pull request, the notes, the labels and the drafts</li>\n<li><input disabled=\"\" type=\"checkbox\"> Each step shipped through a pull request into its branch; no local merge into a shared branch</li>\n<li><input disabled=\"\" type=\"checkbox\"> The address served the commit shipped before anything was recorded or drafted</li>\n<li><input disabled=\"\" type=\"checkbox\"> The record holds the step, deployment, commit, UTC time, who shipped it on whose word, and the way back</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every carried ticket is marked through <code>track-in-linear</code>, or listed with why it was left; none was marked accepted</li>\n<li><input disabled=\"\" type=\"checkbox\"> Nothing was sent; every message is a draft in the report</li>\n<li><input disabled=\"\" type=\"checkbox\"> Every deferred item has an owner and a trigger</li>\n</ul>\n","outline":["When to Use","Bindings","Hard lines","Prerequisites","Procedure","Usage Examples","Pitfalls","Verification"],"words":1912}
