/product-design:enrich-qa-test <qa-test-file> [--url <url>] [--update]from product-design
Reviews QA test procedure files, parses test steps for UI element references, captures targeted element screenshots using Playwright, and generates a visual reference table to enrich test documentation.
Ships in product-design. 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.
Category: Quality Assurance
enrich-qa-test <qa-test-file> [--url <url>] [--update] [--elements-only]
<qa-test-file>: Required - Path to the QA test procedure file (e.g., qa-tests/active/QA-20250105-001-login.md)--url: Optional - Override the test URL from the document--update: Optional - Automatically update the QA test file with screenshots--elements-only: Optional - Only capture element screenshots, skip full-page capturesThis command reviews an existing QA test procedure, identifies UI elements mentioned in test steps, captures targeted screenshots of each element using Playwright, and enriches the documentation with visual references.
When this command is run, Claude Code should:
Read the QA test file
Extract element references from test steps
Build element extraction list
Elements found in QA-20250105-001-login.md:
TC-001:
- Step 2: Email field (input)
- Step 3: Password field (input)
- Step 4: Login button (button)
TC-002:
- Step 1: Forgot password link (link)
Navigate to test URL using Playwright MCP
browser_navigate → {url from metadata or --url}
Take initial full-page snapshot
browser_snapshot → understand page structure
browser_take_screenshot → screenshots/{test-id}/00-initial-state.png
For each identified element:
screenshots/{test-id}/elements/{element-name}.pngHandle element states (if applicable)
Create an element reference section:
## Element Visual Reference
| Element | Screenshot | Location | Test Case |
|---------|------------|----------|-----------|
| Email field |  | Login form | TC-001 Step 2 |
| Password field |  | Login form | TC-001 Step 3 |
| Login button |  | Form footer | TC-001 Step 4 |
| Forgot password |  | Below form | TC-002 Step 1 |
Create elements directory
qa-tests/screenshots/{test-id}/elements/
Insert Element Reference section after Metadata
Add inline screenshots to test steps (optional)
| 2 | Enter "[email protected]" in **Email field**  | Email accepted | ☐ | |
Update Screenshots section in test document
📋 QA Test Analysis: QA-20250105-001-login.md
URL: https://staging.example.com/login
Test Cases: 3 | Edge Cases: 2
🔍 Elements Identified:
TC-001: User Login Flow
├── Email field (input)
├── Password field (input)
└── Login button (button)
TC-002: Forgot Password
└── Forgot password link (link)
EC-001: Invalid Credentials
└── Error message (alert)
📸 Screenshots Captured:
screenshots/QA-20250105-001/
├── 00-initial-state.png
└── elements/
├── email-field.png
├── password-field.png
├── login-button.png
├── forgot-password-link.png
└── error-message.png
💡 Run with --update to add these to the QA test document
📋 QA Test Enriched: QA-20250105-001-login.md
✅ Added Element Visual Reference section
✅ Captured 5 element screenshots
✅ Updated Screenshots metadata
Modified: qa-tests/active/QA-20250105-001-login.md
Created: qa-tests/screenshots/QA-20250105-001/elements/
The command scans for these patterns:
| Pattern | Example | Element Type |
|---|---|---|
**Name** button | Click Login button | button |
**Name** field | Enter in Email field | input |
**Name** link | Click Forgot password link | link |
**Name** dropdown | Select from Country dropdown | select |
**Name** checkbox | Check Remember me checkbox | checkbox |
**Name** icon | Click menu icon | button/icon |
**Name** tab | Select Settings tab | tab |
**Name** modal | Close confirmation modal | dialog |
"Name" in quotes | Click "Submit" | inferred |
⚠️ Element not found: "Premium badge"
Possible reasons:
- Element requires login/authentication
- Element loads dynamically
- Element name doesn't match visible text
Skipping this element. Capture manually if needed.
❌ Could not navigate to URL
Check that the URL is accessible and try again.
⚠️ Some elements require interaction to appear
The following were not captured:
- Error message (appears after form submission)
- Success toast (appears after action)
Consider capturing these during manual test execution.
This command uses:
qa-element-extraction - Element identification patternsqa-screenshot-management - Screenshot naming and organizationqa-test-management - Test file structure# 1. Create a QA test
/create-qa-test user-login --url https://staging.example.com/login
# 2. Write test cases manually or with qa-tester agent
# 3. Enrich with element screenshots
/enrich-qa-test qa-tests/active/QA-20250105-001-user-login.md --update
# 4. Review enriched documentation
cat qa-tests/active/QA-20250105-001-user-login.md
/create-qa-test - Create new QA test procedure/list-qa-tests - List existing QA testsqa-element-extraction - Element identification methodologyqa-screenshot-management - Screenshot organization standardsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jpoutrin/product-forge --plugin product-design43 skills in this plugin
/agent-toolsReference for configuring tool permissions when launching Claude Code agents. Use when setting up --allowedTools flags, restricting file access, or configuring agent permissions./brainstorm-solutionStructured brainstorming for technical solutions/browser-debugCapture browser console, network, and performance logs for debugging. Auto-loads when debugging browser issues, analyzing errors, or investigating page behavior. Provides systematic log capture workflow using Chrome DevTools MCP./console-debuggingUse when debugging JavaScript errors, checking console warnings, analyzing browser logs, finding runtime errors, investigating console output, or troubleshooting browser issues. Provides console message analysis./create-personaCreate detailed user persona with guided questions/create-prdInteractive PRD creation wizard with comprehensive question flowOther plugins' skills for the same job