enrich-qa-test
БесплатноБез исполняемых скриптовНе проверенReview QA test and capture element screenshots to enrich documentation
от jpoutrin★ 16 звёзд на GitHubОб этом скилле
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.pngFor 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 "[email protected]" 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 no
Установить enrich-qa-test в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл enrich-qa-test?
Review QA test and capture element screenshots to enrich documentation
Как установить скилл enrich-qa-test?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл enrich-qa-test запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic