/gabbe-coding:browser-tddfrom gabbe-coding
Writes Playwright tests that verify UI rendering in a real browser before implementing code. Use for layout, sticky/fixed elements, modals, animations, and any visual behavior that requires actual browser execution.
Ships in gabbe-coding. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Verify that UI code produces correct visual output through actual browser execution — not just code that compiles or passes unit tests. Uses Playwright to check DOM structure, computed styles, scroll behavior, and visual rendering.
Analyze the UI requirement
getBoundingClientRect().top === 0expect(modal).not.toBeVisible()grid-template-columns valueWrite the Playwright test (Red phase)
// tests/ui/navbar.spec.ts
import { test, expect } from '@playwright/test';
test('navbar is sticky after scrolling 200px', async ({ page }) => {
await page.goto('/');
await page.evaluate(() => window.scrollBy(0, 200));
const navTop = await page.locator('nav').evaluate(
el => el.getBoundingClientRect().top
);
expect(navTop).toBe(0);
});
Confirm Red — run test, MUST FAIL
npx playwright test tests/ui/navbar.spec.ts
Implement the CSS/component change
overflow: hidden on a parent element breaks position: stickytransform on a parent breaks position: fixedtop: value with position: stickyConfirm Green — run Playwright test
npx playwright test tests/ui/navbar.spec.ts
page.screenshot({ path: 'debug.png' }) to see the actual stateIf test still fails after fix attempts
await page.screenshot({ path: 'tests/ui/screenshots/debug.png' })await page.locator('nav').evaluate(el => getComputedStyle(el))Run full test suite (no regressions)
npx playwright test # All browser tests
[unit test command] # All unit tests still pass
Capture visual regression baseline (optional but recommended; this overwrites the stored baseline images, so show the human the diff and run it only after they confirm the change is intended)
npx playwright test --update-snapshots # Update baseline screenshots
Refactor while keeping all tests green
// Check computed CSS property
const display = await page.locator('.grid').evaluate(
el => getComputedStyle(el).display
);
expect(display).toBe('grid');
// Check element is in viewport
await expect(page.locator('.sticky-header')).toBeInViewport();
// Check keyboard navigation
await page.keyboard.press('Tab');
await expect(page.locator(':focus')).toHaveAttribute('data-testid', 'next-button');
// Check scroll position
await page.evaluate(() => window.scrollTo(0, 500));
const scrollY = await page.evaluate(() => window.scrollY);
expect(scrollY).toBe(500);
// Visual screenshot comparison
await expect(page).toHaveScreenshot('homepage.png');
Passing Playwright test + implemented UI change. Report: "VISUAL TDD GREEN — [test name] passes in [browser]."
--update-snapshots overwrites the visual baseline: run it only after the human has seen the diff and confirmed the change is intended.display: none, opacity: 0 or !important; if the project has an accessibility check (for example axe-core), run it alongside the visual test and use native elements (<button>, not a styled <div>).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-coding30 skills in this plugin
/agent-trajectory-evalScore an agent's run by its tool calls and state transitions, not only its final answer: tool and parameter F1, in-order match, legal transitions, pass^k. Use when you evaluate how an agent reached an answer or need a reliability figure over repeated runs./artisan-commandsRun Laravel Artisan commands safely: check the project and environment, run the command, verify the result. Use when the user asks to scaffold a controller or model, run migrations or manage a Laravel app with php artisan./chaos-fault-injectionProduce a fault-injection matrix: each fault (dropped connection, corrupt write, latency, bad response, resource exhaustion) with its expected recovery and an assertion. Use when you must show that a system recovers, rolls back or stops safely when a dependency fails.Other plugins' skills for the same job