---
name: release-docs-generator
description: Find out what shipped from a Shortcut objective, epic, or story, verify it
  against the Appcues GitHub repos, and turn it into help center article drafts. Use when
  the user names a Shortcut objective, epic, or story and asks what shipped, what needs
  documenting, whether a feature needs its own doc, or where docs should live. Also
  triggers on "release docs", "release notes", "changelog", "what shipped", "document this
  epic", "new feature docs", and "check Shortcut/GitHub for updates". Use it for
  research-only asks too. The scoping step stands alone and stops at a scope summary
  without writing anything. Even a casual "look at epic 12345 and see what's in it" or "go
  verify this in github" should trigger this skill.
metadata:
  author: sofia
  version: "4.0"
allowed-tools: Bash Read Write Glob Grep mcp__shortcut__objectives-get-by-id mcp__shortcut__objectives-search mcp__shortcut__epics-search mcp__shortcut__epics-get-by-id mcp__shortcut__stories-search mcp__shortcut__stories-get-by-id mcp__shortcut__labels-list mcp__shortcut__labels-get-stories mcp__claude-in-chrome__navigate mcp__claude-in-chrome__computer mcp__claude-in-chrome__read_page mcp__claude-in-chrome__tabs_context_mcp
---

# Release Docs Generator

Four steps: scope it from Shortcut, verify it in the code, ask what the code can't answer,
hand off to `help-center-writer`.

**Not this skill:** diagnosing a reported symptom or a suspected bug (use
`issue-investigator`); writing an article when you already know what to document (use
`help-center-writer` directly).

## Setup

```bash
export PATH="/usr/local/bin:$PATH"
source "$APPCUES_HOME/.env"
```

GitHub goes through the `gh` CLI via Bash, never the `mcp__github__*` tools. Pass the token
per command: `appcues/*` repos use `GH_TOKEN="$GITHUB_APPCUES_TOKEN"`, everything else uses
`GH_TOKEN="$GITHUB_PERSONAL_TOKEN"`. The `gh` keyring is invalid, so an explicit token is
not optional.

---

## Step 1 — Scope from Shortcut

Shortcut defines the boundary. Get the stories and their workflow states in one pass:

```
mcp__shortcut__epics-get-by-id  { "epicPublicId": <id>, "full": true }
mcp__shortcut__stories-search   { "epic": <id> }
```

Pull **all** stories, not just done ones. The unstarted and "Won't Do" ones are what tell
you where the feature's edges are, and they are the difference between "not supported" and
"not supported yet" in the finished article.

Read full detail (`stories-get-by-id`, `full: true`) only for the two or three stories that
define the feature's shape. Story descriptions are plans, not records of what shipped.

Size the anchor to the work:

| Scope | Anchor | Likely output |
|---|---|---|
| Big release | objective (`objectives-get-by-id` + `epics-search`) | several articles |
| One feature | one epic | one article, plus edits to neighbours |
| Small improvement | one or a few story IDs, or a label | edit the existing article |
| No ticket | the user's description | targeted edit |

**Output:** what shipped, what didn't, and what is done but still gated. Present it.

**Stop here if that is what they asked for.** "What shipped," "what needs documenting,"
"does this need its own doc," and "where should this live" are all answered by this step.
Do not carry on to writing or pushing unless they ask.

---

## Step 2 — Verify in the code

Shortcut says what shipped and why. The code says what the user actually sees, and it is the
only source that is never out of date.

**Read the most recently merged PR's body first.** This is the highest-value single move in
the skill. A PR merged days before you started can reverse a rule that every ticket, mock,
and design file still describes the old way, and its body usually explains the reversal in
plain language. Trusting the tickets over the newest PR is how a draft ends up teaching
something that no longer works.

Then work outward:

```bash
# repos come from the PRs linked in the stories — never a date sweep across repos
GH_TOKEN="$GITHUB_APPCUES_TOKEN" gh api "search/issues?q=repo:appcues/<repo>+<feature>+is:pr" \
  --jq '.items[] | "\(.number) | merged=\(.pull_request.merged_at // "NO") | \(.title)"'

GH_TOKEN="$GITHUB_APPCUES_TOKEN" gh pr view <n> --repo appcues/<repo> --json title,body,mergedAt

GH_TOKEN="$GITHUB_APPCUES_TOKEN" gh api repos/appcues/<repo>/contents/<path>?ref=<branch> \
  --jq '.content' | base64 -d
```

Default branch differs by repo: `builder-ui` uses `main`, `customer-api` and `api` use
`master`. A 404 on `main` usually means you want `master`.

Read source, not just PR descriptions. Every constraint worth documenting — size caps,
what runs where, permission splits, the exact set of options — comes from source. Go after:

- The registry or config that enumerates the feature's options (block lists, action lists,
  type maps). One file often gives you the complete set.
- The component that renders the settings panel, for real UI labels and field-level rules.
- Validation and publish paths, for limits and rejection cases.
- Anything gating by experience type or permission, for the "not supported in X" list.
- Runtime or delivery code, for what the feature can actually reach.

Confirm a claim before you make it. Search hits on a symbol are not proof a surface exists —
find where it renders. When a claim can't be settled from source, mark it in the draft:

```
> **[UNVERIFIED]** <claim>. Could not confirm from source — please verify before publishing.
```

Collect those into a list for the user. If they have the live app open and the labels are
still ambiguous, the Chrome tools can settle it; offer, don't require.

**Output:** a verified fact list, plus anything that contradicts the tickets. Flag the
contradictions explicitly — they are usually the most important thing you found.

---

## Step 3 — Ask what the code can't tell you

Two to four questions, only what you genuinely cannot determine:

1. **Public name.** Internal codenames differ from what customers see. Check the PM
   Nomenclature Map if there is one.
2. **Availability.** Beta or GA, and how a customer gets access. A doc for a gated feature
   needs to say what to do about it.
3. **In-scope or not.** In-flight work that changes the first screen of a workflow either
   ships with it or it doesn't, and the answer changes the article's structure.
4. **Known gotchas.** What support is already being asked, and anything they'd rather see
   fixed than documented.

---

## Step 4 — Hand off to help-center-writer

Invoke `help-center-writer`. It owns article type and title format, the templates, the
writing rules, the AI-slop check, the Helpjuice API, and category selection. Do not restate
any of it here.

Two things this skill adds on top:

**Sanitize before saving.** A reader should learn how to use the feature, not how it is
built. Strip feature flag names, entitlement keys, internal service names, internal routes
and endpoints, database and schema details, and Shortcut IDs. Grep the finished draft for
them rather than trusting a read-through. Unpublished Helpjuice drafts are visible to the
whole workspace, so treat draft content as semi-public.

**Screenshots.** Never put visible placeholder text in a draft. If the user is adding images
later, leave HTML comments (`<!-- SCREENSHOT: what this shot needs -->`) — invisible to
readers, and they survive a Helpjuice save along with `<ol start="N">`, so a numbered list
won't restart at 1 around them.

Push as an **unpublished** draft and stop. The user publishes manually, which fires their own
Slack automation. Never send Slack from here.

When you edit an existing article, save the fetched body to `drafts/<slug>.before.html`
before touching it. It is the diff baseline and the only clean way back if the change has to
be reverted.

---

## Rules that keep this honest

- **Done ≠ shipping.** A completed story can be flag-gated or cut from the release. Confirm
  before documenting.
- **Don't publish an edit that links to nothing.** If an edit to a live article points at an
  article that isn't published yet, the link 404s. Stage the edit and push both together.
- **Legacy vs. new builder.** The help center has parallel articles for the old builder and
  for Flows 2.0 / Embeds, and keyword search ranks the legacy one first. Pick the target by
  the story's labels and surface, not by search rank. A change to the shared builder usually
  touches both the Flows 2.0 and the Embeds article. Ask if you can't tell which is current.
- **Bug-fix PRs are the best troubleshooting source.** They name the exact failure mode.
- **Cursor Bugbot summaries** (`<!-- CURSOR_SUMMARY -->`) are often the most informative part
  of a PR body.
- Capitalize Appcues product names: Flows, Pins, Banners, Checklists, Launchpads, Embeds,
  Workflows.
- If a repo is inaccessible, say which one and carry on.

## Never

- Read `.env`, `.env.*`, `*.pem`, `*.key`, `*.secret`, `secrets/`, `credentials/`, `.aws/`,
  `.gcp/`, or deployment and CI config (`docker-compose.yml`, `Dockerfile`, `k8s/`,
  `terraform/`, `*.tfvars`, `.github/workflows/`). If a diff touches them, skip those files
  and say so.
- Echo a credential. Reference `${VAR}` and never interpolate a key into a logged command.
- Publish an article automatically, or send Slack.
