Agent skill

Regenerating Screenshots

by Comfy-Org in Comfy-Org/ComfyUI_frontend

Creates a PR to regenerate Playwright screenshot expectations.

GPL-3.0Auto-check passedTesting & QA

Install Regenerating Screenshots

skills CLI
$ npx skills add Comfy-Org/ComfyUI_frontend --skill regenerating-screenshots -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Comfy-Org/ComfyUI_frontend regenerating-screenshots --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Comfy-Org/ComfyUI_frontend.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/regenerating-screenshots .claude/skills/regenerating-screenshots && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
regenerating-screenshots
GitHub stars
2.1k
Token cost
~643 tokens
SKILL.md length
228 words
Files
1
Skills in repo
22
Repo updated
First seen
Licence
GPL-3.0

At a glance

Creates a PR to regenerate Playwright screenshot expectations.

  • Works in 8 steps: Fetch latest main → Create a timestamped branch from… → Create an empty commit → …
  • Screenshot tests are failing on main
  • SKILL.md covers Steps and Notes
  • Calls git and gh

What it does

Regenerating Screenshots is an agent skill from Comfy-Org/ComfyUI_frontend. Creates a PR to regenerate Playwright screenshot expectations. Use when screenshot tests are failing on main or PRs due to stale golden images. Triggers on: regen screenshots, regenerate screenshots, update expectations, fix screenshot tests.

Its SKILL.md is about 640 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Browser testing. It works with Playwright. The repository describes itself as: Official front-end implementation of ComfyUI. The licence is GPL-3.0.

When your agent uses it

  • Screenshot tests are failing on main
  • PRs due to stale golden images
  • : regen screenshots
  • Regenerate screenshots

Example prompts

  • “Use the regenerating-screenshots skill to create a PR to regenerate Playwright screenshot expectations”
  • “/regenerating-screenshots”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Fetch latest main
  2. Create a timestamped branch from origin/main
  3. Create an empty commit
  4. Push the branch
  5. Generate a poem about regenerating screenshots. Be creative — a
  6. Create the PR with the poem as the body (no label yet).
  7. Add the label as a separate step to trigger the GitHub Action.
  8. Report the result to the user

What it can do on your machine

Read from SKILL.md and the folder at commit f9be289. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Regenerating Screenshots loads about 643 tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 228 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~643

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Comfy-Org/ComfyUI_frontend at commit f9be289, republished under its GPL-3.0 licence (© Comfy-Org). 228 words, ~643 tokens.

Download SKILL.mdSave it as .claude/skills/regenerating-screenshots/SKILL.md (or your agent's skills folder).
name
regenerating-screenshots
description
Creates a PR to regenerate Playwright screenshot expectations. Use when screenshot tests are failing on main or PRs due to stale golden images. Triggers on: regen screenshots, regenerate screenshots, update expectations, fix screenshot tests.

Regenerating Playwright Screenshot Expectations

Automates the process of triggering the PR: Update Playwright Expectations GitHub Action by creating a labeled PR from origin/main.

Steps

  1. Fetch latest main

    bash
    git fetch origin main
  2. Create a timestamped branch from origin/main

    Format: regen-screenshots/YYYY-MM-DDTHH (hour resolution, local time)

    bash
    git checkout -b regen-screenshots/<datetime> origin/main
  3. Create an empty commit

    bash
    git commit --allow-empty -m "test: regenerate screenshot expectations"
  4. Push the branch

    bash
    git push origin regen-screenshots/<datetime>
  5. Generate a poem about regenerating screenshots. Be creative — a new, unique poem every time. Short (4–8 lines). Can be funny, wistful, epic, haiku-style, limerick, sonnet fragment — vary the form.

  6. Create the PR with the poem as the body (no label yet).

    Write the poem to a temp file and use --body-file:

    bash
    # Write poem to temp file
    # Create PR:
    gh pr create \
      --base main \
      --head regen-screenshots/<datetime> \
      --title "test: regenerate screenshot expectations" \
      --body-file <temp-file>
  7. Add the label as a separate step to trigger the GitHub Action.

    The labeled event only fires when a label is added after PR creation, not when applied during creation via --label.

    Use the GitHub API directly (gh pr edit --add-label fails due to deprecated Projects Classic GraphQL errors):

    bash
    gh api repos/{owner}/{repo}/issues/<pr-number>/labels \
      -f "labels[]=New Browser Test Expectations" --method POST
  8. Report the result to the user:

    • PR URL
    • Branch name
    • Note that the GitHub Action will run automatically and commit updated screenshots to the branch.

Notes

  • The New Browser Test Expectations label triggers the pr-update-playwright-expectations.yaml workflow.
  • The workflow runs Playwright with --update-snapshots, commits results back to the PR branch, then removes the label.
  • This is fire-and-forget — no need to wait for or monitor the Action.
  • Always return to the original branch/worktree state after pushing.

© Comfy-Org, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/regenerating-screenshots of Comfy-Org/ComfyUI_frontend.

Open the folder on GitHubat commit f9be289

Compare with similar skills

Regenerating Screenshots next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Regenerating Screenshots compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Regenerating Screenshots this skillComfy-Org/ComfyUI_frontend2.1k—~643Automated safety check: PassGPL-3.0
Web Application Testinganthropics/skills180k51 repos~966Automated safety check: PassApache-2.0
Playwright CLIsanity-io/sanity6.4k18 repos~1.9kAutomated safety check: PassMIT
Write and Verify Playwright Testsappsmithorg/appsmith41k—~2.9kAutomated safety check: NotesApache-2.0
playwright-cli Browser Automationgithub/gh-aw5.4k23 repos~2.8kAutomated safety check: PassMIT
Cucumber and Playwright E2E Testslanggenius/dify158k—~682Automated safety check: PassCustom licence

Similar skills

  • Web Application Testing

    anthropics/skills

    Official

    Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.

    180k GitHub starsUsed in 51 repos~966 tokens
    Testing & QAAuto-check passed
  • Playwright CLI

    sanity-io/sanity

    Official

    Automates browser interactions for web testing, form filling, screenshots, and data extraction.

    6.4k GitHub starsUsed in 18 repos~1.9k tokens
    Testing & QAAuto-check passed
  • Writes a Playwright end-to-end test from a prompt, runs it against a live Appsmith deployment and retries with fixes up to three times until it passes.

    41k GitHub stars~2.9k tokensUpdated today
    Testing & QAAuto-check: notes
  • Official

    Drives a real browser from the command line with playwright-cli to open pages, interact, mock requests, save state and work with Playwright tests.

    5.4k GitHub starsUsed in 23 repos~2.8k tokens
    Testing & QAAuto-check passed
  • Guides changes and reviews of the Cucumber and Playwright end-to-end suite under `e2e/`: feature files, step definitions, support code, tags, locators and assertions.

    158k GitHub stars~682 tokensUpdated today
    Testing & QAAuto-check passed
  • E2E Testing

    langflow-ai/langflow

    Write and review Playwright E2E tests for Langflow. An agent skill from langflow-ai/langflow.

    155k GitHub stars~3.3k tokensUpdated today
    Testing & QAAuto-check passed

More from Comfy-Org/ComfyUI_frontend

All 22 skills in this repo
  • Adding Deprecation Warnings

    Comfy-Org/ComfyUI_frontend

    Adds deprecation warnings for renamed or removed properties/APIs.

    2.1k GitHub stars~775 tokensUpdated today
    Auto-check passed
  • Agent Integration Replay

    Comfy-Org/ComfyUI_frontend

    Replay recorded agent conversations as Playwright tests against the real chat panel and canvas.

    2.1k GitHub stars~805 tokensUpdated today
    Auto-check: notes
  • Codegen Transform

    Comfy-Org/ComfyUI_frontend

    Transforms raw Playwright codegen output into ComfyUI convention-compliant tests.

    2.1k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Comment Sicko

    Comfy-Org/ComfyUI_frontend

    Dispatches the comment-sicko subagent to hunt gratuitous comments in a PR/diff, triages its raw findings, and posts a polite, professional writeup.

    2.1k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Hardening Flaky E2E Tests

    Comfy-Org/ComfyUI_frontend

    Diagnoses and fixes flaky Playwright e2e tests by replacing race-prone patterns with retry-safe alternatives.

    2.1k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Perf Fix With Proof

    Comfy-Org/ComfyUI_frontend

    Ships performance fixes with CI-proven improvement using stacked PRs.

    2.1k GitHub stars~1.6k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Regenerating Screenshots

What does Regenerating Screenshots do?

Creates a PR to regenerate Playwright screenshot expectations. Regenerating Screenshots is an agent skill from Comfy-Org/ComfyUI_frontend. Creates a PR to regenerate Playwright screenshot expectations.

When should I use Regenerating Screenshots?

Regenerating Screenshots fits situations like: screenshot tests are failing on main; PRs due to stale golden images; : regen screenshots; regenerate screenshots.

How do I install Regenerating Screenshots in Claude Code?

Run `npx skills add Comfy-Org/ComfyUI_frontend --skill regenerating-screenshots -a claude-code`. Or copy the skill folder (.claude/skills/regenerating-screenshots in Comfy-Org/ComfyUI_frontend) into .claude/skills/regenerating-screenshots in your project. Claude Code loads it when a task matches its description.

How do I install Regenerating Screenshots in Codex?

Run `npx skills add Comfy-Org/ComfyUI_frontend --skill regenerating-screenshots -a codex`. Or copy the skill folder (.claude/skills/regenerating-screenshots in Comfy-Org/ComfyUI_frontend) into .agents/skills/regenerating-screenshots in your project. Codex loads it when a task matches its description.

Can I use Regenerating Screenshots in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Comfy-Org/ComfyUI_frontend --skill regenerating-screenshots -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/regenerating-screenshots, .gemini/skills/regenerating-screenshots, .github/skills/regenerating-screenshots and .opencode/skills/regenerating-screenshots in your project.

What does Regenerating Screenshots need to run?

Going by SKILL.md and its folder, Regenerating Screenshots needs the command-line tools its instructions call (git and gh).

Does Regenerating Screenshots access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Regenerating Screenshots safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Regenerating Screenshots use?

Regenerating Screenshots is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Regenerating Screenshots use?

About 643 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Regenerating Screenshots?

Skills that share tags, products or a category with Regenerating Screenshots: Web Application Testing (anthropics/skills, 180k stars), Playwright CLI (sanity-io/sanity, 6.4k stars), Write and Verify Playwright Tests (appsmithorg/appsmith, 41k stars) and playwright-cli Browser Automation (github/gh-aw, 5.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Regenerating Screenshots?

Comfy-Org (a GitHub organization) maintains it in Comfy-Org/ComfyUI_frontend, which has 2,056 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 9, 2026.

Source: Comfy-Org/ComfyUI_frontend on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.