code-review
Use to review code changes with a two-stage process - first checking spec/requirements…
Use when validating UI changes in a branch require Playwright E2E testing. Reviews branch changes, validates UI with Playwright MCP, and adds missing test cases.
$ npx -y skills add open-metadata/OpenMetadata --skill playwright-validation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/playwright-validationContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when validating UI changes in a branch require Playwright E2E testing. Reviews branch changes, validates UI with Playwright MCP, and adds missing test cases.
name: playwright-validation description: Use when validating UI changes in a branch require Playwright E2E testing. Reviews branch changes, validates UI with Playwright MCP, and adds missing test cases.
This skill guides you through validating UI changes and ensuring comprehensive Playwright E2E test coverage.
1. **Identify changed files vs main:**
git diff main --stat git diff main --name-only | grep -E "\.(tsx?|less|css|scss)$"
2. **Focus on UI component changes:**
git diff main -- "openmetadata-ui/src/main/resources/ui/src/components/**" --stat
3. **Check for existing Playwright tests:**
git diff main --name-only | grep -E "playwright.*\.spec\.ts$"
4. **Read the changed component files** to understand the UI modifications
1. **Locate relevant test files:**
2. **Analyze test coverage:**
3. **Review test utilities:**
1. **Start the browser and navigate:**
mcp__playwright__browser_navigate to http://localhost:8585
2. **Authenticate if needed:**
3. **Navigate to the feature area:**
4. **Validate UI behavior:**
5. **Document findings:**
1. **Create a TodoWrite checklist** of missing test scenarios
2. **For each missing test case:**
a. **Add necessary test fixtures** in `beforeAll`:
b. **Add cleanup** in `afterAll`:
c. **Write the test** following the pattern:
test('Descriptive Test Name - What it validates', async ({ page }) => {
test.setTimeout(300000);
await test.step('Step description', async () => {
// Test actions and assertions
});
await test.step('Next step', async () => {
// More actions and assertions
});
});3. **Test patterns to cover:**
4. **Run Playwright lint check:**
yarn lint:playwright
Every `playwright/*` and `om-playwright/*` guardrail rule is `error` severity. Repo-wide `openmetadata-playwright/*` rules set their own, and may sit at `warn` while their call sites migrate — read the severity column in the handbook's **ESLint Enforcement** table rather than assuming.
import { sidebarClick } from '../../utils/sidebar';
import { redirectToHomePage } from '../../utils/common';
import { selectDataProduct, selectDomain } from '../../utils/domain';import { waitForAllLoadersToDisappear } from '../../utils/entity';
await waitForAllLoadersToDisappear(page);
await expect(page.getByTestId('content')).toBeVisible();
// NEVER use: page.waitForLoadState('networkidle') — blocked by ESLintconst response = page.waitForResponse('/api/v1/endpoint*');
await someAction();
await response;
expect((await response).status()).toBe(200);await expect(page.getByTestId('element')).toBeVisible();
await expect(page.getByTestId('element')).toContainText('text');
await expect(page.locator('.class')).not.toBeVisible();For reference, see the comprehensive test coverage in: `playwright/e2e/Pages/DataContractInheritance.spec.ts`
This file demonstrates:
The Open Context Layer for Data and AI , OpenMetadata is the open platform for building trusted data context and business semantics for humans, AI assistants, and agents.
Repo: open-metadata/OpenMetadata
Use to review code changes with a two-stage process - first checking spec/requirements…
Deep reliability audit for OpenMetadata connectors — runs 7 investigation prompts (metadata,…
Build a new OpenMetadata connector from scratch — scaffold JSON Schema, Python boilerplate,…
Review an OpenMetadata connector against golden standards. Runs multi-agent analysis covering…
Load all OpenMetadata connector development standards into context. Use before building or…
Set up, verify, or repair a local OpenMetadata development environment on macOS or Linux.…