Retire an issue's working docs out of the repo — GitHub issue → GitHub wiki (post-merge, closed issue, specs/ artifacts), or Jira issue → Confluence (pre-merge, on the feature branch, docs added on the branch). An optional first word names the platform ('gh', 'jira'); otherwise detected from the argument or the branch. Never pushes the code repo. Use only when the user asks to archive an issue, empty out specs/ for a done task, or move docs to the wiki or Confluence.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Archive Issue?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/foyzulkarim-archive-issue)
---
name: archive-issue
description: "Retire an issue's working docs out of the repo — GitHub issue → GitHub wiki (post-merge, closed issue, specs/ artifacts), or Jira issue → Confluence (pre-merge, on the feature branch, docs added on the branch). An optional first word names the platform ('gh', 'jira'); otherwise detected from the argument or the branch. Never pushes the code repo. Use only when the user asks to archive an issue, empty out specs/ for a done task, or move docs to the wiki or Confluence."
model: inherit
color: gold
---
# Archive Issue
Moves an issue's docs out of the code repo into the tracker's knowledge base,
then removes the local copies in one local commit. Two paths:
| Path | Tracker → target | Runs | Files |
|---|---|---|---|
| **G** | GitHub issue → GitHub wiki | after merge, on the default branch; issue must be closed | `specs/` artifacts, found by the naming contract |
| **J** | Jira issue → Confluence | before merge, on the feature branch; refuses the default branch | `.md` and image files added on the branch; the developer picks |
**Neither path ever pushes the code repo.** Each ends with a local commit and
tells the developer it is unpushed. Path G still pushes the wiki — a separate
repo — after confirmation.
**Both paths delete in the same order:** publish → verify → show the delete
list → the developer confirms → delete → the developer confirms the commit.
No file is deleted before the developer confirms the delete list.
## Select the path (no bash)
1. **Platform word** — if the first arg is `gh`/`github` or `jira`, use that
path. The rest must match it (`gh` → a number, `jira` → `[A-Z]+-\d+`); if
not, hard-stop with the expected form (`Usage: /archive-issue jira PROJ-42`).
2. **No platform word** — a numeric arg (`70`, `#70`) → Path G; a
`[A-Z]+-\d+` arg → Path J.
3. **No arg** — if the current branch name contains `[A-Z]+-\d+` → Path J with
that key. Otherwise ask once for the issue number or Jira key.
Then follow only that path's steps.
## Path G — GitHub issue → GitHub wiki
Once an issue closes, GitHub is the source of truth for its scope — but its requirements,
architecture, code-review, and QA docs under `specs/` still hold reasoning worth keeping. This
skill retires them out of `specs/` straight into the GitHub wiki. **Nothing archived is ever
committed to the main repo** — the wiki is the only place this content lives.
This skill resolves everything from the issue number alone via `gh issue view` plus the
artifact naming contract (`REQ-<N>-<slug>.md` / `ARCH-<N>-<slug>.md` / `TASKS-<N>-<slug>.md` /
`QA-<N>-<slug>.md` / `QA-RESULTS-<N>-<slug>.md` and the `> **Issue:** #N` metadata row) that
`plan-requirements`, `plan-architecture`, `generate-tasks`, `plan-qa`, and `execute-qa` write. There is no separate anchor file — GitHub already holds the title,
URL, and state.
**Declared dependency:** matching review reports to this issue reads the `Target` metadata
row defined in `review/report-template.md:8`. If that row's format ever changes, review
discovery here breaks — see Step G2's failure behavior for what happens when it does.
### Step G0 — Ensure the local wiki clone is current
Work happens in a local working clone of the wiki repo, conventionally at `.wiki/` in the main
repo root:
- If `.wiki/` doesn't exist: `git clone <repo>.wiki.git .wiki`. If the clone fails because the
wiki was never initialized on GitHub, **stop** and tell the developer to create the first
wiki page in the GitHub UI (a repo's wiki doesn't exist as a cloneable git remote until at
least one page has been saved there) — do not attempt to create the wiki repo yourself.
- If it exists: `git -C .wiki pull --ff-only` before making any changes, so you're not
archiving on top of a stale copy.
- Verify `.wiki/` is listed in `.gitignore`; if it isn't, add it — this clone must never enter
the main repo's history.
- If `.wiki/Home.md` and `.wiki/_Sidebar.md` don't exist yet (first archive ever in this repo),
they're bootstrapped in Step G5, not here.
All of Steps G3–G5 write into this clone, not into the main repo.
### Step G1 — Resolve the issue, confirm closed
Take the issue number from path selection (`/archive-issue 70`, `/archive-issue gh 70`, or
"archive issue 70").
`gh issue view <N> --json title,url,state,closedAt` gives the title, URL, state, and close
date. If the state is not `CLOSED`, **stop and say so** — this is a retirement step, not a
drafting one; open-issue artifacts stay in `specs/` where the active pipeline expects them.
Make no changes to `specs/` or `.wiki/`.
### Step G2 — Discover the source artifacts
Resolve each source for issue `<N>` using this fallback order — **never** report "nothing to
archive" while files for `<N>` remain unmatched under `specs/`:
| Source | How it's found |
|---|---|
| `specs/context/<N>.md` | direct path |
| `specs/requirements/REQ-<N>-*.md` | glob first; if it misses, grep `specs/requirements/*.md` for a `> **Issue:** #<N>` row (covers artifacts written before the naming contract landed); if still nothing, check for an un-prefixed `REQ-<slug>.md` whose slug matches a `{type}/<N>/{slug}` branch found in `git for-each-ref --format='%(refname:short)' refs/heads refs/remotes`, or — when that branch was already deleted, the usual case for an old issue — the slugified issue title from Step G1 |
| `specs/architecture/ARCH-<N>-*.md` | same three-tier fallback as REQ |
| `specs/tasks/TASKS-<N>-*.md` | same three-tier fallback as REQ (the TASKS file shares the `<N>-<slug>` stem with ARCH; ARCH's `> **Tasks:**` header row names it explicitly when present) |
| `specs/reviews/CODE-REVIEW-PIPELINE-<N>-*.md` | glob — the filename already carries `<N>` because it derives from the ARCH filename (`review/SKILL.md`'s pipeline-mode save step) |
| `specs/reviews/CODE-REVIEW-{PR,BRANCH,STAGED,DIFF}-*.md` | read **every** file's `Target` row (`review/report-template.md:8`) and match it to issue `<N>` — never by assuming a PR number equals the issue number, and never by directory. Branch-mode: `Target` is a branch name — match if it is `{type}/<N>/{slug}`. PR-mode: `Target` is a PR URL — resolve its head branch (`gh pr view <PR#> --json headRefName`) and match that the same way. Staged/diff-mode reports carry no branch reference and can only be attributed if the report content otherwise names issue `<N>` explicitly |
| `specs/qa/QA-<N>-*.md` | same three-tier fallback as REQ (glob → `> **Issue:** #<N>` header row → slug match). A `QA-PR-<number>.md` fallback (general-mode plan with no issue) attributes like a PR-mode review report: resolve the PR's head branch via `gh pr view <number> --json headRefName` and match `{type}/<N>/{slug}` |
| `specs/qa/QA-RESULTS-<N>-*.md` | shares its plan's stem with a `RESULTS` infix (`QA-21-billing.md` → `QA-RESULTS-21-billing.md`) — attribute it exactly as its plan resolved; a results file whose plan is unattributed stays unattributed too |
Most issues (bugs, chores, small enhancements) never had a REQ/ARCH/review doc — only archive
what actually exists. Don't invent placeholder pages for missing docs, and don't rename
anything — only the directory changes (`specs/requirements/` → `issue-NNN/`), never the
filename.
**Failure mode: loud, not blocking.** When a file under `specs/` cannot be attributed to `<N>`
by any tier above — a `Target` row absent, malformed, or naming a different issue's branch —
do **not** stop and do **not** silently skip it. Archive everything you *can* resolve, then end
your report with a prominent unresolved block:
```
⚠ 2 file(s) under specs/ could not be attributed to issue #35 and were NOT archived:
specs/reviews/CODE-REVIEW-PR-41.md — Target row absent
specs/reviews/CODE-REVIEW-BRANCH-x.md — Target 'feat/12/other' ≠ issue #35
These remain in the repo. Attribute them manually or re-run after fixing the Target row.
```
Unresolved files stay exactly where they are and are **excluded from Step G7's `git rm`** — a
file that was never archived must never be deleted. This is why discovery failure is
non-fatal: partial archival is safe precisely because removal is scoped to what Step G4 actually
wrote.
### Step G3 — Write the hub page
`.wiki/issue-NNN.md` (zero-padded to 3 digits). The metadata line is mandatory:
```
**PR(s):** #NN[, #MM…] · **Closed:** YYYY-MM-DD · [GitHub issue #N](url)
```
- No PR found for this issue (branch-mode review, or no review at all) → `**PR(s):** —
(branch review)` or `**PR(s):** —` respectively; never omit the field.
- Multiple PRs against the same issue → list all of them, comma-separated.
Below the metadata line: a paragraph of what shipped (pull from the issue body's Summary —
don't re-derive it), a bullet list linking each sub-page that exists, and a one-line Outcome
pulled from the acceptance criteria or review verdict.
**Link sub-pages by bare basename, never full path.** Write `[Label](CODE-REVIEW-PR-63)`, not
`[Label](issue-NNN/CODE-REVIEW-PR-63.md)` — even though the file lives at
`issue-NNN/CODE-REVIEW-PR-63.md`. GitHub's wiki renders a `.md`-suffixed link as a raw-file
link instead of a wiki-page link, which silently breaks navigation. Drop both the `issue-NNN/`
directory prefix and the `.md` extension; the directory nesting is only for organizing the
wiki's git tree.
### Step G4 — Write the sub-pages
Carry the context/REQ/ARCH/TASKS/review/QA content over largely as-is — these are already well-formed
docs; don't rewrite them, just relocate them into `.wiki/issue-NNN/` **under their original
filenames** and drop anything that's now stale (e.g. a REQ doc's "next step: run
`/plan-architecture`" footer no longer applies once archived). Only for documents that
actually exist — never invent a placeholder, never rename one that does exist.
`specs/context/<N>.md` is archived too, as `issue-NNN/<N>.md`: its `## Notes` section can hold
the developer's own notes. Step G7 deletes only the files that have a sub-page here.
### Step G5 — Update the index
Both `.wiki/Home.md` and `.wiki/_Sidebar.md` are a single flat list, ascending by issue
number — no grouping model:
- Create both files with a one-line header if this is the first archived issue overall.
- Insert this issue's entry in ascending issue-number order among the existing entries — find
the correct position, don't just append.
- If the issue was archived before (a partial or interrupted prior run), **locate and update**
its existing entry rather than appending a duplicate.
### Step G6 — Commit and push the wiki, with confirmation
Record each prepared sub-page's expected Git blob ID before pulling. Use
`git -C .wiki hash-object --path="<wiki-path>" -- "<wiki-path>"`.
For resumed staged deletions, reconstruct the expected page from the main repository's
`HEAD:<source-path>` using Step G4. Stop if the expected contents cannot be established.
Inside `.wiki/`, run `git -C .wiki pull --ff-only`. Stage and commit only the
prepared wiki paths using literal pathspecs and `git commit --only`.
Skip the commit when `git -C .wiki --literal-pathspecs diff --cached --quiet -- "<prepared-path>" ...` exits 0.
On exit 1, commit those paths. Stop on any other status. Identify the configured upstream's
remote and remote branch. If either is missing, stop before Step G7 and report the missing
upstream. Push to that branch only when `git -C .wiki rev-list --count '@{upstream}..HEAD'`
is greater than zero. **Confirm with the user before pushing** —
this publishes to shared external state, same as any other push, even though the commit itself
is harmless to make locally.
If the push is rejected (another lane pushed to the wiki first): `git -C .wiki pull --rebase`,
then retry the push **once**. Never run a second `--ff-only` here — with a local commit
present, fast-forward is impossible on diverged histories. If the rebase itself conflicts
(e.g. two lanes both edited `Home.md`), **stop and surface the conflict** rather than resolving
it silently.
**Verify publication:** capture the wiki's current `HEAD` after any rebase and push. Fetch
the configured remote branch explicitly (`git -C .wiki fetch <remote> refs/heads/<branch>`).
Check `git -C .wiki merge-base --is-ancestor <captured-commit> FETCH_HEAD` and verify that
each `git -C .wiki rev-parse --verify "FETCH_HEAD:<wiki-path>"` equals its expected blob ID.
Stop on any missing or different blob. A later remote commit can replace a page at the same path.
Run these checks even when there was nothing to push. If the push was declined or failed, the
fetch fails, or the remote branch is missing the commit or a proposed sub-page, **stop before
Step G7** and report the reason.
### Step G7 — Retire the sources from the main repo, with confirmation
Only after Step G6's push check passed:
1. **Show the delete list** — each source path and its wiki page (source path → wiki page):
`specs/context/<N>.md`, whichever of `specs/requirements/`/`specs/architecture/`/`specs/tasks/`/`specs/qa/`
were mirrored, and every review report Step G2 successfully attributed — **excluding**
anything named in the unresolved block, and any file with no sub-page from Step G4.
2. **Ask:** "Delete these N files from the main repo?" On "no", stop with no change. Say that
the wiki is pushed and the sources stay in `specs/`.
3. `git rm` the listed files, in the **main repo** (not `.wiki/`). Then `git status`.
4. **Ask the developer to confirm the commit.** On "no", leave the deletes staged and say so.
On "yes", commit only the approved tracked deletions with
`git --literal-pathspecs commit --only -m "<message>" -- "<path>" ...`. Leave other staged changes in the index.
This commit lands on whatever branch the main repo is currently on — normally the default
branch, since archival runs post-merge. **Tell the developer it is unpushed** and let them
decide how it reaches the remote: a protected default branch needs a PR, an unprotected one
just needs a push. Never push the main repo yourself.
### Re-running (GitHub path)
A stopped run can leave one of the states below. Check them in this order, after Step G1:
| # | State found | What the run does |
|---|-------------|-------------------|
| 1 | Deletes staged, commit declined: `git status` shows staged deletes under `specs/` for `<N>` | Verify publication for those paths in Step G6 before returning to Step G7 step 4 |
| 2 | All done: Step G2 finds no source for `<N>` and `.wiki/issue-NNN.md` exists | Report "already archived" and stop |
| 3 | Wiki pushed, sources still in `specs/` (delete declined in Step G7) | Step G2 finds the sources; Steps G3-G5 give no change; Step G6 has nothing to commit, skips the commit and the push, and runs the push check; Step G7 shows the delete list again |
| 4 | Wiki pages committed but not pushed (stopped in Step G6) | Steps G3-G5 overwrite the pages; Step G6 commits when there is a change, then asks to push |
The index entry is located-and-updated, never appended a second time. Never run `git rm` on a
path that does not exist — `git rm` exits 128 on a missing path.
## Path J — Jira issue → Confluence
Moves documentation artifacts (markdown files, images, reports) added on the
current feature branch into Confluence, verifies they landed, then removes the
local copies in one local commit. **Every destructive step requires explicit
developer confirmation** — never delete or commit automatically: Step J6 asks
before the delete and again before the commit. Requires the
`twg` CLI, already authenticated.
### Step J1 — Confirm the key and the branch
Take the Jira key from path selection. If the developer gave none, extract it
from the current branch name (`feat/PROJ-42/update-data-model` → `PROJ-42`);
read the current branch directly before scanning. Resolve the configured default branch:
```bash
BRANCH=$(git symbolic-ref --quiet --short HEAD)
DEFAULT_REF=$(git symbolic-ref --quiet refs/remotes/origin/HEAD)
DEFAULT_BRANCH=${DEFAULT_REF#refs/remotes/origin/}
git show-ref --verify "$DEFAULT_REF"
```
Stop on detached HEAD, missing origin/default ref, or a default ref outside `refs/remotes/origin/`.
Stop if `$BRANCH` equals `$DEFAULT_BRANCH`. If the task branch names another Jira key, stop and report the mismatch.
Keep the current branch and commit for the cleanup check in J6.
### Step J2 — Scan for artifacts
Compute the merge base with the resolved default ref. Stop if the command fails.
```bash
BASE=$(git merge-base HEAD "$DEFAULT_REF")
git diff --name-status --diff-filter=d "$BASE"...HEAD -- \
'*.md' '*.png' '*.jpg' '*.jpeg' '*.gif' '*.svg' '*.pdf'
git ls-files --others --exclude-standard -- \
'*.md' '*.png' '*.jpg' '*.jpeg' '*.gif' '*.svg' '*.pdf'
```
**Added (`A`) and untracked files are the archive candidates.** Modified (`M`)
files are living repo docs that happened to be edited on this branch —
archiving one would *delete a permanent doc from the repo*. Exclude them by
default; include an `M` file only if the developer names it.
Also filter out housekeeping files that stay in the repo: any `README.md` (at
any depth), `CLAUDE.md`, `LICENSE`, `LICENSE.md`, and anything under
`.claude/`, `node_modules/`, `dist/`.
Resolve each candidate to its canonical path, including symlinks. Require a regular file inside the canonical repository root.
For Markdown image references, resolve relative paths against the Markdown file's directory.
Include each eligible referenced image as a separate candidate. References alone never authorize deletion of existing tracked assets.
Check the canonical target's extension and file type. Require a supported image type for image references.
Exclude unsupported files and paths outside the repository. Apply the J2 filters to the source and its target.
Show each source path, its canonical target if different, and its referencing documents. Ask which files to archive.
If the list is empty, stop. Keep the exact approved source paths and canonical targets.
Record each approved source's content hash before publishing.
Untracked files can't be `git rm`'d in Step J6 — plain `rm` them instead; they
won't appear in the cleanup commit. An untracked file has no git history: after
the `rm`, its only copy is the Confluence page. Step J6 deletes it only after the
developer confirms the delete list.
### Step J3 — Resolve the Confluence destination
**If the developer passed a destination** (a Confluence URL or numeric content
id — e.g. `.../wiki/spaces/<SPACE>/folder/<id>`), skip discovery and resolve it
with one call:
```bash
twg confluence content get <numeric-id>
```
Pass the **numeric id**, not the pasted URL — pasted URLs may carry a
sanitized or wrong domain; the site comes from `twg`'s auth config. The
response includes the content's title, type, **and its space id** — no separate
`space list` call is needed. Folders are valid parents for
`content create --parent-id`. Take the space **key** from the URL path
(`/wiki/spaces/<KEY>/...`).
**Otherwise, run discovery:**
```bash
twg context jira workitem <KEY>
```
- Confluence pages already linked to the ticket → propose the most relevant one
as the **parent page**. Resolve its numeric content id with
`twg confluence content get <page-url-or-id>` (this also returns the space id).
- None → run `twg confluence space list`, and ask the developer to pick a
target space (and optional parent page).
Once you have a target, show the developer:
- Space id and name
- Parent page (or "space root" if none)
- The page titles that will be created (from the first `# H1` heading, or the filename)
- Each approved image or PDF, its canonical source, and its destination page or pages
Referenced images attach to their selected Markdown pages. Standalone images and PDFs require an existing attachment page.
If the selected destination is a folder or space root, ask the developer to choose an attachment page.
Resolve its ID before confirming the publication list. Omit files without an approved destination.
**Confirm before publishing.** Do not proceed until the developer approves the destination.
Capture **both** the numeric space id and the space **key** —
`content create` / `content list --space` accept either, but the CQL
`search query` used for the idempotency check in Step J4 works only with the key.
### Step J4 — Publish files
**Pre-flight checks:**
- **Title collision:** derive all titles first (from `# H1`, or the filename
stripped and title-cased). If two selected files map to the same title,
append a parenthetical from the file path (e.g. `My Doc (docs/v2)`).
- **Idempotency:** for each title, check whether a page with that title already
exists under the target parent:
```bash
twg confluence search query --cql 'type=page AND space=<spaceKey> AND ancestor=<parentId> AND title = "<title>"'
```
Omit `AND ancestor=<parentId>` when publishing to the space root. Folder ids
work as `ancestor=` values.
**Use the space KEY here, not the numeric space id.** CQL's `space=` filter
silently returns zero results for a numeric id instead of erroring — that
reads as "no duplicate" and leads straight to a duplicate page. If unsure
which form you have, run `twg confluence space list --keys <key>` or read the
key from an existing page's URL.
If found, ask the developer: **skip**, **update** (`twg confluence content
update <id> --snapshot-token <token> ...` — the token comes from a prior
get/create/update response), or **create anyway** (a duplicate). Do not
proceed automatically.
**For each selected markdown file:**
1. Use the approved source and destination mapping from J2 and J3.
Before every upload, recheck the canonical source path and content hash. Stop if either changed.
Pass the approved canonical path as one argument. Skip unapproved references and report them.
2. Create the page and capture the returned `contentId` and web URL:
```bash
twg confluence content create \
--space-id <spaceId> \
[--parent-id <parentId>] \
--content-type page \
--title "<title>" \
--body-file <file> \
--format markdown \
-y
```
3. Upload only the images approved for this page to **this page's own id**:
```bash
twg confluence content attachments upload \
--id <thisPageContentId> \
--file <imageFile> \
-y
```
4. **Warn the developer** that Confluence's markdown import does not resolve
relative image paths to attachments — the images are attached but may not
render inline. List the files with local image refs so they can be fixed in
Confluence.
**Standalone images and PDFs:** Upload each approved file using the same attachment command with its approved attachment page ID.
Record the returned attachment ID, its version when available, and its destination page ID.
If multiple local files use the same attachment filename on one page, resolve the collision before upload.
**Cross-references:** if selected markdown files link to each other by local
path (`[see also](./other-doc.md)`), list those links in the warning — they
break in Confluence.
### Step J5 — Verify and link
Read back each created or updated page. Check the returned ID, destination, title, and imported body against the approved source.
A skipped duplicate does not count as a published source. Keep its local file.
```bash
twg confluence content get <contentId>
```
For each approved image or PDF, keep the attachment ID returned by the upload and the
ID of its destination page. Read back its attachments with
`twg confluence content attachments list --id <pageId> --filename <filename>`
and confirm the uploaded attachment ID and version match the upload. For an image used on multiple pages,
verify its upload on each page. If any upload or read-back fails, report the
source and destination and keep that attachment in the repo.
Then link each page to the Jira ticket:
```bash
twg jira workitem link page --id <KEY> --page <contentId>
```
Report every Confluence URL. **Do not continue to cleanup until every page is
verified live.**
### Step J6 — Cleanup commit (confirm, never push)
After J5, verify the checked-out branch and commit still match J1. Recheck each approved source's canonical path and content hash.
If the checkout or a source changed, stop and repeat discovery for that change before cleanup.
1. **Show the delete list** — each selected file with a verified destination,
`tracked` or `untracked`, and the Confluence URL of its page. Include a
file only if every required page or attachment was verified in Step J5.
2. **Ask:** "Delete these N files?" On "no", stop with no change. Say that the
pages stay in Confluence.
3. After confirmation, recheck the current branch, commit, canonical paths, and content hashes immediately before deletion.
Stop on any change. Delete only approved paths:
```bash
git --literal-pathspecs rm -- "<approved-tracked-path>" ...
rm -- "<approved-untracked-path>" ...
git status
```
4. If there are no approved tracked deletions, skip the commit.
Otherwise show the approved staged deletions and ask the developer to confirm the commit.
On "no", leave the deletions staged. On "yes", commit only the approved tracked paths:
```bash
git --literal-pathspecs commit --only -m "chore(<KEY>): move <short description> to Confluence" -- "<approved-tracked-path>" ...
git show --stat HEAD
```
**Do not push.** Tell the developer the commit is on `<branch>` and unpushed —
it reaches the remote with their next push of the feature branch.
`twg` commands here were verified against the live CLI on 2026-08-07 — run them
as written, **without** a `--help` pre-check. Reach for
`twg <subcommand> --help` only if a command errors, behaves unexpectedly, or a
read that should match returns empty; if the flags have drifted, update this
skill with the corrected command.
## You Must NOT
- Push the code repo — on either path, ever. Commit locally and say it is unpushed.
- Push to the wiki without explicit developer confirmation (Path G, Step G6).
- Delete any file that was not successfully archived — on Path G, not before the wiki push is checked; on Path J, not before its Confluence page is verified live.
- Delete any file before the developer confirms the delete list (both paths).
- Commit without explicit developer confirmation (Path J).
- Run Path G on an open issue, or Path J on the default branch.
- Rename any archived file — only its directory changes (Path G).
- Create placeholder sub-pages for documents that don't exist.
- Archive source code — Path J archives only the Step J2 doc/asset extensions.
- Run `twg login`, `twg setup`, or any auth/admin command — auth is pre-configured.
- Continue to cleanup after a failed Confluence create — report the error and stop.
- Add a bundled script — this skill's work is markdown authoring.