qa-verify-console
БесплатноЗапускает вложенные скриптыНе проверенCapture before/after screenshots of OpenShift Console PRs running against a live cluster using Puppeteer, generate visual diff comparisons, and post evidence…
от openshift-eng★ 123 звезды на GitHubОб этом скилле
qa-verify-console — Visual QA Verification for OpenShift Console PRs
Overview
This skill captures before/after screenshots of an OpenShift Console PR running against a live cluster, generates flicker GIFs to highlight visual differences, and posts evidence to the PR. It enables rapid visual QA without manual browser testing.
"Agent" throughout this document refers to the Claude Code agent executing the skill — the LLM-driven process that runs commands, makes decisions about which routes to capture, and interprets results.
Post-PR design: This skill operates on an already-published pull request. It requires a valid PR number so it can fetch both the head and base branches, read the diff to identify affected routes, and post evidence back as a PR comment. It is not designed for pre-PR / local-branch workflows.
The agent:
- Clones
openshift/console, builds both the base and PR branches - Runs the console bridge (dev server) against a real OCP cluster
- Uses Puppeteer to capture screenshots of affected routes
- Compares baseline vs candidate screenshots and posts evidence to the PR
Prerequisites
| Dependency | Minimum Version | Notes |
|---|---|---|
| Node.js | 22+ | Required by console's frontend build |
| Corepack | (bundled) | Must be enabled: corepack enable |
| Yarn Berry | 4.x | Managed via corepack, .yarnrc.yml in repo |
| Go | 1.25+ | Required for backend (bridge) build |
oc |
4.x | OpenShift CLI for cluster access |
gh |
2.99+ | GitHub CLI for PR metadata + comment posting |
git |
2.x | Full clone required (both branches needed) |
| Chrome/Chromium | 120+ | Installed by Puppeteer; system libs needed |
Recommended Pod Resources
CPU: 8 cores
Memory: 16Gi
Ephemeral Storage: 40Gi
The console frontend build (yarn install --immutable && yarn run build) is
CPU- and memory-intensive. The Go backend build is lighter but still benefits
from multiple cores.
Inputs
The agent receives two inputs:
- PR number — The
openshift/consolepull request to verify (e.g.,17199) - OC login command — A full
oc logincommand string with token and server URL, passed explicitly as theOC_LOGIN_CMDenvironment variable. This is not an ambient kubeconfig assumption — the caller must provide a completeoc login --token=... --server=...command that the scriptevals to authenticate against the target cluster.
Optional:
- Routes — Comma-separated list of console routes to capture. If not provided, the agent analyzes the PR diff to determine affected routes.
Evidence Directory Layout
/workspace/evidence/
baseline/ # Screenshots from the base branch
overview.png
k8s_cluster_nodes.png
...
candidate/ # Screenshots from the PR branch
overview.png
k8s_cluster_nodes.png
...
flicker/ # Animated GIFs showing differences
overview.gif
k8s_cluster_nodes.gif
...
metadata.json # PR metadata (branches, author, etc.)
baseline.json # Capture summary for baseline
candidate.json # Capture summary for candidate
Phases
Phases 0–1 — Validate Inputs & Setup Environment
Fully automated by scripts/setup.sh — the agent just runs it and checks the
exit code. No LLM decisions needed.
OC_LOGIN_CMD="oc login --token=... --server=..." \
bash /workspace/qa-verify-console/scripts/setup.sh "$PR_NUMBER"
On success (exit 0), the script produces:
/workspace/evidence/metadata.json— PR metadata/workspace/console/— cloned repo withbase-branchchecked out andpr-branchavailable/workspace/evidence/setup-env.sh— sourceable env vars (LD_LIBRARY_PATH,CHROME_BIN,QA_TOOLS_DIR, branch refs)
The agent should source /workspace/evidence/setup-env.sh before proceeding.
On failure (non-zero exit), setup.sh prints a descriptive error to stderr.
The agent should report the error and stop.
Phase 2 — Determine Routes & Capture Baseline
Goal: Decide which console routes to screenshot, then build the base branch and capture them.
Agent decisions (LLM judgement required):
- Route selection — Analyze the PR diff (
gh pr diff "$PR_NUMBER") to determine which console routes are visually affected by the changes. Consider:- Which React components are modified and what routes render them
- Whether the change is cosmetic (CSS/layout) vs. behavioral
- Common route patterns:
/(overview/dashboard)/k8s/cluster/nodes,/k8s/cluster/projects/k8s/ns/<namespace>/pods/monitoring/alerts, `/settings
Установить qa-verify-console в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл qa-verify-console?
Capture before/after screenshots of OpenShift Console PRs running against a live cluster using Puppeteer, generate visual diff comparisons, and post evidence to the PR. Use when a Console PR needs visual QA verification or screenshot-based regression testing.
Как установить скилл qa-verify-console?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл qa-verify-console запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic