npx claudepluginhub jpoutrin/product-forge --plugin product-designWant just this skill?
Then install: npx claudepluginhub u/[userId]/[slug]
Review QA test and capture element screenshots to enrich documentation
This skill uses the workspace's default tool permissions.
enrich-qa-test
Category: Quality Assurance
Usage
enrich-qa-test <qa-test-file> [--url <url>] [--update] [--elements-only]
Arguments
<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 captures
Purpose
This 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.
Execution Instructions for Claude Code
When this command is run, Claude Code should:
Phase 1: Parse QA Test Document
-
Read the QA test file
- Extract metadata (Test ID, URL, feature name)
- Parse all test cases (TC-###) and edge cases (EC-###)
-
Extract element references from test steps
- Scan for bold text: Element Name
- Scan for quoted elements: "Element Name"
- Identify action + element patterns:
- "Click the Login button"
- "Enter text in the Email field"
- "Select from the Country dropdown"
-
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)
Phase 2: Capture Screenshots
-
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:
- Locate element using accessibility tree or selectors
- Capture element screenshot
- Save to
screenshots/{test-id}/elements/{element-name}.png
-
Handle element states (if applicable)
- Default state
- Hover state (if interactive)
- Focus state (if input)
- Error state (if validation element)
Phase 3: Generate Element Reference
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 |
Phase 4: Update Documentation (if --update)
-
Create elements directory
qa-tests/screenshots/{test-id}/elements/ -
Insert Element Reference section after Metadata
-
Add inline screenshots to test steps (optional)
| 2 | Enter "test@example.com" in **Email field**  | Email accepted | ā | | -
Update Screenshots section in test document
Output
Without --update
š 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
With --update
š 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/
Element Detection Patterns
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 |
Error Handling
ā ļø 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.
Integration with Skills
This command uses:
qa-element-extraction- Element identification patternsqa-screenshot-management- Screenshot naming and organizationqa-test-management- Test file structure
Example Workflow
# 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
Related Commands
/create-qa-test- Create new QA test procedure/list-qa-tests- List existing QA tests
Related Skills
qa-element-extraction- Element identification methodologyqa-screenshot-management- Screenshot organization standards
Similar Skills
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.