---
name: outthislife-brooklyn-skills
title: brooklyn skills
kind: skill-folder
description: 24 skills kept together in one folder, by OutThisLife.
skills: 24
updated: 2026-12-05
authored_by: OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills
page: https://innernet.live/community/skills/outthislife/brooklyn-skills
---

# brooklyn skills

a folder of 24 skills by OutThisLife, kept on innernet at https://innernet.live/community/skills/outthislife/brooklyn-skills (source: https://github.com/OutThisLife/brooklyn-skills).
every skill in it is below, whole. each one starts with its own manifest: what it does, when to load it, whose it is.
you do not need all of them at once. read the index, then use the skill that fits the task in front of you. each skill also has its own link, if only one is wanted.

## the skills

1. **audit only**: Read-only investigation mode: answer and report findings first, change no code until told to go. Use when the user says audit, investigate, "don't touch code", or asks a plain question. https://innernet.live/skills/outthislife-audit-only
2. **babysit**: Watch an open PR/MR until it's green or merged — poll checks, kick stalled CI, rerun flakes, catch late review threads. Use for /babysit, "babysit it to green", "watch it", "keep an eye on CI", or any stay-on-it ask after a PR handoff. https://innernet.live/skills/outthislife-babysit
3. **clean**: Polish your own diff by hand with KISS/DRY and local style — the pre-handoff pass, not a test run and not a subagent sweep. Use for /clean, "clean it up", "tidy this", and automatically before creating, updating, or automerging a PR or moving to the next one. https://innernet.live/skills/outthislife-clean
4. **draft tweet**: Draft X/Twitter posts about shipped work. Never post unless asked. Use when the user wants tweet options or "what should I tweet". https://innernet.live/skills/outthislife-draft-tweet
5. **engraved figures**: Create scientific figures, technical plates, research posters and diagram collections in a monochrome engraved-paper style. Use for old-school wireframes, stippled plots, dense academic layouts, or understated redacted-document graphics. Supports precise SVG documentation and illustrative raster art. https://innernet.live/skills/outthislife-engraved-figures
6. **free disk space**: Safely reclaim disk space on macOS without touching personal or agent data. Use when the user asks to free disk space, clear caches, or investigate a nearly full Mac. https://innernet.live/skills/outthislife-free-disk-space
7. **list open work**: List my open MRs/PRs in the current repo/worktree, each with its tracker ticket. Use when I invoke /list-open-work, or ask what I have open, what's in review, or for a standup list of my open MRs or PRs. https://innernet.live/skills/outthislife-list-open-work
8. **modern web guidance**: Search tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns. Trigger immediately for: modals/dialogs/popovers, tables, dark mode, anchor positioning, container queries, view transitions, scroll-driven animations, parallax/reveals, forms, validation, autofill, accessibility, custom selects, scrollbars, CWV (LCP, INP, CLS), content-visibility, fetch priority, image optimization, security, passkeys, HTML sanitization, web components, dates/timezones, b https://innernet.live/skills/outthislife-modern-web-guidance
9. **no tropes**: Detect and eliminate common AI writing tropes from generated text. Use when writing or revising prose, documentation, READMEs, commit messages, PR descriptions, blog posts, comments, or any non-code text output. Automatically applied as a self-revision pass (tropes.fyi). https://innernet.live/skills/outthislife-no-tropes
10. **notarize mac**: Build and verify a signed, notarized macOS app or DMG using the project's existing notarization automation. Use when the user asks to notarize a Mac build, produce a release DMG, or verify Gatekeeper. https://innernet.live/skills/outthislife-notarize-mac
11. **perf**: The general profile-driven perf loop for any language or runtime: baseline, profile, fix the real hot path, re-measure. Use for /perf, "this is slow", or optimization work. https://innernet.live/skills/outthislife-perf
12. **pr ready**: Clear everything blocking an existing PR/MR from merging — rebase onto the default branch, get CI green, and resolve review threads (Copilot and human). Use for "rebase on main", "make CI green", "fix CI/CD", "address the reviews", "address Copilot", "review-loop", or "get this mergeable". https://innernet.live/skills/outthislife-pr-ready
13. **pr triage**: Maintainer triage on OTHER people's PRs/MRs — verdict of approve, supersede, or close, salvage with credit, close the cluster. Use for a review batch, a pasted Discord thread with a PR, or salvage/supersede/close asks. Not for your own PR (that's pr-ready). https://innernet.live/skills/outthislife-pr-triage
14. **pr update**: Open a PR/MR if missing, or refresh an existing one's title and description so they match the current diff. Preserves any media already in the body. Use when the user says /pr-update, open a PR, update the PR, refresh the PR title/description, or wants the PR opener/manager flow. https://innernet.live/skills/outthislife-pr-update
15. **research**: Look it up before answering or building — this project's documents of record first, then external prior art. Use when the user says research, look it up, sleuth GitHub, "what do other people do", "is that a thing", "are you sure", or asks for something that has obviously been solved before. https://innernet.live/skills/outthislife-research
16. **runtime debug**: Debug broken runtime/environments by checking logs and observability first, then code. Use when a URL, deploy, or ephemeral/CI environment fails at runtime rather than a local code bug. https://innernet.live/skills/outthislife-runtime-debug
17. **shop board**: Turn any online shop into a calm, visual board in the browser: the whole catalog as a photo grid, filtered to your sizes, grouped by intent instead of product type, click to pick, then add the picks to the store's cart. Also a click-to-remove review view for a cart that's already full. Takes loose args like "/shop-board dollskill xs, xxs, cutie stuff only". Use for "make a board for <shop>", "go through <store> for me", "find me stuff on <store>", "review my cart", or any browse-a-whole-store / trim-a-cart ask. https://innernet.live/skills/outthislife-shop-board
18. **stacked pr**: Handle dependent/stacked PRs and same-code-on-multiple-bases correctly. Use for a PR stacked on another, or when the same change must land on the default branch plus a release/production branch. https://innernet.live/skills/outthislife-stacked-pr
19. **ticket ship**: Take a tracker ticket through to shipped: find or start the PR, drive it to mergeable, update the ticket state, draft the stakeholder message. Use for Jira/Linear (or acli) tickets assigned to you. https://innernet.live/skills/outthislife-ticket-ship
20. **triage**: Use when triaging issues as a maintainer. https://innernet.live/skills/outthislife-triage
21. **ui only**: While iterating on UI, do not waste time on tsc, lint, typecheck, format, full test suites, commit, or push until the user likes how it looks and works. Use for any UI/UX work, layout, redesign, Figma implementation, visual polish, "make it look right", or when they want to see the UI before cleanup. https://innernet.live/skills/outthislife-ui-only
22. **ui system**: Reuse existing UI primitives, CSS vars, and DESIGN.md patterns instead of inventing new buttons, colors, borders, shadows, or helpers — including when implementing a Figma file, mock, or screenshot. Use for Desktop/web/TUI UI work, redesigns, or when the user mentions shared primitives, tw4, Figma, or UI patterns. https://innernet.live/skills/outthislife-ui-system
23. **visual verify**: Use to verify rendered UI against its design reference. https://innernet.live/skills/outthislife-visual-verify
24. **work**: Kick off a task in a fresh isolated git worktree instead of the current checkout. Use when the user invokes /work (optionally with a slug or description) to start something new without touching their working tree. https://innernet.live/skills/outthislife-work

---

<!-- skill 1 of 24: audit only · https://innernet.live/skills/outthislife-audit-only -->

---
name: outthislife-audit-only
title: audit only
kind: skill
description: >
  Read-only investigation mode: answer and report findings first, change no code
  until told to go. Use when the user says audit, investigate, "don't touch
  code", or asks a plain question.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/audit-only
brought_by: kt
license: MIT
---

# Audit Only

Investigate and report. Do not edit code, create files, or open PRs until the
user explicitly says to proceed.

## Do

1. Read the relevant code/data and answer the actual question first.
2. Report findings: what's there, what's wrong, options + a recommendation.
3. If a change is warranted, describe it and wait for a go.
4. If asked, post findings as a PR/issue comment — that's still not code edits.

## Don't

- Start writing code because the fix seems obvious.
- Act on assumed scope — answer what was asked, nothing more.
- Treat "review this" or a plain question as permission to change things.

---

<!-- skill 2 of 24: babysit · https://innernet.live/skills/outthislife-babysit -->

---
name: outthislife-babysit
title: babysit
kind: skill
description: >
  Watch an open PR/MR until it's green or merged — poll checks, kick stalled CI,
  rerun flakes, catch late review threads. Use for /babysit, "babysit it to
  green", "watch it", "keep an eye on CI", or any stay-on-it ask after a PR
  handoff.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/babysit
brought_by: kt
license: MIT
---

# Babysit

Stay on the PR after handoff until it's actually done. Being asked to babysit
IS the ask to poll — but report state changes only, no heartbeats, no
per-poll narration.

## Loop

1. Snapshot: `gh pr view <N> --json
   state,mergeable,mergeStateStatus,reviewDecision,statusCheckRollup,autoMergeRequest`
   plus `gh pr checks <N>`.
2. Poll inside bounded shell loops (a single `for` with `sleep 30`–`60`
   between iterations), not one message per check. Keep watcher scripts, logs, and state outside disposable worktrees, and use a stable working directory; other sessions may remove a merged PR's worktree while its watcher is running. If a watcher fails, recheck the service directly and resume only the remainder of the original deadline. A failed monitor is not a failed deployment.
3. React by cause:
   - **CI never started** → kick it:
     `git commit --allow-empty -m "chore: kick CI" && git push`.
   - **Red caused by this branch** → fix it (the `pr-ready` loop), push,
     resume watching on the new SHA.
   - **Flake / infra red** → rerun the failed jobs; repeat until green. Note
     the flake in one line with the run link.
   - **New review threads** → handle per `pr-ready` (fix or reply, verify
     resolved via the forge API), resume.
4. Repeat until done. A push or rerun is progress, not an exit.

## Merging

Arm automerge only when the user explicitly asks to merge or enable automerge.
"Make CI green", "babysit", and "watch it" authorize checks and repairs, not
merging. End at green with threads resolved unless merge authorization is explicit.

## CI quirks

- `gh run rerun` refusing with "already running" → cancel the run first,
  then rerun.
- A cancelled run showing "no checks reported" is pending, not red — wait
  for it to re-report before calling it either way.
- Rollup gates ("All required checks pass") go red because a leaf did —
  diagnose the leaf failure, never the gate.

## Done when

Re-query the forge — don't trust that a push went green or a rerun stuck.
Merged, or every check green with no unresolved threads. Fail closed: any
red or open thread means keep watching. Wrap up with the PR/MR link and what
the watch consumed — reruns used, kicks, fixes pushed.

## Scope

- **In:** watching an open PR, kicking stalled CI, rerunning flakes, small
  branch-caused fixes, late review threads.
- **Out:** opening or refreshing the PR (`pr-update`, `cpr`), full
  rebase/red-CI overhauls (`pr-ready`), other people's PRs (`pr-triage`),
  merging unasked.

---

<!-- skill 3 of 24: clean · https://innernet.live/skills/outthislife-clean -->

---
name: outthislife-clean
title: clean
kind: skill
description: >
  Polish your own diff by hand with KISS/DRY and local style — the pre-handoff
  pass, not a test run and not a subagent sweep. Use for /clean, "clean it up",
  "tidy this", and automatically before creating, updating, or automerging a PR
  or moving to the next one.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/clean
brought_by: kt
license: MIT
---

# Clean

KISS/DRY and copy the local code style. Be elitist, shorthand, clever, concise,
efficient, and elegant.

**"Clean" means polishing the code — it does NOT mean running the test suite,
tsc, or lint as the task.** Run a check only if it's genuinely needed to confirm
the polish is safe.

Clean is a standalone pass, not just a pre-PR step — run it whenever things get
messy, including mid-work. Also run it automatically before any PR handoff
(creating, updating, automerging, or moving to the next PR) without being told
each time.

## Do

1. Re-read your diff. Cut dead code, leftover debug logging, and duplication.
2. Extend existing helpers — don't parallel-implement.
3. Match neighboring style (names, imports, file layout, comment density).
4. Prefer the small sharp version over ceremony.
5. UI work: only after they like the UI (`ui-only`). Use `ui-system` for
   primitives.
6. Refactor forward. A migration lands whole: every caller moved, and the old
   path, its fallback, its shims and its tests deleted in the same change. If
   it's too big for one pass, fan it out and land it complete; never ship
   "the rest still go the old way".
7. On the PR: title/body describe the change as a whole (a short intro), not a
   changelog of steps. Split into topical commits (`pr-update`), run
   `no-tropes` on the text, and link the PR.

## Don't

- Run the test suite / tsc / lint just because you were told to "clean"
- Unrelated refactors
- New abstractions with one caller
- Scope creep dressed up as cleanup
- Leave the old way beside the new one: a fallback, a compatibility layer, a
  deprecated twin, or "migrated later"

---

<!-- skill 4 of 24: draft tweet · https://innernet.live/skills/outthislife-draft-tweet -->

---
name: outthislife-draft-tweet
title: draft tweet
kind: skill
description: >
  Draft X/Twitter posts about shipped work. Never post unless asked. Use when
  the user wants tweet options or "what should I tweet".
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/draft-tweet
brought_by: kt
license: MIT
---

# Draft Tweet

Write tweet options. **Do not post** unless they explicitly say to.

## Match their voice

If `xurl` is installed and already authenticated, use it read-only to sample
the user's recent original posts before drafting:

```bash
xurl whoami
xurl posts @handle -n 30
```

If that version does not have `xurl posts`, use the user ID from `xurl whoami`:

```bash
xurl '/2/users/<id>/tweets?max_results=30&exclude=retweets,replies'
```

Infer their usual capitalization, punctuation, sentence length, vocabulary,
link use, and emoji use. Match the patterns, not the subject matter. Do not
quote old posts or mention that style sampling happened.

If `xurl` is missing or unauthenticated, draft from examples already in the
conversation. Do not block the task or ask them to configure X unless they
specifically request stronger style matching.

## Output

2–4 options, each roughly ≤240 chars:

- Concrete claim or user benefit — no empty hype. For visual tools, lead with the visible effect or a playful, accurate description rather than a feature inventory.
- When asked for an example image, look for prior PR/MR artifacts first. Inspect the actual image; a normal screenshot is not overlay evidence. If constructing a demo from it, visibly label deliberate offsets/edits and preserve source provenance. Never present the reconstruction as historical QA.
- Little/no emoji; no engagement bait
- One link max if useful
- Run through `no-tropes`

## Don't

- Call `xurl post`, reply, quote, DM, or any other write API unless asked
- Invent performance numbers they didn't bless
- Default to a thread — offer one only if they want depth

---

<!-- skill 5 of 24: engraved figures · https://innernet.live/skills/outthislife-engraved-figures -->

---
name: outthislife-engraved-figures
title: engraved figures
kind: skill
description: >
  Create scientific figures, technical plates, research posters and diagram
  collections in a monochrome engraved-paper style. Use for old-school
  wireframes, stippled plots, dense academic layouts, or understated
  redacted-document graphics. Supports precise SVG documentation and
  illustrative raster art.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/engraved-figures
brought_by: kt
license: MIT
---

# Engraved figures

Scientific drawing carries the composition: fine wireframes, stippled points, clear axes, serif labels, and generous space inside a dense page. Before choosing a layout, open [the reference showcase](references/examples/showcase.html): **one landscape plate** ([reference-plate.png](references/examples/reference-plate.png)) and a **net-metric chart** ([reference-chart.png](references/examples/reference-chart.png)). Cyclic or redacted posters follow [poster direction](references/poster-direction.md) without a bundled poster file. Read [multi-figure plates](references/example-set.md) and [chart direction](references/chart-direction.md). Match bundled density and grammar; use the user's subject and real data when claiming measured results.

## Choose the right kind of figure

- **Technical documentation:** derive the relationships from source material or implementation. Prefer editable SVG with real text and an accessible title/description. Describe exactly what the marks, lines, boundaries and axes mean. Keep the mechanism legible. Read [technical figures](references/technical-figures.md).
- **Quantitative charts on paper:** thin smoothed daily lines, one combined moving average, shaded windows and dashed event markers — not dashboard widgets. Read [chart direction](references/chart-direction.md).
- **Illustrative poster or standalone art:** use the available image-generation workflow when a raster illustration is requested. Scientific geometry can serve as a metaphor, clearly labeled schematic. A torus does not establish a storage topology; a landscape is not measured performance. Read [poster and redaction direction](references/poster-direction.md).
- **Interactive or animated composition:** use actual geometry in the requested renderer. Preserve the approved page, typography and camera composition. Agree the meaningful behavior from the request: rotating a form, scrubbing a time slice, following a path, selecting a neighborhood. Keep text stationary and readable. Add motion controls and respect reduced motion. Animation and export workflows remain separate from this visual style.

Honor the user's requested medium. Do not turn a request for an image into a website, a paper into an animation, or a diagram into a new product interface.

## Visual grammar

- Black and neutral gray ink on clean white or gently warm paper. Monochrome is the default; color needs a reason or a user request.
- Fine curved mesh lines and stippling form the drawings. Use heavier lines for selected paths or meaningful boundaries. Nodes remain small; avoid glossy spheres and dramatic shading.
- Serif typography throughout the paper. STIX Two Text is appropriate for technical publishing; Times is a useful fallback. Use italic annotations and restrained small caps. Monospace belongs to actual identifiers, not all labels.
- Hairline rules organize the page. Avoid rounded cards, icons, UI panels, badges, gradients, shadows and decorative controls.
- Several substantial figures beat one central generic network surrounded by tiny icons. Match the reference's number, scale and distribution of figures when a reference is supplied. A full poster might use five main figures and several lower-column diagrams; a single figure should stay a single figure.
- Keep labels outside dense geometry. Use short leaders when needed. At final display or print size, the labels must remain readable.
- Preserve clean paper. Simulated aging, stains, copier dirt, stamps, invented document codes and agency seals require explicit requests. “Redacted files” usually means opaque rectangles on an ordinary document, not a spy-movie prop.

## Adapt the form to the explanation

Point clouds can illustrate many observations. Wireframe slices can show successive views. Neighborhood graphs explain relationships. A narrowing field can illustrate bounded selection. Gate planes can separate stages. Choose based on the claim, not a fixed visual inventory.

For explanatory work, distinguish illustrative form from data encoding. A time cutoff needs an actual timeline. A rank display needs a defined ordering; do not invent scores. A model diagram needs its real inputs and boundaries. Keep speculative parts visibly separate from implemented behavior.

## Redaction, when requested

Use opaque, sharp black rectangles over the actual lettering, with slight padding. White lettering on a black label is a heading, not a redaction. A thin strike-through does not conceal a word.

For an irregular, casually withheld look, mix complete labels, individual words and a few partial phrases. Vary bar lengths and coverage; preserve enough text to establish context. If names must never appear, check every caption, heading, footer, legend and table—not only the main title.

Partial coverage is an aesthetic choice only when the user wants the text inferable. For real confidentiality, use irreversible redaction, remove hidden text and metadata, and verify the exported artifact. Never present a CSS overlay or recoverable SVG text as secure redaction.

## Produce and verify

1. Read the actual reference. Identify its composition, figure scale, line treatment, typography and density.
2. Map the requested content to figures. Preserve explicit labels, implementation boundaries and any approved visual decisions.
3. Create a first complete composition. For revisions, change only what the user criticized and keep the praised version.
4. Inspect the output at its intended size. Check labels, arrows, line intersections, clipping, contrast and the actual coverage of redactions. For papers, inspect both browser and rendered PDF.
5. Save standalone figures when requested. Preserve originals and use versioned sibling outputs for visual revisions.

Measure and report actual raster dimensions. Cropping or enlarging a small plot does not recover detail. Generative standalone redraws can improve detail but are not pixel-identical extractions. For sharp arbitrary-size technical figures, deliver SVG; rasterize at the requested dimensions only when needed.

When a page is published, verify the deployed page contains and renders the new figures. This skill does not itself authorize publication, git writes, external messages or unrelated documentation changes.

---

<!-- skill 6 of 24: free disk space · https://innernet.live/skills/outthislife-free-disk-space -->

---
name: outthislife-free-disk-space
title: free disk space
kind: skill
description: >
  Safely reclaim disk space on macOS without touching personal or agent data.
  Use when the user asks to free disk space, clear caches, or investigate a
  nearly full Mac.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/free-disk-space
brought_by: kt
license: MIT
---

# Free Disk Space

Investigate first. Delete only regenerable data the user has authorized.

## Safety

- Never inspect, delete, or modify the data of the IDE or agent you're running
  inside — its application-support dir, caches, `globalStorage`, databases,
  extensions, or logs — unless the user explicitly names it as a cleanup target.
  On macOS that lives under `~/Library/Application Support/<app>/` (e.g.
  `.../Cursor/`).
- Never delete browser history, extensions, cookies, credentials, local
  storage, IndexedDB, bookmarks, passwords, or user-created files.
- Ask before destructive cleanup such as deleting Docker images, containers,
  volumes, or virtual disks.

## Workflow

1. Record current usage from the macOS data volume:

   ```bash
   df -h /System/Volumes/Data
   ```

2. Find the largest consumers before deleting anything. Use `du`, package
   manager diagnostics, and application-specific storage commands. Do not
   descend into protected agent/IDE data.
3. Explain what is large, whether it is regenerable, and the expected impact.
4. Clean only safe targets:
   - contents of `~/Library/Caches/`
   - unused package-manager cache entries, such as `pnpm store prune`
   - known browser model/GPU caches, never browser profile data
5. For sparse files such as Docker's virtual disk, report actual disk use from
   `du`, not apparent size from `ls`.
6. Record usage again and report space freed.

Do not represent the sealed `/` system volume as the Mac's usable data-volume
capacity.

---

<!-- skill 7 of 24: list open work · https://innernet.live/skills/outthislife-list-open-work -->

---
name: outthislife-list-open-work
title: list open work
kind: skill
description: >
  List my open MRs/PRs in the current repo/worktree, each with its tracker
  ticket. Use when I invoke /list-open-work, or ask what I have open, what's in
  review, or for a standup list of my open MRs or PRs.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/list-open-work
brought_by: kt
license: MIT
---

# /list-open-work

Answer one question: what of mine is open **in this repo**, and which ticket
does each carry? Lead with the list. Anything else goes after it, in prose.

## This repo only

Scope is the git checkout you are in (worktree or primary). Read its `origin`.
List **my** open MRs/PRs against **that** remote. Stop there.

- Not a git repo → say so and stop. Do not hunt another project.
- Do not list another origin, org, forge, or tracker from memory, another
  session, or another worktree.
- Infer the ticket key from **this** repo's branches/titles (e.g. `PROJ-123`
  in `feat/PROJ-123-slug`). Never reuse a prefix you saw somewhere else.

```bash
git rev-parse --show-toplevel
git remote get-url origin
```

## Output format

Write it straight into the chat as ordinary rendered markdown. **Never wrap it
in a code fence** — the links have to be clickable.

**Blank line between every item.** Markdown treats a single newline as a space,
so adjacent lines become one paragraph. That is a failure. Each MR is its own
paragraph: newline, blank line, next line.

Exactly this shape. Header is `Open MRs:` or `Open PRs:`. No bullets, no emoji.
The number and the ticket key are both links. Ticket sits in trailing `[KEY]`.

Open MRs:

[!42](https://gitlab.example.com/acme/widgets/-/merge_requests/42) - shorten the save path [[PROJ-101](https://jira.example.com/browse/PROJ-101)]

[!41](https://gitlab.example.com/acme/widgets/-/merge_requests/41) - default the new flag on [[PROJ-99](https://jira.example.com/browse/PROJ-99)]

[!30](https://gitlab.example.com/acme/widgets/-/merge_requests/30) - expose status history on the public API

- Descending by number. `!N` on GitLab, `#N` on GitHub. "MRs" vs "PRs" likewise.
- One paragraph each: `<!|#><N> - <title> [<KEY>]`. No bold.
- Ticket in trailing `[KEY]`. Move it there if the author buried it mid-title:
  `perf: PROJ-77 — cut over-fetch` becomes `perf: cut over-fetch [PROJ-77]`.
- No ticket → omit the `[KEY]`. Don't invent one, don't write `(no ticket)`.
- Keep the MR/PR title as-is (minus the relocated key). Don't rewrite it.

Wrong (renders as one wrapped line):

```
Open MRs:
!42 - shorten the save path [PROJ-101]
!41 - default the new flag on [PROJ-99]
```

Pasting into Slack is a separate ask. Forge/tracker integrations linkify `!42`
and `PROJ-101` on their own, so that version is the same lines with the link
syntax stripped — still one item per line.

## Collect

Mine means authored by me. Resolve my username from the API — never guess it.

GitLab origin:

```bash
glab api user
glab api "projects/<url-encoded-path>/merge_requests?state=opened&scope=all&per_page=100"
```

Filter to author = me. `<url-encoded-path>` is **this** origin's path, not a
path from another repo.

GitHub origin: `gh pr list --author @me --state open --json number,title,headRefName,body`

Ticket = first `\b[A-Z][A-Z0-9]+-\d+\b` in the title, then the branch, then the
description. Use that key's tracker host as this repo uses it — don't guess a
site from another company.

### Jira account verification

Validate actual Jira results against the repository's tracker project; `acli jira auth status` alone can report the intended site while searches still reach another account. If project keys or API hosts contradict the expected workspace, explicitly select the saved account with `acli jira auth switch --site <repo-tracker-host> --email <verified-email>`, then read back a known ticket before trusting the list. Do not reuse results from the wrong site.

Use `acli jira workitem search --paginate` and compare the distinct fetched count against the same JQL with `--count`. Search has a restricted field list; retrieve timestamps, descriptions, and comments with `workitem view --fields summary,description,status,priority,assignee,updated,comment,issuelinks --json` instead. Read comments before classifying Testing tickets as new implementation work.

## Then, in prose

Only the things that change what I'd do next:

- Conflicts with the default branch — blocked, not in review. GitLab recomputes
  mergeability lazily, so a plain MR GET happily returns a stale
  `has_conflicts: false`. Force it and read `merge_status`:

```bash
glab api "projects/<path>/merge_requests/<iid>?include_diverged_commits_count=true"
# cannot_be_merged + has_conflicts → needs a rebase; diverged_commits_count = how far behind
```

- Red pipelines (`head_pipeline.status`).
- Ticket status that contradicts the MR: green with every thread resolved but the
  ticket still says In Progress.
- No ticket plus months of age — give the age, offer to close.

Skip approvals unless asked. Don't narrate fields that changed nothing.

For GitHub readiness checks, read submitted review bodies and human PR comments as well as paginated inline threads. A `COMMENTED` review can contain explicit merge blockers even when unresolved inline-thread count is zero and CI is green. Match each review to its reviewed head; older findings need rechecking rather than being asserted as current defects.

Keep CI conclusions, conflict status, and substantive review blockers separate. Query `gh pr checks` for each current head; `UNKNOWN` mergeability is unverified, not conflict-free. Persist the inventory and aggregate counts programmatically before reporting totals.

When this repository uses GitHub issues rather than tracker keys, inspect explicit issue links in the PR body as well as `closingIssuesReferences`. An intentionally non-closing reference can be the real attached ticket. Read the issue's state and discussion before changing it; a partial fix or pending live verification can require keeping it open.

---

<!-- skill 8 of 24: modern web guidance · https://innernet.live/skills/outthislife-modern-web-guidance -->

---
name: outthislife-modern-web-guidance
title: modern web guidance
kind: skill
description: >
  Search tool for modern web development best practices. MANDATORY: Execute
  FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve
  rapidly and training weights contain obsolete patterns. Trigger immediately
  for: modals/dialogs/popovers, tables, dark mode, anchor positioning, container
  queries, view transitions, scroll-driven animations, parallax/reveals, forms,
  validation, autofill, accessibility, custom selects, scrollbars, CWV (LCP,
  INP, CLS), content-visibility, fetch priority, image optimization, security,
  passkeys, HTML sanitization, web components, dates/timezones, b
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/modern-web-guidance
brought_by: kt
license: MIT
---

# Modern Web Guidance

Search and retrieve standardized modern web best practices at the **start** of implementing or updating any web UI, CSS layout/animation, or client-side JS logic (dates/timezones, sanitization, performance, accessibility, UX fixes) before writing ad-hoc solutions or adding dependencies.

## Primary Workflow

### Step 1. Search Use Cases

Run `modern-web-guidance` directly with `npx` using a **2–5 word action-oriented query** for a **single web platform capability or UI pattern**:
- **Keep queries focused and generic**: Describe the user-visible capability (`<verb> + <UI/platform object>`, optionally paired with the target HTML/CSS/JS feature name if known). Omit framework/library names (`React`, `Vue`, `Tailwind`, etc.) and app/domain nouns (product, route, or component/file names). Split multi-feature tasks into separate `search` calls.
- **Name implied UI primitives**: When the user's prompt expresses intent without naming the UI primitive (e.g. "confirm first", "delete with confirmation", "pick a date"), translate the domain intent into the implied UI component or platform mechanism (e.g. search `"confirmation modal dialog"` or `"confirm dialog"` rather than `"confirm destructive action"`, or `"date picker input"` rather than `"pick a date"`).
- **Example**: Search `"light dismiss dialog"` or `"responsive data table"`, **not** `"dialog"` (too terse), `"responsive table dark mode"` (compound — split into two searches), or `"close React settings modal on outside click"` (framework/app noise).

```sh
npx -y modern-web-guidance@latest search "<query>" --skill-version 2026_11_09-5bcc021b
```

> **Note**: Returns `[{ "id", "description" }, ...]`. Judge results by their `description` fields:
> - **Match found**: Call `retrieve` directly—do not also run `list`.
> - **Weak or empty results**: If `search` returns `[]` or unrelated descriptions, **rephrase `search` once** using the concrete HTML/CSS/UI component noun or synonym (e.g., `dialog`, `modal`, `popover`, `table`, `form`) before falling back to `list` (or use `list` once for broad UI audits).
> - **Topic not covered**: If no `description` matches after rephrasing, proceed without retrieving unrelated guides.

### Step 2. Retrieve Best Practices

Once you have relevant `id`(s) from the search results, call `retrieve` to get the full guide(s)—including both specific use-case guides that match your task and any broader discipline guide (e.g., `html`, `css`, `forms`, `accessibility`, `color`, `performance`, `security`) that applies. You can pass multiple IDs separated by commas.

```sh
npx -y modern-web-guidance@latest retrieve "<id>"
```

If `retrieve` saves large output (> 9.5 KB) to a temporary file to prevent truncation, read that file path in full using your file-reading tool (reading remaining line ranges if needed)—do not use `cat` or `head`.

### Step 3. Verify Guidance Compliance

When generating or modifying code, cross-check the implementation against the retrieved guide before concluding:
- **Applicable Guidance & Fallbacks**: Ensure the relevant modern patterns and necessary fallback strategies from the guide are correctly applied, without forcing unrequested features.
- **Task Fulfillment**: Confirm that the implementation fully satisfies the user's request.
- Do not run `legacy-scan`; it's for detecting legacy patterns to modernize, not this.

### Step 4. Disclose Skill Usage

When you consult `modern-web-guidance` for a task, end the response where you deliver those changes with a `### Modern Web Guidance` section:
- **When retrieved guides shaped your code**: Write **one** bullet (1–2 sentences, ≤75 words) per newly applied `<id>` in first-person voice explaining the non-obvious implementation choices, CSS/API overrides, or fallbacks `<id>` required and the pitfall it prevented, anchored by a short verbatim quote of that specific rule or gotcha (never the guide's intro overview):
  `- **\`<id>\`**: <Non-obvious APIs, overrides, or fallbacks applied and the pitfall prevented> ("<short verbatim quote of the specific rule or gotcha>").`
  - **Never** guess `<id>`s or quotes from memory after context compaction (re-run `search`/`retrieve` if needed), and credit **only** guide-backed changes from the current turn.
- **When searched/listed in this turn but zero guides applied**: Write one first-person sentence naming which topics or guides you checked in `modern-web-guidance` and why none applied (omit if any guide applied).

## Alternative flow: Modernize an existing codebase

**Only** when asked for a broad, open-ended codebase modernization or legacy-pattern scan where no specific target feature or component is named (do **not** run `legacy-scan` when asked to add, update, fix, or audit a specific feature or component), run the 4-step modernization flow:

> **Note**: `legacy-scan` scans for a curated subset (~20% of the guidance corpus).

```sh
npx -y modern-web-guidance@latest legacy-scan <path> --json
```

1. Scan: Run `legacy-scan <path> --json` to detect legacy web platform patterns across the project or directory.
2. Verify: Check each finding against its `keepWhen` / `dropWhen` rubric; drop false positives (fallbacks, cross-file helpers, vendor code, lookalikes).
3. Report: Summarize verified findings (and the modernization plan, if editing) for the user, noting that `legacy-scan` only checks the subset of guides (~20% of the catalog) that have deterministic legacy rules.
4. Modernize (when the user asked to modernize rather than only audit/report): Retrieve each finding's guide (`retrieve "<guide-id>"` via Step 2), apply the replacement (keeping existing libraries as fallbacks where the guide requires one), and re-run `legacy-scan <path>` on the modified files to confirm resolution.
   - Dropped findings and kept fallbacks still match static scans; do not edit safe code or inspect `legacy-scan.mjs` to force 0 findings.

## Using npx / pnpx

- **Runner & Permissions**: Prefer `pnpx` over `npx` if `pnpm` is available (`pnpx` does not use `-y`); on Windows, use `npx.cmd`. When requesting tool permissions, allowlist `npx -y modern-web-guidance@latest *` (or `pnpx modern-web-guidance@latest *`) specifically, never bare `npx *` or `pnpx *`.
- **Sandboxes & Network**: Fetching `modern-web-guidance` requires outbound network access. In sandboxed or approval-gated environments (e.g., Codex, Claude Code), **proactively request approval/allowlisting with network access BEFORE the first execution** to avoid timeouts, and set `NPM_CONFIG_CACHE=/tmp/npm-cache` if `~/.npm` is read-only.
- **Offline**: If the command hangs due to being offline, retry with `npx --offline …`.

## Guidelines

- Always search **first** to find the most relevant guides. Do not hallucinate guides or ignore them; they represent the preferred local standard for the user's project.
- These guides use vanilla HTML/CSS/JS; adapt them to your framework without dropping the modern feature:
  - **Types**: Spread/cast newly shipped HTML attributes (`{...({ popover: 'hint', interestfor: id, commandfor: id, switch: '' } as any)}`, `[attr.*]`) rather than removing them or merging `@types/react`.
  - **SSR & Bundlers**: Guard `window`/`HTMLElement` in SSR and load polyfills via bare `import('<pkg>')` in client effects (or set Vite `build.target: 'esnext'` for top-level `await`)—never copy files from `node_modules`.
  - **DOM, IDs & CSS**: Call `showModal()`/`moveBefore()` via refs on non-VDOM-managed nodes, generate per-instance IDs/`anchor-name`s (`useId()`), and keep `:root` and `@starting-style` top-level/unscoped.

## Interpreting Browser Support & Fallbacks

* **Default Behavior**: All guides assume **Baseline Widely available** features are safe to use without fallbacks. For features that are not Baseline widely available, you **MUST** follow the fallback recommendations in the guide, unless the user has specified a custom browser support policy.
* **Custom Policies**: If the user defines explicit browser support requirements, use the guide's compatibility data to determine if a fallback can be ignored (for `Baseline YYYY` targets, a feature satisfies the target if its "Baseline since" date is `<= YYYY`). Examples: _"Do not implement feature fallbacks"_, _"Safari 17.4+"_, _"Never implement polyfills; use a lightweight custom fallback or redesign"_, or _"Allow Newly Available features if feature-detected with graceful degradation"_.
* **Reactive Policy Discovery**: Suggest documenting a policy in `AGENTS.md` or `CLAUDE.md` (e.g., `**Browser Support:** Allow Newly Available features, but only adopt custom fallback code that adds <= 20 lines and no external dependencies`) if the developer targets a restricted runtime (Electron/Tauri), excludes specific browsers, hesitates over polyfill size/complexity, or asks if a feature is safe without fallbacks.

---

<!-- skill 9 of 24: no tropes · https://innernet.live/skills/outthislife-no-tropes -->

---
name: outthislife-no-tropes
title: no tropes
kind: skill
description: >
  Detect and eliminate common AI writing tropes from generated text. Use when
  writing or revising prose, documentation, READMEs, commit messages, PR
  descriptions, blog posts, comments, or any non-code text output. Automatically
  applied as a self-revision pass (tropes.fyi).
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/no-tropes
brought_by: kt
license: MIT
---

# No Tropes (AI writing tells)

After drafting any prose, revise it against the tropes catalog in [tropes-reference.md](tropes-reference.md).

## Core Principle

Write like a human: varied, imperfect, specific. Any single trope used once might be fine. The problem is when multiple tropes stack or a single trope repeats.

## Quick Checklist

Before finalizing text, scan for:

- **Word choice**: "quietly", "delve", "tapestry", "landscape", "serves as", "leverage", "robust"
- **Sentence structure**: "It's not X — it's Y", "The X? A Y.", tricolons, anaphora, false ranges, "-ing" tacked-on analysis
- **Paragraph structure**: Short punchy fragments as standalone paragraphs, listicles disguised as prose
- **Tone**: "Here's the thing", "Think of it as", "Imagine a world", "Let's break this down", invented concept labels, grandiose stakes inflation
- **Formatting**: Em-dash overuse (2-3 max per piece), bold-first bullets, unicode arrows (→)
- **Composition**: Fractal summaries, dead metaphors beaten into the ground, historical analogy stacking, one-point dilution, "In conclusion"

## Revision Protocol

1. Read the full draft
2. Flag any trope matches from the reference
3. Rewrite flagged passages using plain, direct language
4. Prefer simple verbs ("is" over "serves as"), concrete nouns, and varied sentence structure
5. Cut filler transitions ("It's worth noting", "Importantly", "Interestingly")
6. If you catch yourself writing the same structural pattern 3+ times, break the pattern

---

<!-- skill 10 of 24: notarize mac · https://innernet.live/skills/outthislife-notarize-mac -->

---
name: outthislife-notarize-mac
title: notarize mac
kind: skill
description: >
  Build and verify a signed, notarized macOS app or DMG using the project's
  existing notarization automation. Use when the user asks to notarize a Mac
  build, produce a release DMG, or verify Gatekeeper.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/notarize-mac
brought_by: kt
license: MIT
---

# Notarize macOS Build

Use the project's existing notarization automation. Don't invent a new signing
pipeline or expose credentials.

## Procedure

1. Confirm the checkout and branch. Default to a clean, current default branch.
2. Locate the existing notarization/release script (e.g. a
   `notarize-*-installer.sh` or the release script the project already ships):
   - use a path the user supplies first;
   - otherwise search the repo and nearby release/notary checkouts;
   - if none exists, ask for its location instead of recreating it.
3. Run the script from the environment it expects.
4. Preserve its signing identity, App Store Connect key handling, artifact
   naming, and notarization flow.
5. Verify the resulting artifact with the script's checks or `spctl`.
6. Report the artifact path, size, notarization result, and Gatekeeper result.

Never print private key contents, signing credentials, or secret values.

---

<!-- skill 11 of 24: perf · https://innernet.live/skills/outthislife-perf -->

---
name: outthislife-perf
title: perf
kind: skill
description: >
  The general profile-driven perf loop for any language or runtime: baseline,
  profile, fix the real hot path, re-measure. Use for /perf, "this is slow", or
  optimization work.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/perf
brought_by: kt
license: MIT
---

# Perf

The general performance loop. Profiling (CPU profile, flamegraph, memory
snapshot, trace) is the usual tool, but the loop is the same regardless of which
one fits.

## Loop

1. Reproduce the slow path and capture a baseline number — time, memory, FPS,
   request latency, whatever matters here.
2. Profile to find the real hot path: CPU profile / flamegraph / memory snapshot
   / trace as fits. Reuse the repo's existing profiler; don't build a parallel
   harness.
3. Read the profile, not your intuition — fix the actual hot path.
4. Re-measure. Record before/after in the PR title/description.
5. Ship in topical commits (`pr-update`), `clean`, keep CI green.

## Live Electron / hgui

- Attach to the existing renderer with the repository's CDP helper and exact dev-server URL; preserve tabs, drafts and running agents. Keep source edits in the worktree and save reversible live injections outside the app's Tailwind source scan.
- Separate uninstrumented frame timing from CPU, selector-statistics and React attribution passes. Do not run your own tests/builds concurrently with comparison captures. Record mounted/visible panes and busy-session counts with each sample; persist raw samples before reporting tables.
- Treat geometry/read functions atop a CPU profile as possible flush victims. Trace `UpdateLayoutTree` and style invalidations before optimizing their callers. Isolate interacting selector families together: removing one broad `:has()` rule can show no gain while other rules still invalidate the same subtree. Preserve behavior with positively anchored owner selectors, sibling rules, or existing observed state; do not ban `:has()` generally.
- Recheck target ID, code revision, runtime state and injection globals after interruption/restart. A fresh process or independently updated checkout is a new baseline, never an after result for the old renderer. Report aged and fresh results separately; native/embedder heap growth or a GC pause alone does not prove a leak.
- Put lazy render callbacks below existing presence boundaries. `items(kit)` eagerly creates a closed menu's elements even when its portal mounts nothing; a small child component lets presence defer construction without replacing open/close mechanics. Test both dropdown and context paths plus latest-item selection.
- Verify Vite Fast Refresh's actual component family IDs before injection: local registrations and `export` registrations are distinct, and registering an already-known type under a second ID is ignored. Use the shipped `validateRefreshBoundaryAndEnqueueUpdate` export where `performReactRefresh` is private, and verify rendered markers afterward.
- Detect live render failures from boundary state or error elements, not whole-body text: this conversation's code/tool output can itself contain the error phrase. Restore instrumentation in `finally`, and describe live injections as reload-volatile.

## Web loading contracts

- Verify the delivered page's boot entry before attributing a disappearing CMS slot to async registration. In Vue, `createSSRApp` preserves existing SSR nodes while an async component loads; `createApp` clears the mount container, and `hydrateOnVisible` cannot preserve it on that client-rendered path. Exercise the real component with a held loader and assert node identity/presence; a zero rectangle in layout-shift attribution alone does not prove a DOM remount. Recheck the response from the exact browser run, including its viewport/UA and experiment cohort: a curl request and a fresh browser can receive different SSR/CSR paths for the same URL. Record real node geometry as well as identity; a node pushed outside the viewport can have a zero attribution rectangle without collapsing or unmounting.

- For cached-SSR public directories, carry only a neutral display projection through serialized store state and keep those rows mounted during a small background revalidation. Removing every client fetch can leave changed locations stale inside cached HTML. Compare original-node retention, final text/links, interactions and settled screenshots; report payload savings separately from whole-page scores, including the new SSR-state bytes.
- For personalized CMS request warming, separate public dependency identifiers from authoritative content and keep the actual visitor request on its existing service path. Prove hydrated-state availability before the remaining async route/component wait; inspect production module preloads before promising a gain. Use a manually released loader for ordering proof, never synthetic sleeps as a latency benchmark. Keep commit/validation/errors/exposure in the normal consumer, dedupe per store/context, skip existing cache hits, and verify invalidation of both settled and in-flight results. A short TTL or cookie fingerprint alone does not prove auth freshness; report manually simulated invalidation separately from wired application lifecycle coverage.
- Preserve consent-container and ordered vendor-loader contracts when refreshing a performance branch. Restoring eager GTM or upstream DY ordering changes the startup profile; label old Lighthouse numbers as historical instead of carrying them forward as proof of the new revision.
- For autofocus behind a visibility/reveal gate, wait for both initialization and reveal, consume the focus request once, and cancel it on reset. Verify the actual active element in a browser with the real hiding CSS; a mocked focus-call assertion cannot catch a silent focus no-op on a hidden iframe. Label simulated vendor-event tests separately from live SDK/environment verification.

## Product-grid browsing

- Count requested and mounted images after a fixed scroll journey, not just visible cards. Native lazy loading can still fetch hidden carousel slides. Preserve slide geometry; mount covers initially and warm adjacent photos on pointer, touch, focus and selection, retaining the original carousel mechanics.
- Separate network batches from rendered increments when each request pays substantial startup cost: fetch several screens at once, reveal the existing small card count per intersection, and prefetch one batch ahead. Keep the batch size in query keys so older short cached pages cannot falsely signal end-of-list. Test rapid reveals, crossing a batch boundary without duplicate requests, correct end-of-list behavior, and reset/isolation across sort/search/filter keys; never mount the entire buffer or recursively crawl the whole feed.
- When persisting only an infinite query's first page, preserve that page's own fetch age. Appending later pages advances the query timestamp but must not extend stale prices or stock. Bound storage, retain background revalidation, and test fresh reloads with delayed real network responses plus expired-snapshot rejection.
- Report cold catalog loads separately from warm server and restored browser caches. A warm rerun is not evidence that a cold upstream walk became faster; compare identical revisions, viewport/device scale, product counts and scroll steps, saving raw timings and profiles.

## Serverless catalog caches

- Verify cache behavior after restarting the process and again on the deployed platform; a warm local Map can hide repeated multi-second catalog walks on new serverless instances. Compare exact product IDs/order/prices across the cache change, not only response timing.
- In Next, move a Pages API handler to a real App Route when it needs persistent Data Cache SWR and `after()` lifetime support. Wrap overloaded Apollo integrations in a request-only adapter for Route Handler typing, and externalize `graphql` alongside `@apollo/server` so schema class identities stay shared.
- Measure upstream page sizes before caching. Large Shopify pages can exceed the Data Cache's 2 MB entry budget; cache compressed validated pages and decompress losslessly, rather than dropping fields or storing one oversized full-catalog entry. If keeping decoded in-memory catalogs, carry the oldest upstream page's original fetch timestamp through persistent storage; cache reads must not restart that TTL. Bound the decoded-cache entry count.
- Treat throttling, invalid payloads and required-page failures as errors, never end-of-catalog. Consume concurrent speculative pages in order, stop only at a successful short page, and safely settle remaining requests within the response lifetime; failed refreshes must not replace valid stale data with empty arrays.

- Benchmark a trivial empty query when deployed latency remains high despite data caching: function startup alone may dominate. For public read-only GraphQL, use GET with a bounded-URL POST fallback and the required Apollo preflight header; cache only successful, non-authenticated JSON responses at the CDN for a short window. Verify real `x-vercel-cache: HIT` and keep cache-miss versus cache-hit timings separate. Update browser test request parsing and route interception for query-string GETs.

- Inspect every entry in an IntersectionObserver delivery when a ready grid stalls at the sentinel. Rapid scrolling can coalesce a leave and re-entry for the same observed target; use its latest entry, not `entries[0]`. Record native batches and query readiness before blaming React closures or the network, then stress rapid successive reveals across data-batch boundaries.

## Browser idle and retention

- Assert the browser's actual `innerWidth`, `innerHeight`, DPR and theme for every named case; requested launch options are not proof. Use explicit units in sampling helpers and reject accidental millisecond/second mismatches. Exclude failed/misconfigured runs instead of folding them into a coverage total.
- Separate stationary idle counters, frame-cadence probes, CPU/paint traces and heap snapshots. RAF cadence is not proof of presented GPU frames. CDP GPU-process CPU time is not hardware GPU utilization.
- Assert scroll trajectory as well as cadence: replay wheel input across nested scroll-region boundaries in both directions, record per-frame scrollY, wrong-direction deltas and total requested travel. A page can report 60 FPS while native scrolling fights an in-flight Lenis animation. Use axis-specific prevention for horizontal carousels inside vertical pages, retain truly independent native vertical regions, and verify horizontal wheel/drag/keyboard behavior separately.
- Compare post-GC retention after code/data caches warm, with equal mounted content and genuine same-document route cycles. Inspect retaining paths when detached nodes remain. Heap snapshots and DevTools network response buffers can inflate native RSS; distinguish bounded caches/tooling overhead from growing app retention.
- When a persistent React owner returns null off-route, bind DOM-owning motion effects to that presence boundary. Clear Element-keyed interruption maps when the panel disappears, but preserve them for reversals on the same mounted panel. A real Chrome fixture using the exact source, native WAAPI and WeakRefs can verify release independently of unavailable full-route infrastructure; label it isolated component verification.
- Preserve exact gradient stops/tokens when moving an animated background onto a transformed layer. Compare fixed-clock edge pixels at endpoints and midpoint before accepting performance gains; a faster changed design is not parity. Derive transform percentages from the actual background positioning geometry.
- Keep autoplay media paused off-screen, while hidden and under reduced motion; observe live preference changes and disconnect ownership on unmount. Use the latest entry in coalesced visibility batches. If a headless tab never becomes hidden, report native-background coverage as unverified rather than treating a tab switch as proof.
- Preserve each animation's initial play state in A/B/A probes. Calling `play()` on an initially paused closed-panel effect manufactures work and invalidates the native control; restore only the owners that were running. Save the exact harness/module versions with each capture.
- Isolate RAF drivers and CSS/compositor animations both individually and together. An otherwise cheap RAF can keep main-thread style sampling active while an independent compositor animation still consumes GPU-process CPU. Verify the actual mounted canvas/owner at named waypoints rather than attributing a footer shader to a nearby sigil or trusting a stale component comment.
- Obtain design approval before introducing an inactivity cutoff for approved ambient decoration; pausing visible motion is a product trade-off, not a free rendering optimization. Preserve the approved grace period, suspend on document leave/blur, ignore transitions between document children, and verify native pointer re-entry plus keyboard recovery. Label measurements from a superseded timing policy instead of relabeling them as final.
- Verify demand-driven animation against the real engine, not only a mocked scheduler: wheel, anchors, programmatic and native scrolling, locks, hidden/resume time continuity, settle, and teardown. Decorative idle suspension should freeze its last pose and resume active-time clocks; compare idle screenshots and callback/draw counts so a blank canvas cannot pass as an optimization.

## SSR responsive-image request selection

- Compare the actual component's `renderToString` output, serialized state and `createSSRApp` hydration with an SSR device bucket opposite Chrome's viewport. Hold vendor readiness and data responses independently; record initial requests, mount-only requests, branch transitions, image geometry and hydration warnings. Native `picture` sources plus CSS sizing avoid UA-driven source swaps; preserve the existing media-aware SSR preload contract rather than adding a conflicting fallback-image preload. Check pre-hydration `complete && !naturalWidth` as well as later error events, then prove interactive handoff still proceeds. For billable image APIs, intercept every browser request before navigation, reject unexpected keys, and fulfill only explicitly nonsecret URLs with labeled synthetic images. This proves request selection and geometry, not cartography or page-level LCP gains.

## Don't

- Optimize by guess before profiling.
- Fiddle with the measurement system instead of improving perf.
- Run a full suite or profile that overwhelms the machine — scope the run.
- Report gains you didn't measure.

---

<!-- skill 12 of 24: pr ready · https://innernet.live/skills/outthislife-pr-ready -->

---
name: outthislife-pr-ready
title: pr ready
kind: skill
description: >
  Clear everything blocking an existing PR/MR from merging — rebase onto the
  default branch, get CI green, and resolve review threads (Copilot and human).
  Use for "rebase on main", "make CI green", "fix CI/CD", "address the reviews",
  "address Copilot", "review-loop", or "get this mergeable".
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/pr-ready
brought_by: kt
license: MIT
---

# PR Ready

An open PR/MR isn't mergeable. Two things block it — a **stale base or red CI**,
and **open review threads**. Same loop for both: fix, push, re-query the forge,
repeat. Handle whichever is blocking; usually that's both.

No feature work. No drive-bys.

## Rebase + CI

1. Find the worktree for this PR (or create one per repo convention). Prefer an
   existing worktree the user already has.
2. `git fetch origin <default>` (usually `main`).
3. Honor repository history rules before choosing an update strategy. Where force pushes are forbidden or the user requires a merge, merge `origin/<default>` into the existing branch without rewriting commits. Otherwise rebase onto `origin/<default>`. Resolve conflicts by reading both sides' intent and regression tests; shared callback code must preserve newer callback-once behavior as well as the PR's guards.
4. Push (`--force-with-lease` if the rebase rewrote history).
5. Watch CI. Fix **failures caused by the rebase or existing breakage on this
   branch** — nothing else.
6. Flaky upstream on the default branch → say so. Don't paper over it with
   unrelated test deletes.
7. Verify `process.execPath` in the same execution mode as MR tests, using the repository's package manager. Background login shells can replace an earlier PATH export, so select the project's declared Node version inside the launched command. A newer runtime can shadow happy-dom localStorage or remove util.isDate; rerun unchanged failing tests under the supported runtime before editing application code.
8. For merge commits, old lint-staged hooks can autoformat every upstream file in the index. Run lint on the PR delta and the repository precommit checks explicitly, preserve upstream files, and document any one-command hook bypass used solely to prevent unrelated formatting. Never call that bypass a substitute for verification. Do not assume `HUSKY_SKIP_HOOKS=1` is honored: inspect the hook output. Legacy hook `git add` can also include unstaged edits to already-staged files. Reconcile the resulting commit against the pre-merge PR file set plus intended fixes, and restore unrelated suppression-file pruning rather than publishing incidental changes.

- Unset `npm_config_prefix` on MR commit processes as well as test processes so Husky’s nvm hook can select Node 18. If legacy lint-staged concurrently runs `git add` for JS and Vue groups and races on index.lock, first verify the lock has disappeared and review the staged diff. Split the staged extension groups into additive commits if needed; do not delete a live lock, rewrite published history, or bypass the hooks to hide the race.

## CI-only failures

- Distinguish a V8 heap-limit abort from a container OOM before changing CI resources. Measure the failing typecheck with the supported runtime and extended diagnostics, then verify a bounded heap override scoped to that job; keep the typecheck enabled.
- Reproduce repository-wide duplicate scans against a tracked `git archive` snapshot, not a working tree full of local build output. Attribute clones before changing configuration. Machine-generated API artifacts should be regenerated and drift-checked, not manually deduplicated; preserve the authored-code threshold when excluding those artifacts.
- Verify the package script's actual scope before calling a run the full backend suite. A package's `test` script may run unit tests only, while `exec jest --runInBand` exercises every configured Jest project. Require the completed project/suite summary, not a partial log.

## Interrupted repairs

- Reconcile the current remote head, worktree diff, and saved test evidence before resuming an interrupted repair. Preserve an existing merge and relevant uncommitted fixes; do not repeat a repair already pushed by another worker. A partial test log without a completed runner summary is not a pass.
- When a merge exposes tests for deliberately deleted files, verify the deletion commit and remaining production references before retiring those assertions. Keep active replacement coverage and record the before/after failure evidence; do not restore retired application code or delete unrelated tests merely to turn CI green.

## Review threads

1. Commit/push any unpushed work first (ask if the message is unclear).
2. List open/unresolved inline comments + review bodies.
3. Want a bot pass? Request the repo's review bot, then wait for it — don't spin
   forever; if it's stuck ~10–15m, say so. A Claude comment explaining how to request a manual review is not a completed review. When actual AI review is requested, trigger it for each PR/base and verify the submitted review matches that PR's current head. Inspect the check's title/body: a neutral clean review with an explicit no-issues result differs from a neutral worker result with zero turns and no review. Keep those outcomes separate.
   A managed Claude review and the legacy Claude GitHub Action can both react to one mention. If the legacy action fails but the managed review completes, reply with both exact run/review links; do not call the failed action successful or blindly rerun both services.
4. Per comment: valid → fix and resolve. Wrong or outdated → short reply and
   resolve. Nit out of scope → ask once. Never resolve a #1 maintainer comment
   without fixing it or an explicit override (`pr-triage`).
5. Push (`pr-update` if they want the commits split).
6. Repeat until unresolved threads are gone, or only ones they OK'd deferring.

## Large visual assets in a review

- Measure lossless conversion with the existing image tooling before promising a size reduction. Compare decoded RGBA bytes and dimensions, preserve color metadata, and inspect the rendered article on desktop/mobile. Keep source provenance URLs unchanged and map only the optimized local targets; test every corpus image against both local and immutable-release asset bases rather than widening CSP to hide missing vendoring.
- Distinguish final-tree/browser savings from Git-history savings. An additive optimization leaves old blobs in ancestry; recommend a separately authorized squash merge when appropriate, never claim the history was reduced or delete preserved prototype branches.
- Persist the paginated review inventory and per-thread reply/fix evidence to a local JSON ledger. Large `gh` output can be truncated through tool wrappers; redirect API JSON to disk before parsing, and verify unresolved counts against every page before handoff.

## Done when

Re-query the forge — don't trust that a push turned CI green or that a reply
resolved a thread. **Fail closed:** any red check or open thread means you're
not done.

- Confirm the PR API head matches the pushed SHA before attributing checks to it. Git refs can update before the PR API catches up; read the remote ref and retry the PR query rather than treating the preceding head's checks as current.
- Inventory inline threads again after local verification, not only before it. Bot reviews may arrive while tests run; persist every page, reply with the fixing commit, then read back resolution and the exact reply.
- Validate every explicit test path before a focused Vitest run, and compare its final file count with the requested set. Vitest can return exit 0 after running only the matching subset when one supplied path is wrong; a green exit alone does not prove all requested files ran.
- Distinguish an advisory workflow's green wrapper from its underlying lint findings. Verify a focused additive fix against its immediate parent when the whole PR has known advisory debt, and report both scopes without widening into unrelated cleanup.

Report the branch tip, checks status, and a short fixed-vs-replied summary.

## Urgent preview handoff

- Freeze audit scope when the user prioritizes publication. Publish completed, authorized work before more exploratory checks; address only actual build/CI blockers afterward.
- Trace the exact requested route to its unpublished dependencies before pushing. A successful deployment without the new article/feed code does not satisfy a requested URL. Verify that exact deployed URL returns the intended content, not merely HTTP 200 or a ready build.
- Reconcile shared-worktree ownership explicitly. Preserve another worker's changes until authorized; once the user authorizes publishing the remaining work, include its required server modules, dependencies, asset policy and environment declarations together. Never include actual credential files.
- On delegation failure, reconcile partial edits immediately, especially red tests without their implementation. Report published, locally complete and unfinished work separately; test counts are not shipment status.

## Scope lock

- No refactors, restyles, or "while I'm here" fixes.
- Don't expand the PR description or supersede unless asked (`pr-update`).
- Wrong-premise PR that needs salvage → stop and say so, hand off to
  `pr-triage`. Don't silently rewrite it.

## Forge cheatsheet

```bash
# GitHub — CI
gh pr view <N> --json url,headRefName,baseRefName,statusCheckRollup
gh pr checks <N>

# GitHub — threads
gh api repos/{owner}/{repo}/pulls/<N>/comments --jq '.[] | {user:.user.login,path,line,body:(.body[:200])}'
gh api repos/{owner}/{repo}/pulls/<N>/reviews  --jq '.[] | {user:.user.login,state,body:(.body[:200])}'
gh api repos/{owner}/{repo}/pulls/<N>/comments -f body='…' -F in_reply_to=<comment_id>
gh pr edit <N> --add-reviewer copilot   # if that's what the repo uses

# GitLab
glab mr view <N>
glab ci status
glab mr note <N>        # + the discussions API for resolve
```

---

<!-- skill 13 of 24: pr triage · https://innernet.live/skills/outthislife-pr-triage -->

---
name: outthislife-pr-triage
title: pr triage
kind: skill
description: >
  Maintainer triage on OTHER people's PRs/MRs — verdict of approve, supersede,
  or close, salvage with credit, close the cluster. Use for a review batch, a
  pasted Discord thread with a PR, or salvage/supersede/close asks. Not for your
  own PR (that's pr-ready).
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/pr-triage
brought_by: kt
license: MIT
---

# PR Triage

Maintainer triage. Three real outcomes: **approve**, **supersede** (salvage +
credit + close the old one), or **close** (wrong premise). Verdict first; wait
for an explicit **go** before forge writes (approve / supersede / close / merge /
push). Use `gh` or `glab`.

## Explicit review scope

Treat the user's stated outcome set as overriding the default taxonomy below. If they request **approve or request changes only**, review each MR on that basis: report concrete blockers as request changes, and do not consolidate, supersede, close, or implement a replacement. Keep the verdict-first / explicit-go boundary for forge writes.

## Kickoff

Batch ("we will be reviewing…") or a pasted Discord/`>>>…<<<` thread with a PR:

1. Figure out repo + forge. Skim `AGENTS.md` / `CONTRIBUTING.md` if present.
2. Match this repo's worktree/branch naming by inspecting existing worktrees.
3. Don't touch the primary checkout — use worktrees.
4. **Cluster the batch first** (below), then verdict + salvage plan; wait for go
   before forge writes.

## Cluster the batch first (before per-PR verdicts)

More than one PR/issue in front of you? Group them by the **fix they need**
before you judge any single one. Multiple PRs on the same bug (or fragile
subsystem) are **one consolidation**, not N salvages.

1. Map each PR/issue to the underlying fix and the files/subsystem it touches.
2. Any two that fix the **same bug class or the same subsystem** → treat the
   group as **one super-PR**: build the proper fix once, credit **every**
   author (`Co-authored-by` + `@handle`), and supersede the whole cluster.
3. Default to consolidation. Only keep PRs separate when the fixes are genuinely
   independent (different bug class, different area, no shared code).
4. State the grouping up front, e.g. `#68665 + #63590 + #67603 → one super-PR`,
   then run the per-PR loop **within** each group to confirm premises.

Do **not** enumerate one verdict per PR when they share a fix — that's the lazy
shape. One cluster → one consolidated supersede.

## Discord threads

A pasted thread *is* the intake. Don't make them restate a bare URL.

A support handoff with an owner/maintainer column is a shared board, not her queue. Take only rows
whose owner names her (alone or shared); list the rest as "not yours" with no forge writes, even when
the ask is a broad "help these out". Approving, merging, salvaging or closing another maintainer's
cluster is overreach she has to walk back.

1. Pull out symptom, platform, linked PR/issue, what staff already said.
2. Open those PRs; look for siblings on the same fix.
3. Run the per-PR loop. Check the PR actually matches the reported bug.
4. Draft a user reply only if useful — still wait for go before GH actions.
5. No PR? Search open ones; if they want a new fix, follow that repository's
   worktree workflow.

## Issue-only closure audits

- Follow the user's issue verdict taxonomy rather than applying PR supersede outcomes. A reachable fix commit is a lead, not proof that the entire issue is solved; read later comments and test the present implementation.
- Honor explicitly assigned issue numbers even when their PR references appear only in comments; timeline-based batches do not implicitly own them. Only exclude merged-reference issues when the assignment expressly says to. Inspect references in the body and comments as well as timeline cross-references, resolve object and merge state live, and record actual exclusions as skipped rather than solved. A historical, partial, or unrelated merged reference is not resolution evidence.
- Preserve the reviewed base SHA in machine-readable results. Separate closure candidates, substantively unresolved issues, and skipped ownership cases in totals; inherit labels on skips only with an explicit unassessed qualifier.
- Distinguish external-repository merges from upstream implementation. Check the referenced repository and `git merge-base --is-ancestor <merge> <reviewed-base>`; exit 128 for an unavailable commit is missing ancestry evidence, never proof of inclusion or exclusion. For oversized PR diffs, recover the issue-relevant patches with paginated `gh api repos/<owner>/<repo>/pulls/<number>/files --paginate --slurp` rather than trusting a truncated file list.
- Re-enumerate a range-limited catalog independently before writing verdicts, using the exact source/subject merge predicate requested. Assert selected IDs equal reviewed IDs, not just equal counts, and retain later human reports and unresolved acceptance requirements even when a sibling fix merged.
- For merged-reference issue batches, derive and count the exact selection from both timeline `source` and `subject` objects. Preserve external-repository references: a merged fork/plugin PR is not upstream coverage, and `merge-base` exit 128 means an unavailable object, not a proven non-ancestor.
- Read reopen events and post-fix reports before proposing closure. GitHub can auto-close from a negated phrase such as “does not fix #N”; a test-only or sibling PR linked that way is not a production fix.
- For merged-reference issue audits, check the PR's base branch and `git merge-base --is-ancestor <merge-sha> <reviewed-main-sha>` before treating it as landed. Stacked fixes can be marked MERGED into an unlanded feature branch; absent feature code on main is not proof that a pre-merge bug report is resolved. Conversely, inspect current code and its history for later fixes outside the issue timeline so an unrelated reference does not hide an actual resolution.
- When the desktop Vitest workspace cannot load a missing build plugin, do not install dependencies during a read-only audit. A scratch standalone config can run source-level suites with the app's aliases, React/ReactDOM package resolution and existing setup file, without extending its Vite build config. Label this as alternate-config testing, not packaged Electron verification. Scratch hook probes must execute actual imports, never regex-match source.

## Issue audits with merged cross-references

For recommendation-only audits, preserve that boundary: no forge writes, even when a related PR is merged.

- Enumerate the full requested issue set programmatically from structured source/subject references; save the input IDs and assert the final reviewed IDs match exactly.
- Read issue bodies, all comments, and timeline events before treating a merged PR as resolution. Flag reopens and distinguish post-merge reproductions from comments predating the fix.
- Verify each merge commit is an ancestor of the exact reviewed main SHA, then inspect the current code. A related PR, stale closure trailer, or mitigation is not full acceptance evidence.
- Separate every reported requirement and later variant. Recommend closure only when all are addressed with high confidence; otherwise name the concrete residual or unverified acceptance case without claiming it still reproduces.
- Record test commands and actual results, including startup blockers and alternate test configuration. Unit recovery tests do not prove native-app geometry, update-time permissions, or cross-profile end-to-end isolation.
- Draft closures with complete PR/source URLs and say fixed on main, not released, unless the release artifact was separately verified.

## Forge cheatsheet

| Action | GitHub | GitLab |
|--------|--------|--------|
| View | `gh pr view <N>` | `glab mr view <N>` |
| Diff | `gh pr diff <N>` | `glab mr diff <N>` |
| Comment | `gh pr comment <N>` | `glab mr note <N>` |
| Review | `gh pr review <N> --approve \| --request-changes` | `glab mr approve` / note |
| Close PR/MR | `gh pr close <N>` | `glab mr close <N>` |
| Close issue | `gh issue close <N>` | `glab issue close <N>` |

```bash
git fetch origin pull/<N>/head:refs/remotes/origin/pr-<N>   # GitHub
# GitLab: glab mr checkout <N>
```

## Per-PR loop

Run this **within each cluster** (see "Cluster the batch first"). If the group
consolidates, the salvage plan is shared and you supersede all of them into one
super-PR — don't emit a standalone salvage per member.

1. Metadata + diff + existing reviews (`gh` / `glab`).
2. Unaddressed **#1 / lead maintainer** comments → do not approve.
3. Check the premise on current default branch (usually `main`).
4. Cherry-pick/apply in a review worktree; run targeted tests this repo uses.
5. Return a verdict:

```markdown
**PR/MR:** [#N](https://…/pull/N)

**Verdict: approve | supersede | close-as-wrong-premise**

**Worktree:** `…` · `<branch>`

### Why
- …

### Checks
| Check | Result |
|---|---|
| Merges onto default branch | … |
| CI | … |
| Targeted tests | … |

### Next (after go)
- approve: …
- supersede: salvage plan (reuse X, drop Y, tests Z, credit @handle)
- close: wrong-premise comment outline
```

## Pick the verdict (no soft exits)

| Situation | Verdict |
|-----------|---------|
| Idea + shape are fine | **approve** |
| Idea is right, shape is wrong (wrong helper/layer, missing tests for the bug class, contaminated, stale/conflicting, duplicate of another PR, ignored lead feedback) | **supersede** |
| Premise doesn't hold on current default branch | **close-as-wrong-premise** |

**Anti-patterns — do not do these:**

- `keep open — ask the author to rewrite / reuse helper X / add coverage`
  when the shape is already wrong → that **is** supersede. You salvage it.
- Inventing a fourth outcome (`request-changes`, `needs-info`, `wait-and-see`)
  for external PRs that need reshaping.
- Emitting one verdict per PR when several fix the same bug/subsystem → that's
  **one** consolidated super-PR that supersedes the cluster, credit all authors.
- Parking on someone else's confirmation when the PR's *shape* is already a
  supersede (wrong helper, wrong layer, no bug-class tests). Note the open
  question under Why if useful; still verdict **supersede** with the salvage
  plan. Only block the verdict when you literally cannot tell whether the
  reported bug is this codepath vs something else — and even then say what
  evidence would flip it, don't default to "ask the author."

`request-changes` is **not** a triage verdict. It is only for **trusted /
internal** authors with a **single tiny nit** under Approve — never for
"please rebuild this correctly."

## Trusted / internal authors

Infer from organization membership, team roles, prior maintainer behavior, or
the user explicitly identifying someone as a lead/internal contributor. If a
`pr-triage-<repo>` overlay skill exists for this repo, load it for the roster
and worktree layout.

| Who | Default |
|-----|---------|
| **#1 lead** | Prefer approve/merge. Don't supersede automatically. Never approve over their open review comments. |
| **Other internal** | Prefer approve. One tiny nit → ask them (request-changes). Needs a real rewrite → **supersede** (or they bounce it to you). |
| **External** | Normal bar. Idea right / shape wrong → **supersede** with credit. Never "ask them to rebuild it." |

## When to supersede

- Contaminated / wrong close keywords
- Stale conflicts, author not fixing
- Duplicates a helper / wrong layer / wrong issue
- Missing tests for the bug class while the idea is right
- Same bug across 2+ PRs → one shared fix
- Lead feedback ignored and the idea is still right

Not enough alone: taste nits, optional follow-ups, "could be prettier."

## Supersede (only after go)

This is the default salvage ritual — not a rare escalation.

1. **One** salvage worktree for the whole cluster — not one per PR.
2. Keep the good idea; drop junk; reuse existing helpers (don't re-ask the
   author to). Check what already landed on the default branch first — part of
   the cluster may already be fixed, so build only the residual gaps.
3. Credit **every** author in the cluster: cherry-pick or `Co-authored-by` +
   `@handle` for each in the body.
4. Tests for the bug class; green.
5. Open **one** new PR/MR: `Supersedes #N, #M, …` for all members;
   `Closes`/`Fixes` only for issues it really fixes.
6. Close the cluster (below).
7. Run `no-tropes` on public comments.

Templates: [reference.md](reference.md).

## Close the cluster

After supersede or a merge that kills siblings:

1. Close every superseded/sibling PR/MR for that fix — comment `Superseded by #<new>.`, then close.
2. Close related issues this work actually fixed (`Closes #` on the new PR, or close by hand).
3. Don't close issues for a different bug class.
4. "Supersedes" does not auto-close other PRs — you close them.
5. Audit asks → page recent supersedes/merges, close stragglers, report counts.

## Approve (after go)

- Short approve (or merge if asked). Credit stays with the author.
- Fork PR with CI `action_required`: approve each run (`gh api -X POST repos/<o>/<r>/actions/runs/<id>/approve`, ids from `actions/runs?head_sha=<head>`) so CI actually runs, then merge with `--auto`.
- Before `--rebase --auto`, check `gh api repos/<o>/<r>/pulls/<N> --jq .rebaseable`. A branch that merged main over a conflict is `false`, and the rebase merge will fail. Never switch to squash or merge commits: she wants rebase only. Rebase the branch onto main yourself (maintainer push to the fork, or ssh if it touches workflows), push with lease, then arm `--rebase --match-head-commit <new-sha>`. If you can't push to the branch, report it.
- An author push after approval dismisses the review AND disables auto-merge. Re-check the new head's scope (`git show --remerge-diff` for merge commits), re-approve, re-approve its runs, and re-arm auto-merge.
- Internal + **one tiny nit** → request-changes / ask them to fix first.
- Anything bigger than a tiny nit → supersede, don't ball-bounce.
- After merge, close leftover duplicate PRs/issues.

## Before you stop (every item)

Run this checklist at the end of each PR/item — don't wait to be reminded:

- [ ] Batch clustered first: PRs sharing a fix/subsystem are grouped into ONE
      super-PR, not enumerated as separate salvages.
- [ ] Verdict is one of: approve / supersede / close-as-wrong-premise (no
      "keep open — ask author" for reshape work).
- [ ] If supersede: Next section has a concrete salvage plan (helpers, drops,
      tests, credit for every author) — ready for "go".
- [ ] Superseded/sibling PRs for this fix are closed with a pointer comment.
- [ ] Related issues this actually fixed are closed (or `Closes #` on the new PR).
- [ ] Any user-facing reply is short and actionable — an optional note, not an essay.
- [ ] Shipping work is split into topical commits (`pr-update`) and CI is green.
- [ ] You scoped the whole fix, not a timid subset.

## Merged-reference issue closure audits

When the user requests recommendations only, preserve that boundary: do not perform forge writes.

- Enumerate the exact eligible issue set programmatically and save it before reviewing; validate the final unique reviewed IDs against that selection so large batches cannot silently lose entries.
- Read the complete issue, comments, reopen events, and merged PR bodies before deciding. Split compound requests into acceptance requirements; a related or explicitly partial PR is not a closure proof.
- Verify every cited merge is an ancestor of the reviewed main SHA. A merged cross-reference from another repository is not evidence of an upstream landing.
- Trace the current implementation and exercise focused behavioral tests. Distinguish a causal fix from a merely adjacent merged reference, and cite the actual fixing commit when needed.
- Keep a report open when post-merge reproductions or unverified required variants remain. Flag reopens explicitly; closure drafts must state the resolved behavior and say main, not released, unless release availability was separately verified.

## Reviewing issues with merged references

- Treat a merged reference as a discovery lead, not completion evidence. Read the full issue and later comments, compare every acceptance requirement with the merged diff and current default-branch code, and preserve explicitly reopened or partially fixed reports.
- Verify repository identity and merge ancestry before claiming implementation on main. A fork or sibling-product merge does not establish upstream coverage; an unavailable commit object is not proof that a commit is or is not an ancestor.
- Persist the selected issue IDs before a batch review, then compare the sorted reviewed IDs against a fresh selection in code. Report exact count equality and retain blocked tests separately from passing checks.

## Auditing issues with merged references

- Honor an issue audit's explicit verdict set (for example, close versus keep-open) instead of applying the external-PR salvage taxonomy. Do not perform forge writes in a read-only audit.
- Select and deduplicate references by full repository-qualified URL, not PR number: a merged fork-only synchronization PR is not an upstream fix. Check each merge SHA against the exact reviewed main SHA.
- Read the full PR diff with `gh pr diff`, not only `git show <mergeCommit>`: after a rebase merge, GitHub's mergeCommit may identify only the last attribution or cleanup commit. For oversized diffs, inspect issue-relevant files/commits and state the limitation.
- Compare every original requirement and later reporter contradiction against current code. Partial fixes, reverted changes, broad trackers, and a successful candidate test are not whole-issue closure proof.
- Trace additional fixes from current source history when a timeline reference is irrelevant; record the newly discovered PR, its ancestry, and behavioral evidence rather than crediting the wrong reference.
- Execute dependency-light behavior probes when the ordinary runner is blocked, without changing shared dependencies. Report runner blockers separately from actual passing probes; never label a blocked suite as passed.
- Persist per-item reviews in batches and verify selected IDs equal reviewed IDs before reporting totals. Closure drafts must cite full fix/source URLs and distinguish main coverage from release availability.

## Hard rules

- Worktrees only for review work — not the primary checkout.
- Never `git stash` in a review worktree. The stash list is shared by every worktree of the repo, so a concurrent agent can pop your entry or you can pop theirs. To revert a file for a before/after test, save it with `git diff <file> > $TMPDIR/x.patch`, run `git checkout -- <file>`, then `git apply` the patch.
- No supersede / close / approve / merge without explicit go.
- No approve past unaddressed lead-maintainer comments.
- No orphaned superseded PRs or fixed issues after a sweep.
- No "ask the author to rewrite" when supersede criteria match — salvage it.

---

<!-- skill 14 of 24: pr update · https://innernet.live/skills/outthislife-pr-update -->

---
name: outthislife-pr-update
title: pr update
kind: skill
description: >
  Open a PR/MR if missing, or refresh an existing one's title and description so
  they match the current diff. Preserves any media already in the body. Use when
  the user says /pr-update, open a PR, update the PR, refresh the PR
  title/description, or wants the PR opener/manager flow.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/pr-update
brought_by: kt
license: MIT
---

# PR Update (open or refresh)

One skill for **create** and **update**. Make the title + body match the branch
as it is now. Do not strip media from an existing description.

## Steps

1. `git status` / `git diff` / `git log` / `git diff <default>...HEAD` (and
   remote tracking) so you know the full change set — not just the latest
   commit.
2. Detect an existing PR/MR for this branch (`gh pr view` / `glab mr view`).
   - **None** → create (push upstream with `-u` if needed).
   - **Exists** → edit title + body in place. Do not open a duplicate.
3. Draft a title and body from **all** commits/files in the PR, not one commit.
4. If updating: fetch the current body **first**. Preserve every media item
   exactly (see below). Then rewrite text so Summary / Test plan (or the
   repo's usual sections) stay accurate.
5. Apply with `gh pr create` / `gh pr edit` (or `glab` equivalents).
6. End with the PR/MR as a markdown link — the number **and** the full forge
   URL (`[#123](https://github.com/org/repo/pull/123)`, GitLab `!` equivalent).
   Never a bare `#123`. This is the one place the rule is written down; the
   other skills just follow it.

## Title + body

- Title: concise, why-focused; match repo PR style when obvious.
- Body: use the repo's template when one exists; otherwise:

```markdown
## Summary
<1-3 bullets of what changed and why>

## Test plan
- [ ] <concrete checks>
```

- Run the prose through `no-tropes` before publishing.
- Do not invent reviewers, labels, or milestone unless asked.

## Commits

Shape the branch's commits as part of opening/refreshing the PR.

- Check effective `user.name` and `user.email` before committing. GitHub login
  does not set commit attribution. If email is unset or Git infers a local-host
  address, stop before publishing and confirm an account-associated email.
  Never publish after ignoring Git's inferred-identity warning.

- One concern per commit. Default to a topical split (2–5 is typical) even if
  not asked; don't dump everything into one blob unless the user wants it.
- Match the repo's recent commit style (`git log --oneline -15`); subject = why.
  No "WIP" / "fix stuff".
- Rebuild with soft reset + path-staged commits (no `git rebase -i` — needs a
  TTY). Show the final `git log --oneline <default>..HEAD` before force-push.
  Two traps in that recipe:
  - Soft-reset to the branch's **real base SHA** (`git merge-base HEAD origin/<default>`),
    never to `origin/<default>` itself — it moves mid-task and will stage other
    people's commits as yours.
  - `git reset <base> -- <path>` leaves that path **unstaged**, so the next
    `git commit` silently captures its pre-edit version. Verify the content
    landed (`git show <sha>:<path> | grep <new symbol>`) before force-push.
- Keep authorship when reshaping others' work (`Co-authored-by` / cherry-pick),
  especially during `pr-triage` salvage.
- Don't mix pure formatting with logic, commit secrets/`.env`, or rewrite
  commits already on the default branch without asking.

## Preserve media (hard rule)

When a PR/MR already has a body, **never delete media**.

Treat as media (keep verbatim, same URLs/markup/order when possible):

- Markdown images / links to images or video (`![](...)`, `[...](...)` to
  media)
- HTML `<img>`, `<video>`, `<source>`, `<br>` used between media blocks
- GitHub/GitLab upload / user-attachments / moved-image URLs
- Image/video-only paragraphs or HTML comments wrapping media

Update flow:

1. Read the existing body. Extract JSON descriptions to plain Markdown with `jq -r '.description'` before using line-oriented file tools; one long escaped JSON string can be truncated even when the overall file fits. Reject truncated content rather than rebuilding a partial description.
2. Extract and keep the media blocks.
3. Rewrite textual sections so they match the current diff.
4. Re-attach the preserved media (same block(s), typically at the end unless
   they were interleaved on purpose — then keep interleaving).
5. Before submit, diff old body vs new: every media URL/markup from the old
   body must still be present.

If a refresh would drop media, stop and keep the old body (or only edit the
title) rather than publishing a media-stripped description.

## Scope

- **In:** open PR/MR, push if needed for create, shape commits, retitle, rewrite
  description, preserve media, print URL.
- **Out:** rebase, CI, and review threads (`pr-ready`), triage/salvage
  (`pr-triage`), merging.

## Forge cheatsheet

```bash
# GitHub — read
gh pr view --json url,title,body,baseRefName,headRefName

# GitHub — create
gh pr create --title "…" --body "$(cat <<'EOF'
…
EOF
)"

# GitHub — update (body from file avoids shell-eating newlines/media)
gh pr view --json body -q .body > /tmp/pr-body.md
# …edit /tmp/pr-body.md carefully…
gh pr edit --title "…" --body-file /tmp/pr-body.md

# GitLab
glab mr view
glab mr create
glab mr update <N> --title "…" --description-file /tmp/pr-body.md
```

---

<!-- skill 15 of 24: research · https://innernet.live/skills/outthislife-research -->

---
name: outthislife-research
title: research
kind: skill
description: >
  Look it up before answering or building — this project's documents of record
  first, then external prior art. Use when the user says research, look it up,
  sleuth GitHub, "what do other people do", "is that a thing", "are you sure",
  or asks for something that has obviously been solved before.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/research
brought_by: kt
license: MIT
---

# Research

Two halves, in this order: the **documents of record** for this project, then
**prior art** outside it. Answering from memory and calling it research is the
thing this skill is here to stop.

Match the shape of the ask:

- **A question** ("is this possible", "are we doing this right", "don't touch
  code"): look it up, report, stop. No edits until told to go (→ `audit-only`).
- **Part of the work** ("research and fix", "sleuth GitHub and iterate until
  it's right"): research inside the loop. Look, apply, re-check, and say what
  each pass was based on — don't halt the loop to file a report.

## Pick a depth and say it

| Depth | For | Shape |
|---|---|---|
| quick | one fact, one API, one flag | a source or two, answer in a paragraph |
| medium | "how do people do this", choosing an approach | 3-6 sources, compare, recommend |
| very thorough | architecture, redesign, "this has to be solved somewhere" | survey the field, name the canon, ROI-ordered options |

Fan out with parallel subagents for breadth. Give each one a scope, a
`Thoroughness:` level, `Do not edit files.`, and a return contract: exact paths
with line numbers and short quotes for code, or URL, technique, license, and
applicability for outside repos.

## Documents of record first

Exhaust what the project already states before searching the web.

- Tickets and specs: the tracker issue, the PRD or spec, QA feedback, the Slack
  or Discord thread that started it — whatever this project treats as the
  record.
- The repo's own planning docs: `plans/`, `docs/`, ADRs, `AGENTS.md`,
  `CONTEXT.md`, README.
- Figma dev mode when the question is visual. The design is the source of truth
  (→ `ui-system`).
- The repo itself: `git log -S<symbol>` and `git log -p` for why the code got
  this way, and the vendored source in `node_modules` or site-packages instead
  of a remembered API surface.

When two documents disagree, say so instead of silently picking one. "Double
check against X, Y, Z" means re-read each one and answer per document, not
re-skim your own diff.

## Then prior art

Someone has almost certainly solved this. Go find them and take it.

- GitHub: `gh search repos`, `gh search code`, `gh api`. Read the real source,
  not the README. Note the license before recommending a lift.
- arXiv and papers for anything on agents, generation, simulation, scheduling,
  or scoring.
- Vendor docs and changelogs for API truth. Tutorials, blogs, Reddit, HN, and
  YouTube for what people actually hit in practice.

Report what is reusable, which pattern to copy, and what to leave behind.

## Grade the evidence

Rank the sources and mark which tier a claim sits in:

1. Vendor-documented, or the shipping source code. Strongest.
2. Maintainer statements, papers, primary repos.
3. Blogs, tutorials, forum posts, model memory. Weakest, flag them as such.

Every non-obvious claim carries a URL. With no URL, write "unverified" rather
than stating it flat.

## Don't

- Answer from memory and call it research. "Are you sure?" and "did you
  research?" mean you already got caught doing it.
- Call something impossible or unsupported without opening the docs or source.
- Stop at the first hit when the question was "how do people do this".
- Hand back a link dump. The deliverable is the recommendation, with the
  sources under it.
- Drop the research on the floor. When it drives a change, the PR description
  carries what was found and why (→ `pr-update`). When it's a big survey with
  no PR yet, write it into the repo's planning docs so it outlives the chat.

---

<!-- skill 16 of 24: runtime debug · https://innernet.live/skills/outthislife-runtime-debug -->

---
name: outthislife-runtime-debug
title: runtime debug
kind: skill
description: >
  Debug broken runtime/environments by checking logs and observability first,
  then code. Use when a URL, deploy, or ephemeral/CI environment fails at
  runtime rather than a local code bug.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/runtime-debug
brought_by: kt
license: MIT
---

# Runtime Debug

When something breaks at runtime (a URL 500s, a deploy is down, an ephemeral env
misbehaves), look at what actually happened before editing code.

## Steps

1. Reproduce and capture the real failure (status, error, request id, time).
2. Check observability first: logs, traces, metrics. Use an observability MCP
   (e.g. Datadog) if one is available/connected; otherwise fall back to the
   platform's log stream (CI job, container, Jenkins, cloud logs).
3. Locate the failing service/line from the evidence, not a guess.
4. Fix the real cause. Don't add logging-only "fixes" and call it done.
5. For intentional lab/ephemeral config (test secrets, fail-open), don't raise
   false alarms — leave required env in place.

## MR local preview

- For a requested local link, start the actual worktree app against existing Docker datastores; do not substitute a screenshot gallery. Check Docker Desktop and existing containers first, then use the worktree's Node 18.20.4 and explicit `NODE_ENV=local` / `NODE_PATH`. Verify `/200` and the requested page separately: a healthy server can still return 404 when Mongo has no CMS content.
- Inspect local CMS collection counts before attempting a restore. An empty Atlas Local container needs sanitized seed data; inspect cached archives and download size before starting a large refresh, especially on constrained connections. Never reset or reseed existing data just to start the server.

## Research preview latency

- Separate middleware TTFB from image/render timing before changing public pages. In the portal app, a local preview with unconfigured Upstash Redis can spend seconds retrying rate-limit calls even when the page itself is static.
- Reuse the existing Docker Redis and serverless-redis-http services and their mapped ports. Verify the HTTP pipeline and then the page's rate-limit headers after reconnecting the preview; never bypass production limiting to make a local timing look fast.
- Use headed Chrome when Vercel's preview checkpoint rejects curl/headless requests. Attribute third-party preview-toolbar exceptions by their stack URL rather than hiding all page errors. Compare an exact artwork element crop for reduced-motion proof; full screenshots include animated preview chrome.

## pnpm deployment installs

- Treat a failed frozen install as a deployment blocker even if invoking Next directly builds successfully. For `ERR_PNPM_IGNORED_BUILDS`, inspect the exact dependency lifecycle scripts and the tracked `pnpm-workspace.yaml`; pnpm may generate ignored placeholder decisions locally. Commit explicit reviewed version-scoped allow/deny decisions, keep strict checking enabled for unknown versions, and verify the normal frozen-install/build path before redeploying.

## Don't

- Rewrite code speculatively before reading logs.
- Report fixed without re-checking the runtime.

---

<!-- skill 17 of 24: shop board · https://innernet.live/skills/outthislife-shop-board -->

---
name: outthislife-shop-board
title: shop board
kind: skill
description: >
  Turn any online shop into a calm, visual board in the browser: the whole
  catalog as a photo grid, filtered to your sizes, grouped by intent instead of
  product type, click to pick, then add the picks to the store's cart. Also a
  click-to-remove review view for a cart that's already full. Takes loose args
  like "/shop-board dollskill xs, xxs, cutie stuff only". Use for "make a board
  for <shop>", "go through <store> for me", "find me stuff on <store>", "review
  my cart", or any browse-a-whole-store / trim-a-cart ask.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/shop-board
brought_by: kt
license: MIT
---

# Shop board

A shop's own pages are built to sell one product at a time. The board puts
the whole catalog on one screen: photos, in stock in the right size, sorted
into groups that match what the person is shopping for. Click to pick, and
the picks go to the cart.

It runs in the person's own browser session through a browser-automation tool
that can execute JavaScript in a page (Claude in Chrome, Playwright and
similar). Scripts are pasted whole into the page. Nothing is installed, and
nothing is bought: the deliverable is a cart.

## Read the request

`references/vibes.md` maps loose words to settings: the store, sizes
(optional), vibe groups, "… only", promo codes. No sizes means every size. No
vibe words means the general groups (Everyday, Going out, Lounge & sleep,
Intimates, Statement, Active & swim, Outerwear, Shoes, Bags & accessories).

## Flow

1. **Open the store in a new tab** and work out the platform. If `window.Shopify`
   exists or `/products.json` returns JSON, it's Shopify. If `form.cart`,
   `woocommerce` classes or `/?wc-ajax=` exist, it's WooCommerce. Anything else
   is a custom site.
2. **Check the size labels before filtering.** Count the size option's values on
   the first page of products. Stores spell sizes out ("X-SMALL",
   "XX-SMALL", "X-SMALL/SMALL"). `board.js` handles the common aliases, but a
   store with its own scheme needs `sizes` written in its words.
3. **Look for house brands.** A store's own lines show up as collections, and
   their keywords won't catch them. Pass them as `brands`. They're crawled
   whole and get a switch at the top.
4. **Open the board.** Set `window.__board`, then paste `scripts/board.js`.
   - **Shopify:** it crawls `products.json`. That feed stops at page 100 (25k
     products), so `/collections/all` is crawled too and merged by id. Progress is
     saved per store and per size set, so a closed tab resumes and a finished
     crawl reopens instantly. **Add to cart** goes through `/cart/add.js` in the
     smallest wanted size. Shoes are flagged for the person to choose a size.
   - **Anything else:** run `scripts/crawl-listing.js` first. Its defaults are
     WooCommerce. For a custom site, inspect one product card and set the
     selectors. Then set `window.__board.items = window.__items`. The board opens
     as a **shortlist**: picks are saved, and the person adds to the bag from each
     product's View link. Say so when the listing shows no stock or sizes.
   - **WooCommerce add-to-cart:** `scripts/woo-add.js` with the picked URLs.
5. **Review a full cart.** `scripts/cart-review.js` on any store page. Click to
   mark for removal, **Undo** reverses a click, **Recent** shows what changed,
   and **Apply** removes the marked items.
6. **Report:** what's on the board (count, groups), what was added or removed,
   what got skipped and why. Say that nothing was checked out and which tab it's in.

Long jobs (crawls, multi-item adds) run in the background and write progress
to a `window.__…` object. Poll it with short waits. Page evaluation times out
at around 45s, so never `await` a whole crawl in one call.

## Hard-won rules

- **Keep it fast on big stores.** Request CDN thumbnails (Shopify resizes with
  `?width=400`; originals run 1–4k px and stutter scrolling), let `content-visibility`
  skip offscreen cards, avoid live `backdrop-filter` over the grid, and update one
  card on a pick instead of re-rendering hundreds.
- **Nothing vanishes under the cursor.** A click toggles one thing. A card stays
  where it is until the tab or group changes. Bulk actions (Keep all / Remove
  all) come with Undo.
- **Marks are the source of truth.** Clear a mark only after the cart confirms
  the item is gone, so an interrupted Apply loses nothing.
- **WooCommerce adds are sequential**, about 800ms apart. Parallel or back-to-back
  POSTs race the session and silently drop about every other item. Always diff the
  cart afterward.
- **WooCommerce removes are batched through the cart form.** Every write re-totals
  the whole cart: one removal at a time takes seconds per item on a big cart, and
  one giant request 502s at the gateway. Zero out about 6 lines per request and
  halve the chunk on any non-200.
- **`wc-ajax=remove_from_cart` returns 200 even when it fails.** Only a response
  with `fragments` actually removed the item.
- **Read the cart with a cache-busting query** (`/cart/?r=<now>`). Chrome can serve
  a stale cart page, and a retry based on it doubles the item.
- **Variant labels may only exist as codes** (`lb-sn802-s301` for "Black").
  Match variants by the code that was picked, not by the label.
- **Guest carts expire** (WooCommerce keeps a guest session for days, not weeks).
  When someone settles on a cart, save it as `[name, size]` pairs so it can
  be rebuilt, and suggest they log in. They log in themselves; never enter
  credentials.
- **The overlay goes after `<body>`** (`documentElement.appendChild`). That keeps
  same-z-index cookie banners from sitting on top of it. Decline non-essential
  cookies if a banner blocks the view.
- **Close tabs you opened; never repurpose the person's own tabs.** Navigating a tab
  wipes `window` state, which is why crawls persist to localStorage.

## Look

Both views use shadcn's zinc tokens at a compact density and follow the system
light/dark setting. There's no theme switch and no sticky header. The views
live in a shadow root, so the store's CSS can't leak in.

---

<!-- skill 18 of 24: stacked pr · https://innernet.live/skills/outthislife-stacked-pr -->

---
name: outthislife-stacked-pr
title: stacked pr
kind: skill
description: >
  Handle dependent/stacked PRs and same-code-on-multiple-bases correctly. Use
  for a PR stacked on another, or when the same change must land on the default
  branch plus a release/production branch.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/stacked-pr
brought_by: kt
license: MIT
---

# Stacked & Multi-base PRs

## Stacked (dependent) PRs

A child PR builds on a parent PR's branch. Update the stack bottom-up:

1. Update the parent branch/PR first.
2. Rebase the child onto the updated parent — not onto the default branch, and
   never "merge main into the leaf" as the only step.
3. Push each level; keep each PR's base pointing at the one below it.

## Multi-base (release + default)

Some orgs require the same change on the default branch AND a release/production
branch:

1. Confirm the required target branches from the repo's rules.
2. Land the change once, then cherry-pick/port the identical code to the other
   base as a second PR.
3. Keep the two PRs' code identical; note the sibling in each description.
4. Treat the duplicate as a fresh review target. Request the original developer
   reviewer/team and use the repo's pending human/code-review labels. Do not
   copy QA approval or claim a developer checkmark from the sibling; the
   release PR needs its own explicit developer approval. Verify assignees,
   review requests, and labels after updating them.

## Estimate an integration before changing branches

- Fetch the real upstream default branch and every dependency head; compare ancestry so already-included fixes are not imported twice.
- Use `git merge-tree --write-tree --name-only <base> <head>` to estimate conflicts without modifying a checkout or index. Report conflict counts as textual integration scope, not proof that auto-merged code is correct.
- Preserve current upstream security and profile-routing behavior when reconciling older UI work; do not resolve whole files with ours/theirs just to eliminate markers.
- Distinguish updating the local clone from publishing a fork-default update. A PR in a separate repository still compares against that repository's base; local upstream freshness does not update it.

## MR additive-repair safeguards

- Invoke the pinned Node executable directly for worktree tests and set `NODE_PATH` to that worktree's `mr_modules` on the command. Shared dependency symlinks and concurrent shells can otherwise resolve another checkout; verify `process.execPath` and `require.resolve('MRUtils')` first.
- Check the merge commit's effective diff against its own base, not only HEAD. Lint-staged sees upstream files staged by a merge and can rewrite unrelated code; run targeted lint/tests and use a per-invocation hook override for the additive merge commit rather than changing repository hook configuration.
- Reconcile CMS migration composition with already-merged migrations in both execution orders. Preserve foreign-edit/staged-batch refusal and verify published records before retiring an old route; saved redirect flags alone do not establish that a redirect reached production.

## Don't

- Collapse a stack by merging the default branch into the child.
- Let the two base PRs drift apart.
- Finish without listing every PR/MR in the stack as a link.

---

<!-- skill 19 of 24: ticket ship · https://innernet.live/skills/outthislife-ticket-ship -->

---
name: outthislife-ticket-ship
title: ticket ship
kind: skill
description: >
  Take a tracker ticket through to shipped: find or start the PR, drive it to
  mergeable, update the ticket state, draft the stakeholder message. Use for
  Jira/Linear (or acli) tickets assigned to you.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/ticket-ship
brought_by: kt
license: MIT
---

# Ticket → Ship

The ticket-shaped parts of shipping. The PR mechanics live in their own skills —
this is what a tracker adds on top.

## Steps

1. Read the ticket and its latest comments, then list existing PRs before starting (`acli`, Jira, Linear, `gh`). With `acli`, request `--fields summary,description,status,comment,issuelinks --json`: the default view omits comments, which can contain reopened QA scope. Read the existing PR diff as well as its body; follow-up commits can invalidate the body's implementation claims.
2. Confirm the correct base branch(es) before starting — some orgs need a
   release branch plus the default (`stacked-pr`). Never assume; verify the
   org's rule.
3. Find the existing PR or start one (`work` → `pr-update`), then drive it
   mergeable (`pr-ready`) and polish before handoff (`clean`).
4. Read the repository's ticket/label guidance before selecting a handoff state; don't substitute generic workflow names. In MR, use `.claude/skills/create-pr/SKILL.md` and `teams.md` for label rules. For an existing DOTCOMPB PR returned by QA and then fixed, the user's retest handoff is **In Test** with **Pending QA Review**, not a reset to In Code Review. Preserve the ticket-driven Needs UI Review label. Report CI/deployment blockers separately; In Test does not mean merge-ready. Link the PR and add a factual retest update when the user requests the handoff.
5. Draft the stakeholder update — Slack or a ticket comment, short, `no-tropes`.
   Don't send it unless asked.

## Don't

- Assume the base branch.
- Mark the ticket done while CI is red or review threads are open.
- Let the ticket and the PR tell different stories about the state of the work.

---

<!-- skill 20 of 24: triage · https://innernet.live/skills/outthislife-triage -->

---
name: outthislife-triage
title: triage
kind: skill
description: >
  Use when triaging issues as a maintainer.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/triage
brought_by: kt
license: MIT
---

# Issue Triage

Investigate issues against current upstream, prove the disposition, and own the fix. For a real bug, consolidate competing PRs into **one maintainer-owned replacement per root-cause cluster**, preserving useful work and contributor credit. Do not bounce implementation back to reporters or contributors.

This skill is agent- and repository-independent. Use the host agent's available shell, file, search, and delegation capabilities; no particular tool API or runtime is required. Read companion skills by name using the host's skill loader or their `SKILL.md` files. Use `gh` for GitHub, `glab` for GitLab, or the forge's authenticated API. Repository instructions determine test commands and platform-specific validation.

## When to use

- `/triage <issue URLs, numbers, range, or query>`; a pasted report/thread is valid intake. Naming the skill in ordinary prose works too.
- Backlog sweeps, duplicate/resolution investigations, and issue-to-fix maintainer passes.
- PR-only review belongs to `pr-triage`; an already-owned PR's CI/reviews belong to `pr-ready`.

## Authority and scope

- **Bare `/triage` is investigate + verdict first**, like `pr-triage`. No forge writes, implementation, commits, or pushes until authorized. Behavioral probes in disposable worktrees are allowed.
- **“Fix”, “ship”, “execute”, or “go” authorizes the agreed implementation/publishing scope.** Authorization for an entire triage-and-fix sweep carries through without asking per issue. A fix-only request does not authorize unrelated closures. “Audit”, “recommendations only”, and explicit restrictions override execution defaults.
- Establish repository, selected issues, authority, and reviewed base once. Infer the current repo when unambiguous; ask only for genuinely missing scope. An unspecified `/triage` does not authorize sweeping every repo.
- **An authorized fix-and-ship run includes rebase auto-merge for eligible low-risk PRs**, enabled when they open under the gate below; do not ask again per PR. Risky or uncertain changes require separate merge authorization. Explicit no-merge/review-only instructions override this default. UI changes still require visual approval before checks/commits/publishing under `ui-only`.
- No auto-closure for age, popularity, speculative product taste, or failed local setup. Apply the repository's contribution/closure policy. Security reports follow private disclosure policy, not public reproduction comments.

## 1. Establish the evidence base

1. Resolve canonical upstream and forge; a fork remote is not automatically upstream. Read repository/area instructions, contribution policy, and relevant maintainer decisions. Check authentication once; never expose credentials.
2. Discover the actual default branch (usually `main`), fetch it, and pin the reviewed SHA. Inspect git status/worktrees; leave the primary checkout on its default branch and untouched. Follow `work` for review/fix worktrees.
3. Enumerate exactly the requested issues, retaining explicit IDs even if a search omits them. Save full repository-qualified URLs, selection predicate, snapshot time, and base SHA. For batches, **read [references/batches.md](references/batches.md)** before starting.
4. Batch independent metadata/search/history reads. Share one immutable base and repository map; do not rediscover the repo per issue. When a local catalog of the repository exists (for example `fascia`), take inventory, filtering, grouping and reading from it instead of the forge API; re-read live forge state only for items you will act on.

**Gate:** exact intake persisted; upstream/SHA known; write authority explicit.

## 2. Read, search, and cluster before fixing

1. Read the entire issue body, paginated comments/timeline, reopens, and later maintainer/reporter replies. Split compound reports into acceptance requirements, platforms, versions, configurations, and lifecycle variants. Titles/labels route investigation, not verdicts.
2. Search **open and closed issues; open, closed, and merged PRs** using exact errors, symbols, behavior, and synonyms. Inspect references in body/comments and timeline events; search git history too. Key cross-repository objects by full URL, never bare number.
3. Compare plausible duplicates by triggers, root cause, and acceptance coverage. Choose a substantive canonical tracker with active ownership, not blindly the oldest. Preserve unique evidence there when authorized. **Duplicate can still mean a real, unresolved bug.**
4. Inspect candidate PRs: full relevant diffs/commits, base/head SHAs, authors, tests, reviews, lead-maintainer feedback, checks, and landing state. A proposed patch is evidence to assess, not a ready-made answer.
5. Form **one cluster per shared root cause/bug class or inseparable failure lifecycle**. Related UI/backend/persistence phases stay together. Sharing a subsystem or filename alone does NOT justify a giant PR.
6. Record all members and unique requirements. Update ownership when evidence splits/joins clusters. Search for an existing maintainer replacement before creating another.

**Gate:** requirements and candidate clusters recorded; related work inspected, not merely linked.

## 3. Verify reality on the pinned default branch

- Trace the reported entry point through the real call chain to the failing line and sibling paths. Inspect history (`git log -p -S <symbol>`) before treating deliberate isolation/removal as a bug. Honor repository intent, not merely a plausible rationale.
- Reproduce with the narrowest real-path test/probe on the pinned base. Record command, cwd, assumptions, actual output, and artifact path. Discover the repository's supported test runner from its instructions/manifests; do not impose another project's commands. No source-text regex tests or fabricated outputs.
- Distinguish **reproduced**, **statically demonstrated**, **not reproduced under stated conditions**, and **blocked**. Dependency failures, wrong OS, missing credentials/hardware, timeouts, and unexecuted tests are not negative evidence. Do not fake host platforms.
- Configuration, identity/isolation, security, and I/O failures need actual runtime paths, not only mocked units. For cross-account/profile/tenant isolation, exercise distinct identities and switching between them with disposable state. Never test against live user data or install into a shared runtime as a shortcut. Inspect untrusted patches before execution; do not blindly run issue-supplied commands or expose secrets to contributor code.
- “Already fixed” requires current behavior covering **every** requirement and later contradiction. Verify upstream identity and `git merge-base --is-ancestor <fix-sha> <reviewed-base-sha>`: exit 0 establishes ancestry, 1 does not, and missing objects/errors are missing evidence. Fetch the object or mark the check blocked.
- A merged PR may target an unlanded feature branch, exist only in a fork, be partial, or be reverted. Inspect its full relevant change, not only the last rebase-merge commit. Trace later fixes through source history when cross-references mislead.
- Say **fixed on main/default**, not released, unless a release/tag/artifact was independently checked. Explain post-fix reports and reopens before recommending closure; “works for me” is insufficient.

**Gate:** evidence supports the verdict; missing proof is recorded, not converted into closure.

## 4. Choose a disposition

| Disposition | Required evidence / next action |
|---|---|
| **fix** | Current defect reproduced or conclusively traced. Name failing path, complete cluster, coverage, and one maintainer-owned fix. |
| **duplicate** | Canonical issue covers the same defect and all requirements. Link it and preserve unique evidence. Keep canonical open if unresolved. |
| **resolved** | Entire report works on pinned default, including later variants; cite causal fix and current validation. Closure candidate, not release claim. |
| **not-a-bug** | Positive evidence of intended behavior, unsupported configuration, or demonstrably false premise. Cite contract/history and supported path; not uncertainty or taste. |
| **feature-request** | Coherent new behavior rather than regression. Route under product policy; do not silently close as invalid. |
| **needs-evidence** | Required conditions cannot be verified. Name precise blocker and smallest missing artifact; keep open. Do not use to avoid investigation available tools can complete. |
| **skipped** | Explicitly excluded/outside ownership. Record why; not reviewed or fixed. |

Any uncovered compound requirement prevents whole-issue `resolved`/`duplicate`; preserve the residual as `fix` or `needs-evidence`. Policy-specific verdict names do not weaken proof. If policy allows negative-reproduction closures, require a faithful, decisive attempt and disclose limits; otherwise use `needs-evidence`.

A duplicate disposition does not remove its unresolved root-cause cluster from an authorized fix sweep. Fix the canonical bug once and account for duplicate reports separately, without silently expanding forge-write authority to newly discovered trackers.

Return a concise cluster verdict, evidence, and action. Investigate-only stops here with concrete next steps/draft comments. Existing batch authorization means continue, not another permission loop.

## 5. Fix once; supersede the related PRs together

1. Follow `work`: one dedicated worktree/branch per causal cluster from fresh upstream. Reconcile intervening main changes before editing. Never edit the primary checkout.
2. **Always consolidate relevant proposed fixes into one maintainer-owned merge target.** Do not approve N competing patches or ask external authors to rebuild them. Reuse an existing maintainer replacement owning the cluster. Without source PRs, make a normal issue-fix PR; never invent superseded sources.
3. Build only residual gaps after landed behavior. Cherry-pick useful commits where possible to preserve authorship; selectively adapt without importing unrelated changes. Keep a manifest of source URLs, heads, authors, reused code/tests/diagnosis, and excluded scope.
4. Credit every contributor whose work/diagnosis informed the replacement in its body. Preserve author metadata; add `Co-authored-by` for incorporated contributions using verified identities, never invented emails. Acknowledgment does not mean authorship of discarded work.
5. Fix the whole bug class and required sibling paths, not just the named example. Prove regression fails on base and passes with fix; use a small number of behavioral/invariant tests covering the acceptance matrix and actual integration path. A source patch's passing test is not complete coverage.
6. **Screen for side effects before publishing.** CI and the PR's tests run on a fresh install with the test fixtures; the users a change breaks usually aren't in that setup. For whatever the diff changes, answer with evidence:
   - **Existing state:** does an upgraded install have data keyed on it (storage keys, origins, ports, ids, config values)? Test old state, then the new build, then a relaunch, including users who already ran a broken build.
   - **Version skew:** does it cross a boundary whose sides update independently (client/server, app/backend, plugin/host)? A one-sided fix strands whoever updates the other side first.
   - **Reserved values and invariants:** a value every stock config ships means "no choice made". A diff that rewrites an existing assertion to its opposite is a decision, not proof; find why it existed first.
   - **Other callers and flows:** grep every caller; probe restore, other sessions/tabs, background and unattended paths at the integration seam.
   - **Open findings:** a reviewer's concrete repro stays open until it gets a reply citing the fix. A later push doesn't answer it.
   Write the answers into the PR body. Any unanswered question keeps auto-merge off.
7. Respect unresolved lead-maintainer decisions. If a source PR has independent work outside this fix, preserve/split its ownership; never close it wholesale while discarding that work. Surface genuine scope conflicts before substantial implementation.
8. Respect `ui-only` approval gates and `ui-system` primitives. After approval, run relevant checks, record actual results, and inspect the final diff for unrelated deletions/reverts.

**Gate:** complete cluster coverage, side effects answered, credit, real verification; no hidden unowned residual.

## 6. Publish with CPR, then reconcile

1. **Read and execute `cpr` for every PR/MR creation or refresh.** Actually follow its `clean` → `pr-update` sequence; do not substitute an ad hoc PR-opening command. Resolve ambiguous skill names by intended path. Missing required companion skills are an installation blocker, not permission to skip them.
2. Body: root cause, behavior, acceptance coverage, real checks/limitations, every source PR's full URL under **Supersedes**, and credit. `Fixes`/`Closes` only for fully addressed issues. Partial/adjacent reports use neutral full links with NO closing keyword, even in negated prose.
3. Read back replacement URL, head, base, body, and issue links. **For eligible low-risk changes, enable rebase auto-merge immediately on opening**, before waiting for CI, following the gate below. Continue `pr-ready` through fresh green CI and resolved actionable review threads; queued auto-merge is not done. If already merged, verify final checks and landing, then reconcile rather than updating a closed PR. Report actual blockers.
4. Only after replacement readiness, within authorized scope, comment on every fully superseded source with its replacement URL and close it. Do not delete contributor branches. Read back comment and state. Already-merged/closed sources get credit, not redundant closures.
5. **Unresolved issues stay open until the fix lands on canonical default.** A new/green PR is not resolution. Closing keywords stage closure; do not manually close as fixed because the replacement exists. After an authorized merge, verify ancestry, behavior, and issue state; reconcile stragglers.
6. Separately authorized duplicate/resolved/invalid closures need short evidence-based comments, canonical/fix full URLs, and correct repo/forge reasons. Preserve unresolved canonical issues. Use existing labels; no taxonomy creation or progress spam.
   - A close whose comment points at another issue ("Tracked in #N", "same defect as #N") is a **duplicate**, never `completed`: GitHub `gh issue close N --reason duplicate --duplicate-of M` (or GraphQL `closeIssue(stateReason: DUPLICATE, duplicateIssueId:)`, which also works on an already-closed issue).
   - Only close `completed` when the reporter's explicit expected behaviour is delivered, not just the headline symptom. A residual the reporter asked for keeps the issue open with a status comment; never relabel it "by design" to close.
   - **Comment bodies go through a file, never an inline shell string**: `gh issue comment N --body-file f.md`, `gh api ... -F body=@f.md`. Backticks inside a double-quoted shell argument run as command substitution and silently strip every sha and identifier from the posted text. Read the posted body back and compare it to the intended text.
7. Re-read every exact external target after writing. On ambiguous timeout, read before retrying to avoid duplicate comments/PRs. Revalidate changed comments, states, base/head SHAs, and ownership immediately before destructive actions.

**Gate:** one ready target per cluster, source dispositions verified, no premature issue closures, all selected items accounted for.

### Low-risk rebase auto-merge

- Assess the **whole proposed diff and its affected call paths**, not the issue title, label, file extension, or line count. Eligible means investigation and focused validation reveal **no obvious way to break important UI/UX, feature behavior, or core functionality**. Record a short rationale and the reviewed head SHA in the PR body/evidence before enabling it. Missing evidence is uncertainty, not low risk.
- Consider indirect effects on shared components, public contracts, authentication/security, user data, migrations, dependencies, configuration, builds, and deployment. A credible regression path in any of these, unverified acceptance cases, unresolved review objections, an unanswered side-effect question (step 5.6), or missing UI approval keeps auto-merge off. Small production changes are not automatically safe; documentation/test-only changes still need their operational effects checked.
- Complete local validation and the risk assessment before `cpr` opens the PR. Then, for GitHub, run `gh pr merge <PR-URL> --auto --rebase --match-head-commit <reviewed-head-SHA>` as part of the opening sequence. **Do not wait for CI to finish before enabling it.** The command may merge immediately if requirements are already satisfied, so never queue it while your own validation or review is unfinished.
- Respect existing branch protections, required checks/reviews, and merge queues. Never use `--admin`, bypass checks, change repository settings, or silently substitute squash/merge commits. If auto-merge or rebase is disabled, permissions are missing, or a queue cannot honor rebase, leave the PR open and report the exact blocker. On other forges, use the verified equivalent automatic rebase/fast-forward workflow under existing project settings; otherwise report it unavailable.
- Read back the exact PR/head and its auto-merge request: GitHub's `autoMergeRequest.mergeMethod` must be `REBASE`, or the PR must already be verifiably merged. A successful command alone is not proof. Record enabled, unavailable, or merged distinctly, and continue watching checks/reviews through `pr-ready`.
- Reassess eligibility on every revision. Disable pending auto-merge **before** pushing changes that invalidate the reviewed risk assessment; on GitHub use `gh pr merge <PR-URL> --disable-auto` and verify it is off. Newly discovered material risk or review objections also revoke eligibility. Re-enable only after fresh validation at the new head. If already merged, report the issue and follow the repository's remediation process rather than claiming the queued merge was cancelled.

## Batch speed and final verification

Read `references/batches.md` for multi-issue work. Inventory once; cluster before fan-out; parallelize independent read-only investigations with disjoint ownership when supported, otherwise process the same clusters sequentially. Serialize forge writes through the coordinating agent. Persist each small batch and resume from verified receipts. Optimize metadata reuse, not closure count.

- Every selected issue has a supported disposition or explicit pending/blocked/skipped state; reconcile exact URL sets, not only counts.
- Report clusters: **linked issues → verdict → decisive evidence → action/linked replacement**. Keep detailed per-issue evidence in an artifact for large sweeps.
- Distinguish **triaged**, **PR ready**, and **fixed on default**. State remaining blockers/still-open issues.
- Include reviewed base SHA and artifact path. Link every forge number with its full URL. Shipped PR work ends with canonical replacement PR/MR link(s), never closed source candidates.

---

<!-- skill 21 of 24: ui only · https://innernet.live/skills/outthislife-ui-only -->

---
name: outthislife-ui-only
title: ui only
kind: skill
description: >
  While iterating on UI, do not waste time on tsc, lint, typecheck, format, full
  test suites, commit, or push until the user likes how it looks and works. Use
  for any UI/UX work, layout, redesign, Figma implementation, visual polish,
  "make it look right", or when they want to see the UI before cleanup.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/ui-only
brought_by: kt
license: MIT
---

# UI Only

When you're changing how something looks or interacts: get the UI right first.
Don't burn turns on tsc, lint, or commit until they say it's good.

## Don't run yet

Until they like the UI (or explicitly say to clean/commit):

- `tsc` / typecheck / `npm run build` as a finish step
- eslint / prettier / biome
- full test suites just to greenlight a commit
- `git commit` / `git push` / opening the PR as done

Dev server, screenshots, and targeted runs needed to see or use the UI are fine.
Don't start a dev server the user already has running — assume it's up unless
told otherwise. Keep debug logging in place while something's still broken;
remove it only once it works.

## Do this instead

1. Change the UI.
2. Show it (or tell them how to look).
3. Take feedback and iterate.
4. When they say it's good / lgtm / clean it / commit it, then run checks,
   use `clean`, commit, and do whatever else the repo needs.

If you're not sure whether to keep iterating, ask.

## Scope

Any UI surface (web, desktop, TUI). Skip for backend-only work.
For primitives and tokens, also use `ui-system`.

---

<!-- skill 22 of 24: ui system · https://innernet.live/skills/outthislife-ui-system -->

---
name: outthislife-ui-system
title: ui system
kind: skill
description: >
  Reuse existing UI primitives, CSS vars, and DESIGN.md patterns instead of
  inventing new buttons, colors, borders, shadows, or helpers — including when
  implementing a Figma file, mock, or screenshot. Use for Desktop/web/TUI UI
  work, redesigns, or when the user mentions shared primitives, tw4, Figma, or
  UI patterns.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/ui-system
brought_by: kt
license: MIT
---

# UI System

Reuse what the app already has. Don't invent a parallel UI kit.

## Do

1. Read `DESIGN.md` / area docs for the surface you're in.
2. Find the existing component/helper (button, input, dialog, progress,
   relative-time, dropdown, back row, …). Copy how Settings / Projects / etc.
   already do it.
3. Prefer a **variant** on an existing primitive over a new component.
   When asked to reuse an animated count, use the existing implementation in
   place (export a private component if needed); do not create or relocate it
   into a new primitive file as part of the visual iteration.
4. Colors/spacing/type from **existing CSS vars / tokens** (including the
   app's Tailwind v4 setup). No one-off hex/shadow stacks.
5. Match the app's look: if the app doesn't use borders/shadows/sparkles,
   neither does your feature.
6. Hover paints instantly; only the exit eases. Put the transition on the
   resting state and drop it while hovered (`transition-colors duration-100
   hover:transition-none`, or `transition: none` on `:hover`), including
   sibling-dimming groups. Only a named exception fades both ways (e.g. the
   catalog arc border). Audit every hover you add or touch; verify computed
   `transition-property` while hovered (`transition-none` leaves duration).

## Extending an existing interaction

- Preserve existing controls when adding stacking, queueing, or depth. Support inline approvals beneath their tool row and floating approvals as distinct placements of the same stack, not a replacement of one with the other; do not restyle Run/Reject without a request. Share the gesture controller, depth geometry, resistance, release thresholds, departure and promotion motion with toasts; changing placement or content must not fork the maths. Button and keyboard decisions must produce the same perceptible card-clearing motion as a gesture, while consumers retain exact-request and approval policy ownership. Inspect live prior art such as Sonner's stacked promotion and momentum dismissal before tuning; decorative back edges and a small fade alone do not create a physical clearing sensation. Bound the visual pile and verify it in the real thread as well as floating placements. For Cursor-reference work, follow its measured single-silhouette treatment rather than preserving an older two-edge mock. Keep the host stable while the live pending list grows and drains, retain the current entry on arrival, and animate the departing card inertly. Drive counts and rear-depth visibility from live pending entries, not a fixed demo total. Exercise real tool-row additions/completions during approval so the stack cannot migrate or remount underneath a different tool.

## Shared anchored composers

- Keep one provider and one persistent panel/input outside the page column; make static bars and navigation items supply presets, optional prefills and placement requests instead of mounting editors. Verify DOM identity across open/close, preset switches and client route navigation.
- Port the reference's actual menu source and measured geometry, not a sibling's approximation or a delegate's prose summary. Include surrounding state: the resting hero launcher must fold away while subnav opens, or its uncovered white strip reads as a broken oversized menu. Check both surfaces together, including hover intent, strip controls and artwork containment.
- Reused artwork can carry conflicting Tailwind individual transforms; inspect computed `translate` as well as `transform`. Prefer the reference's plain artwork markup inside its intended container rather than layering overrides over a differently positioned component.
- On the research homepage, use the reference's badge-left/hamburger-right mobile header and blue artwork-backed accordion menu, with no header CTA/search clutter. Reuse the shared mobile modal mechanics and composer preset data, not a second editor. Keep one route-aware mobile wing launcher for singleton search: bottom-right normally, in article header chrome where the corner would cover prose. For a requested desktop proximity dock, reuse that same launcher as a centered badge, reveal on bottom-viewport pointer proximity and keyboard focus, honor reduced motion, and hide it whenever the hero or a modal/composer owns the interaction. When handing off from the mobile modal to Cmd+K, release its focus trap and scroll lock without refocusing the old trigger.
- Treat an already-open composer's keyboard/nav activation as a destination-aware transfer, not a blind toggle. Measure the input's painted bounds before changing direction or placement, then translate the same node from those bounds without replaying entrance choreography; test mid-flight reversal and query retention. Cancel pending hover on keyboard activation and ignore stationary-pointer reentry caused by the panel moving underneath it until real pointer movement resumes.
- Keep fixed viewport points independent of presets, alongside element/parent, viewport-region and cursor placement. Distinguish following an anchor from freezing its opening position; verify fixed placement while the document scrolls.
- Express placement as target (element, parent, viewport or pointer), target anchor, panel origin, offset and width policy. Measure untransformed layout height during a scale entrance: transformed bounds make a bottom-anchored panel drift. Recompute on content resize, ancestor scroll and visualViewport changes.
- Apply hover transitions to `:not(:hover):not(:focus-visible)` so entering a link is immediate. Remove surface-specific transition overrides that re-enable enter animation; transition background and foreground together on exit to avoid partially inverted rows. Verify computed hover duration and colors during rapid row-to-row movement, not only the settled color.
- Keep the composer host transparent and input opaque so color never flashes through white chrome. For subnav, animate only x/y translation on placement changes and whole-surface scale on entry/exit, anchored center-top (center-bottom for bottom docking). Use each preset's natural height immediately: no height/width tween, clip reveal, row stagger or entrance replay on preset switches. Preserve the shared header's equal-width slots; draw hover underlines and active outlines without changing their geometry.
- Center keycap glyphs using an inner cap-trimmed label, not the font's line box and descender space. Use the reference's actual SVG paths for arrows and chevrons rather than Unicode glyphs; compare opacity as well as geometry when icons appear heavier.
- Keep the composer’s trailing action icons identical across static, navigation and keyboard launch modes. Retain the shortcut note except in static-open mode, and reuse Hermes Desktop’s native-font Kbd/KbdGroup styling as a generic web primitive instead of ad-hoc shortcut text.
- Preserve partial-label hierarchy from reference source: keep a canonical string for search and explicit inline segments for muted portions, including their whitespace. Render the same segments in nav and search, and retain their relative opacity when the row inverts on hover.
- Use distinct layouts for grouped nav presets and typed search when the reference does: compact search rows should ellipsize previews to one line and omit missing-description cells. Do not force article excerpts into nav-sized description columns.
- Let wheel scrolling override selection: only keyboard-driven selection may auto-scroll, and only within the results viewport. Bypass the page smooth-scroll driver for the composer and test scrolling back to the first result after keyboard navigation.
- Anchor bottom-docked composers with CSS `bottom`, not a top coordinate derived from content height. ResizeObserver plus requestAnimationFrame corrects too late when search results shrink or reappear; sample every frame while typing repeated characters and backspacing to empty, including after viewport resize. For tall research search results, cap the whole panel at visual-viewport height minus twice its bottom inset, leaving equal top/bottom clearance at maximum height while the input stays anchored and results scroll internally; preserve in-flow and subnav placement.
- Treat the compact nav row and portaled subnav as one pointer boundary: use capture-phase tracking plus direct leave handlers so children cannot swallow dismissal. Pointer dismissal must not restore the old trigger's focus; open styling comes from the current request, while keyboard focus has a distinct cue. Keep spacing in noninteractive slots and anchor to the actual compact link border. Composer link fills enter instantly and take .7s to leave.
- Keep static-to-live composer handoff geometrically identical: no scale or translation on the white bar; animate only the results. Show the same blue input border on static-open surfaces without changing their existing border-box dimensions. During wing-square unfolding, drive mask inset and wing translation from one registered inherited CSS property, with fixed equal clearance; avoid independent animation tracks. Account for clientLeft when measuring offsetLeft and verify intermediate frames, interruption and mobile. Cmd+K must not resize the separate hero launcher. Sequence dock arrival, bar unfolding, controls and results rather than animating them all together; retain that ordering on reversal and verify both white surfaces, not just the overlay. Resolve fold masks against current dimensions to prevent cached-width jumps.
- When a folded composer has a colored edge, inspect the bar’s computed border and later chrome overrides before changing results opacity. Fade the border with the existing registered fold progress while retaining its width; this preserves the expanded border, square geometry and interrupted motion without adding another clock.
- Make Cmd+K results visibly slide upward behind the opaque stationary white bar after it unfolds; a ≤1% displacement reads as a pop, not a slide. Keep this entrance separate from static/subnav motion and never replay it on query changes.
- Give Cmd+K dismissal separate beats: clear content, fold into a wing square, hold the opaque square for 880ms, then ease out scale 1.01 and a 2px downward slide before the slower opacity fade finishes. Measure the visible wing’s displacement while still opaque, not only the last invisible keyframe; couple scale and translation timing so their geometry cannot create an upward rebound. Use scale 1.01 and a ≤1% vertical offset from the opposite side of arrival; keep existing placement translation independent, preserve the bottom edge during typing, and resume interrupted animation from its current pose. Verify the held beat with both fixed animation-clock screenshots and real elapsed time.

## Correcting an established design

- Treat criticism of a specific effect or font as a targeted correction, not permission to replace the accepted sculpture, palette, or composition. Preserve what the user praised and vary one visual dimension at a time.
- Keep research reading previews inside the measured inline-contents column and derive their labels/excerpts from live headings and source paragraphs. Cache document geometry behind RAF/ResizeObserver, ignore explorer-internal mutations, and suppress the rail until contents leave view and whenever wide media or the footer occupies its bounds. Exercise preview pointer transfer, keyboard anchors, fractional scroll rounding, and the narrow-screen contents fallback on the real article route.
- Adopt requested authoring tools without discarding a stronger existing design. A Blender migration should retain the approved silhouette and detail unless the user asks to change them.

## Matching a brand reference ("make it like X")

- Measure the reference before styling: script Playwright to dump computed fonts, sizes, weights, casing, tracking, colors, borders, @font-face sources from the live site, then design from that data. A color-and-font swap from memory reads as a costume; the user will call it "not trying".
- Extract the reference's grammar (prefix glyphs, numbering, separators, chip borders, divider style, frame) and apply it consistently across every surface, including sheets, search, overlays and the movie — not just the header.
- "Black/white" for a 3D subject means a real two-tone split (dark chrome vs bone white by material role), not one flat grey; keep the original materials swappable behind a toggle so the color edition stays one flag away.
- On dark paper, restrict the accent to prefixes, active/filled states and a hairline frame; a thick accent frame or a column of filled toggles becomes the loudest element.

- "Monotone" for a rendered object means clamping the whole tonal range, not two-tone: matte materials (low metalness, high roughness, tiny envMapIntensity), a soft even light rig, and no near-white plates or near-black undersides. Check the pedestal/base separately; a flat sky-lit plate blows out before anything else.
- Tracker/HUD labels on a 3D subject go in the side gutters, stacked without overlap, with straight leaders to the bounding bracket; never print tags over geometry. Cut to ~5 tracks and show real projected values (xyz, distance, count), not repeated placeholders.
- "Operator tool" voice: lowercase machine names, `[ bracket ]` text buttons, label-right / value-left parameter rows, three flat charcoals (canvas < panel < inset), hairline borders. Drop copywriter verbs for operator verbs.

## Settings subpage navigation

- Order Settings children from general to frequently used to specialized; General always comes first where present. Parent labels, breadcrumb links and parent URLs open the first ordered child, never an overview or the last visited child. Keep disclosure arrows independent of navigation. Use one breadcrumb header for every page without a duplicate icon-and-title heading; reusable page headings yield to this chrome while retaining actions and counts. Keep row hover fills padded on both inline edges and verify painted bounds as well as navigation.

- Split renderable control groups without keying or unmounting their config controller on sibling or parent navigation. Debounced saves and incomplete model drafts belong to the persistent, profile-keyed controller. Keep nested autosave owners at a stable React position while rendering only the selected group's controls. Derive search destinations and navigation labels from the same ordered metadata, including config-present fields omitted by the backend schema and device-local controls outside it.

## Shared theme preferences

- For monochrome documentation, neutralize the existing gray ramp as well as accent tokens; stock grays can have a blue cast. Configure the existing code highlighter's light/dark themes rather than adding another renderer. Keep artwork outside color changes and verify its framebuffer pixels remain unchanged; never grayscale the whole page.
- Share preference parsing/resolution and the OS media-query subscription across themed surfaces; keep each surface's persistence and animation adapters independent. Do not copy a second theme engine or accidentally join isolated preferences.
- Preserve cached public rendering when adding system mode. Resolve the initial research palette in its existing head bootstrap before hydration rather than adding per-request cookie reads or a mount-time light-to-dark correction. Keep serialized policy functions self-contained and reuse that same resolver in normal code.
- Prove no-flash behavior by holding external JavaScript, inspecting the intended theme before hydration, then sampling actual paper paints through hydration. Cover both OS schemes, saved opposite overrides, genuine OS flips after a manual choice, storage denial and unrelated preference preservation. Sample a color token present in both schemes, not a dark-only viewport token.

## Shared brand badges

- Consolidate Nous girl chrome into the existing shared badge component, not feature-specific image wrappers, masks, filters or copied SVGs. Preserve the original outlined/footer and filled/light-paper path sets as explicit variants with `fill="currentColor"`; color comes from the surface, not duplicate light/dark files. Use the original blue-on-light path set on light paper and the original white footer/reversed path set on dark paper or blue overlays; changing currentColor alone does not swap artwork polarity. The light variant's filled hair does not mean a solid rectangular card background. Verify the visible variant through a real theme toggle, not just path equality to the footer. Remove obsolete imports/assets and confirm exact path equality plus rendered pixel parity at equal size/color before claiming 1:1. Keep mobile-only social removal inside its breakpoint; desktop hover socials remain.

## Typography direction

- Avoid generic serif-display plus monospace-everywhere pairings for bespoke technical interfaces. Prefer a coherent family with deliberate width/weight hierarchy; use monospace only where the content warrants it.
- Self-host selected font files and their license for offline local previews. Verify the actual rendered font with browser platform-font inspection when screenshots and computed CSS disagree.
- In nested marketing shells, inspect matched font rules and actual glyph families before increasing nominal sizes: unlayered shell heading selectors can replace Condensed with Compressed while primitive sizes remain correct. Scope editorial register corrections locally. For trial fonts, report per-glyph fallback explicitly; Aeonik Fono's limited punctuation coverage cannot be fixed by repeating its CSS family name.

## Don't

- New button/input/modal implementations
- Local color palettes or decorative chrome
- Duplicate formatters (time, etc.) — use the shared ones
- New borders, backgrounds, shadows, sparkles, or badges the surrounding app
  doesn't already use — match the neighboring surface exactly
- Section chrome that nowhere else uses

## Working from a design

Figma file, mock, or screenshot: match it — spacing, contrast, placement —
before inventing anything.

1. Pull the design context (Figma MCP if available, else the screenshot/mock).
2. Map it to existing primitives and tokens before building anything new.
3. Layout and structure first, then content.
4. Match spacing, padding, contrast, and states exactly. Check the details —
   no white-on-white, no doubled padding, correct CTA contrast.
5. Optimize exported assets (SVGO for SVGs).
6. Don't approximate spacing or colors the design specifies, and don't add
   chrome neither the design nor the app has.

If you can't find the primitive, search harder or ask — don't quietly make one.

While still iterating on look, follow `ui-only` (no tsc/lint/commit yet). Once
they like it, confirm against the design with `visual-verify`.

---

<!-- skill 23 of 24: visual verify · https://innernet.live/skills/outthislife-visual-verify -->

---
name: outthislife-visual-verify
title: visual verify
kind: skill
description: >
  Use to verify rendered UI against its design reference.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/visual-verify
brought_by: kt
license: MIT
---

# Visual Verify

## Motion pieces: judge from ordered stills, not a recording

- Don't record video to judge a movie; capture 6–8 stills at fixed film-clock times (read the scene's `data-film-time`, not wall time) and tile them with ffmpeg `concat` listing files explicitly. A glob sorts `t12` before `t1_2` and the critique reads the timeline backwards.
- For beat-synced effects, multiply every effect by a hit envelope (`pow(1-phase, 4)`) so frames between beats are clean; sustained shear/split/feedback reads as mush, not rhythm. Gate the whole pass with an intensity curve that is 0 at the opener and 0 at the landing.

Never report a visual, layout, or theme change as done based on the diff or a
passing test. Look at the running surface.

## Steps

1. Run the actual surface (dev server, app, TUI/GUI, Storybook — whatever shows
   this UI). Don't start one the user already has running.
2. Capture what it looks like — screenshot it, or tell the user exactly how to
   see it.
3. Compare against the reference: the design (Figma/mock), the sibling surface it
   should match, or the before state. Name the specific things you checked
   (color values, spacing, border, active state, contrast).
   For Figma/screenshot matching, follow [Screenshot overlays](references/screenshot-overlays.md)
   using the bundled utility or an existing harness with the same capture contract.
4. If it doesn't match, keep the debug logging and iterate. Only say "done" once
   it visibly matches.
5. Share the clean render and comparison evidence, with the viewport/state,
   measured deltas, approved deviations and unverified states. Keep visual
   parity, functional QA and the user's approval separate.

## Dense 3D inventory labels

- Compare projected label rectangles against one another and the fixed UI dock at desktop and mobile sizes. A rendered canvas or correct structure count does not prove labels are readable.
- Gate labels on projected cell width, not viewport width alone, so zoom can reveal names without overlap. Keep search and tolerant picking available when labels are hidden.
- Exercise resize without reloading an already-exploded scene. Invalidate both camera fitting and mesh transforms when the packing changes; updating only destination coordinates leaves objects in the previous grid.
- Measure inspector layout bounds independently of entry animations when reserving 3D camera space; transformed bounding rectangles can briefly report the wrong available viewport.
- Verify switch position with computed `translate` as well as `transform`; Tailwind can use individual transform properties, so `transform: none` does not mean the thumb is unmoved.

## Postprocessing previews

- Keep 3D postprocessing separate from DOM labels and controls so dither and edge detection do not damage text readability. Preserve canvas alpha so scanlines never fill the clean page background; compare a UI-element screenshot pixel-for-pixel with the effect on and off.
- Apply dependent scene/material changes atomically per file during HMR. Partially updated frame loops can throw every animation frame and flood Vite's forwarded console; inspect the latest log and HTTP health rather than treating a listening port as a working preview.
- Provide an effects bypass during visual iteration and compare actual rendered pixels with effects on/off at multiple pixel ratios. Preserve selection, camera, and isolation while switching.
- Validate the ordered-dither matrix covers its intended threshold range exactly; plausible-looking arithmetic can silently duplicate thresholds and alter the tonal distribution.
- Gate dither strength out of near-black backgrounds in a dark scene; otherwise a subtle surface effect becomes a full-screen checkerboard.
- Verify cinematic pause with both a frozen timeline and identical canvas pixels. Animate decorative rings, breathing, and camera motion from the same pausable clock.
- Prove WebGL artwork motion with timed framebuffer reads and a stable visible-artwork screenshot crop, not canvas presence or draw counts alone. When a still image and texture loader share a CDN URL, reproduce image-then-fetch in a fresh browser context: a no-CORS image response can poison the cache for the subsequent CORS texture fetch. Match the still's crossOrigin mode to the texture request, and verify normal and reduced-motion pixels without increasing effect strength.

## Isolated Vue component previews

- Import Vue through one canonical Vite alias in both the preview entry and compiled components. Mixing an explicit `node_modules/vue/dist` import with an optimized alias can create duplicate runtimes: component resolution warns, scoped attributes disappear, and loaded CSS no longer matches. Verify actual SVG children, scoped attributes, computed padding, and console warnings before judging screenshots.
- Check absolutely positioned screen-reader text inside horizontal scrollers. Without a positioned containing block it can escape overflow clipping and widen the document; compare document width before and after positioning the existing scroll region, while confirming keyboard scrolling and accessible names remain intact.
- Use an installed Chrome channel when the pinned Playwright browser executable is absent; do not substitute DOM-only output for rendered verification.
- In a fresh workspace whose shared packages export unbuilt `dist/`, run a source-based dev preview rather than triggering a build during the UI approval gate. Reuse the repo's source aliases; when the Vite config itself imports those packages, load it through the installed `tsx` with the relevant tsconfig and start Vite programmatically with `configFile: false`. Invoke binaries from the package that actually installs them: `pnpm exec` can otherwise fall through to an unrelated global Vite.
- Wait for the screen's entrance motion before capturing it. Locator visibility and `document.fonts.ready` can both precede a GSAP fade, yielding a nearly blank image or a translucent dropdown. Inspect the final pixels; label fixture-backed component checks separately from live backend verification.
- Capture an async form result at the user's unchanged scroll position before scrolling to its banner. A visible DOM node may be entirely above the viewport after insertion; a manually scrolled screenshot hides that usability failure. For fixed inner-scrolling shells, `fullPage` screenshots still show only the shell viewport, so capture both the confirmation and reachable action positions explicitly.
- When switching a feed from local assets to remote media, verify the document's actual CSP and decode visible images from every card, not merely the first card (which may be text-only). A successful API response and correct pagination can coexist with broken image placeholders; permit only the precise required image origin, then recheck real image responses and pixels.
- Verify reduced-motion copy with actual visibility and pixels, not only text content or `position: static`. A surviving `sr-only` utility may still apply `visibility: hidden` or `clip-path: inset(50%)`; remove its hiding treatment when the accessible copy becomes the visible fallback. For promotional typewriters, distinguish hidden-clock suspension from hover/focus dwell holds so the current sentence finishes without advancing the slide, and verify both phases independently.

## Saved-content component integration

- When full-route dependencies cannot be safely established within the investigation budget, mount the unchanged production consumer subtree and reread the real saved local record on every request. Compare response data to the database, exercise reload and variant/snapshot isolation, and disclose component integration rather than full-route/E2E. Keep product captures provenance-labeled and unsupported APIs explicit errors, never fabricated responses.
- Await the expanded panel's measured height and completed transition before screenshotting an accordion; `aria-expanded` can update before the expanded pixels are visible.

## Don't

- Claim a theme/color change works because the token math looks right — verify
  the rendered value.
- Delete instrumentation while the visual is still wrong.
- Trust unit tests as proof a UI renders correctly.

---

<!-- skill 24 of 24: work · https://innernet.live/skills/outthislife-work -->

---
name: outthislife-work
title: work
kind: skill
description: >
  Kick off a task in a fresh isolated git worktree instead of the current
  checkout. Use when the user invokes /work (optionally with a slug or
  description) to start something new without touching their working tree.
updated: 2026-12-05
authored_by: OutThisLife
author_url: https://github.com/OutThisLife
source_url: https://github.com/OutThisLife/brooklyn-skills/tree/HEAD/skills/work
brought_by: kt
license: MIT
---

# /work

`/work [slug]` is a declaration for this task: "spin up a dedicated worktree and
do the work there." It applies to what the user is starting right now — it is
not a standing rule that all work always happens in worktrees.

When invoked:

1. Look at what the repo already does, and copy it.
2. Create the worktree + branch and `cd` into it.
3. Do the requested work there.

## Work aimed at an issue ("if it's open and reproducible")

Do these in order before writing any fix:

0. **Load the repo's own gate skill first.** If the repo has a deployment or
   brain skill (a `<prefix>-repo` skill, a triage/claim system), load it
   before searching. Its per-issue gates (claim, overlap check, side-effect
   screen, risk title, auto-merge classifier) apply to a single `/work` fix as
   much as to a sweep. Skipping them because the request said "/work" rather
   than "triage" is the failure: the PR ships without the risk and side-effect
   sections she expects, and can duplicate her own open PR.
1. **Find the issue.** Search open and closed issues with several phrasings
   (`gh issue list --state all --search "<q>"`), plus `in:title` variants. A
   closed issue with a close-by-PR may already cover it. Check that before you
   call a newer report a duplicate.
2. **Look for a PR that already fixes it.** Search with
   `gh pr list --state all --search "<issue#>"` and with keywords. Drafts count:
   a contributor can park a finished fix as a draft because of an open-PR cap.
   If a complete fix exists, salvage it (cherry-pick the commit so authorship
   is kept) instead of writing a parallel one. Check **her own** open PRs too
   (`gh pr list --author @me --state open --json number,title,files,mergeable,autoMergeRequest`),
   not only contributors': an armed-but-CONFLICTING PR of hers on the same
   function is live work. Fold both into ONE combined PR that supersedes them
   (cherry-pick what applies, port the rest by hand onto main's current file
   layout, keep every `Co-authored-by`), then disarm (`gh pr merge N --disable-auto`)
   and close the sources with a comment linking the replacement.
3. **Prove it red on the base.** Apply only the tests first
   (`gh pr diff <N> > f.diff && git apply --include='tests/*' f.diff`), run
   them, and see them fail. Then remove the file and `git cherry-pick` the real
   commit, so the test file isn't left as an untracked conflict.
4. **Reproduce the user-visible path end to end.** Run it on a detached base
   worktree and on the branch, and keep both outputs as before/after evidence
   for the PR body.
5. **Re-run any failures on the base worktree** before calling them unrelated.
   "Fails identically on untouched base" is the claim to report.

Answer the "is it open / can it be repro'd" part first in the handoff, then
the fix and the PR link.

## Read the repo's conventions

```bash
git worktree list                                   # sibling dirs + branches
git branch -a --sort=-committerdate | head -20      # branch prefix/slug pattern
git remote show origin | sed -n 's/.*HEAD branch: //p'   # default branch
```

- **Branch prefix** — mirror the dominant one (e.g. `<initials>/<slug>`). None
  obvious → ask.
- **Worktree dir** — mirror sibling naming/location (commonly `<repo>-<short>`
  next to the primary checkout). Short suffix ≠ full branch is fine.
- **Base** — current default branch unless they name another.
- **Slug** — from the `/work` argument, else the task description.

## Create it

```bash
repo="$(git rev-parse --show-toplevel)"
parent="$(dirname "$repo")"
default="$(git -C "$repo" remote show origin | sed -n 's/.*HEAD branch: //p')"
git -C "$repo" fetch origin "$default"
git -C "$repo" worktree add -b <prefix>/<slug> "$parent/$(basename "$repo")-<short>" "origin/$default"
cd "$parent/$(basename "$repo")-<short>"
```

Reuse a matching worktree/branch if one already exists — don't duplicate. Match
how siblings handle `node_modules` / `.venv` / symlinks.

- Never `git stash` in a worktree while other agents run: the stash list is shared repo-wide, so a pop can grab another worker's WIP. Commit WIP instead.

## Then

- Do the task in the worktree; never in the primary checkout, and never in
  another agent's worktree.
- Never `git stash` in a worktree: `refs/stash` is shared by every worktree of
  the repo, so a parallel agent can pop your entry (or you pop theirs). To test
  against base, copy the file aside (`git show HEAD:<path> > …`) or use a
  throwaway worktree instead.
- Every worker and subagent gets its own worktree, and the worktree path is in
  its instructions. Fixes use a `bb/*` branch. Verification, typecheck, and
  tests use a detached worktree at `origin/<default>`. When its lockfile matches
  the primary's, symlink every `node_modules` (root and workspace packages) to
  the primary's; install only on a lock change, after removing those links.
  Never edit, install, build, typecheck, or test in the primary checkout.
- Prefer direct execution for focused fixes. Do not delegate routine sibling-path
  audits or cleanup; reserve subagents for substantial independent work that
  clearly saves time.
- Default to pnpm for JavaScript package commands and install examples when the repository supports it. Respect an existing different package-manager/lockfile contract rather than introducing a second lockfile.
- UI → `ui-only` + `ui-system`. Tests → whatever the repo uses.
- When handing off, tell the user the worktree path and how to run it.
- Ship → commit, push the branch, open a PR/MR to the default branch.
- Cleaning up → offer to remove worktrees whose branch is already merged.
- Reviewing an existing PR instead of new work → `pr-triage`.
