Skip to content

docs: add the regen-baselines skill and command - #832

Merged
robsongajunior merged 2 commits into
mainfrom
docs/regen-baselines-skill
Jul 29, 2026
Merged

docs: add the regen-baselines skill and command#832
robsongajunior merged 2 commits into
mainfrom
docs/regen-baselines-skill

Conversation

@robsongajunior

Copy link
Copy Markdown
Contributor

Summary

Adds the regen-baselines skill (.claude/skills/regen-baselines/SKILL.md) and its /regen-baselines <branch | pr> [modes] command (.claude/commands/regen-baselines.md), codifying the CI-only flow for refreshing the visual-regression baselines of a PR branch:

  1. Trigger Storybook Regenerate Baseline (app-storybook-generate-baseline.yml) with update_baselines=true on the branch HEAD (optionally a modes subset).
  2. Wait (~5 min warm), download the visual-baselines-linux artifact.
  3. Mirror it into apps/storybook/.storybook/test-visual/__image_snapshots__/linux/ with rsync -a --delete.
  4. Review the diff scope story-by-story against the branch's changes (unexplained stories stop the flow).
  5. Commit only the snapshots folder (test(storybook): …) and push.

Includes a Conflict recovery section for when main and the branch regenerated the same PNGs (binary conflicts): finish the merge/rebase picking any side (or git rebase --skip a stale baseline-only commit), push, regenerate on the merged tree.

Notes

@robsongajunior
robsongajunior requested a review from a team as a code owner July 29, 2026 15:30
@robsongajunior robsongajunior added governance Lints, Type Checks, Engineering flow AI labels Jul 29, 2026
@robsongajunior
robsongajunior marked this pull request as draft July 29, 2026 15:31
@robsongajunior
robsongajunior marked this pull request as ready for review July 29, 2026 18:26
@robsongajunior
robsongajunior merged commit 06f5f63 into main Jul 29, 2026
17 checks passed
@robsongajunior
robsongajunior deleted the docs/regen-baselines-skill branch July 29, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI governance Lints, Type Checks, Engineering flow

Development

Successfully merging this pull request may close these issues.

4 participants