From patrol-qa-automation
Generate structured, exhaustive mobile UI test cases from Jira tickets, PRDs, Figma designs, or feature descriptions. Focuses exclusively on visual validation and user interactions on mobile apps (Android/iOS). Does NOT generate API, web, or backend test cases. Outputs as Jira ticket comments and consolidated CSV in /test-cases/.
How this skill is triggered — by the user, by Claude, or both
Slash command
/patrol-qa-automation:create-test-casesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generates mobile UI test cases for automated visual and interaction
Generates mobile UI test cases for automated visual and interaction testing, scoped to a specific Jira task, PRD, Figma design, or feature description.
ONLY generate test cases for mobile app UI.
When the user provides a Jira ticket URL:
mcp_atlassian_getJiraIssue.mcp_atlassian_getConfluencePage.When the user provides a Confluence page URL or pastes PRD content:
mcp_atlassian_getConfluencePage if URL.When the user provides a Figma file/frame URL:
mcp_figma_dev_mod_get_screenshot.mcp_figma_dev_mod_get_design_context.When the user describes the feature or task directly:
Input (Jira / PRD / Figma / Text)
│
▼
Fetch & Parse Context
│
▼
Identify Test Scope
- Features & requirements
- UI states from Figma
- User roles & permissions
- Input boundaries & edge cases
- Error & failure scenarios
│
▼
Generate Test Cases
- Happy paths
- Negative / error paths
- Edge cases & boundaries
- Visual state assertions
- Platform-specific (if any)
│
▼
Output: Jira Comment + CSV File
Each test case must include:
| Field | Description |
|---|---|
| ID | Sequential (TC001, TC002, ...) |
| Title | User able to ... (happy) / User not able to ... (negative) |
| Preconditions | Device, OS version, user role, screen context, navigation state |
| Steps | Numbered mobile UI actions (tap, swipe, scroll, type, navigate) |
| Expected Result | Observable visual outcome (element visible/hidden, text, screen state) |
| Category | Smoke or Regression |
| Priority | P0 (Critical), P1 (Important), P2 (Nice-to-have) |
| Tags | UI, Visual, Navigation, Interaction, Negative, Boundary, Permission, Offline, Platform |
Smoke — Assign when ALL conditions are met:
Regression — Assign for everything else:
Post via mcp_atlassian_addCommentToJiraIssue with
contentFormat: markdown:
## Test Cases: {Ticket Title}
*Auto-generated by qa-test-case-generator | Source: {source}*
### Feature Area: [Name]
#### Smoke Tests (Happy Path)
| ID | Title | Preconditions | Steps | Expected Result | Category | Priority | Tags |
|----|-------|---------------|-------|-----------------|----------|----------|------|
| TC001 | User able to ... | - Precondition | 1. Step 1\n2. Step 2 | Expected behavior | Smoke | P0 | UI |
#### Regression Tests
| ID | Title | Preconditions | Steps | Expected Result | Category | Priority | Tags |
|----|-------|---------------|-------|-----------------|----------|----------|------|
| TC003 | User not able to ... | - Precondition | 1. Step 1\n2. Step 2 | Error state visible | Regression | P1 | Negative |
Directory: /test-cases/
Full CSV: {epic_key}_{short_desc}_test_cases.csv
Smoke CSV: {epic_key}_{short_desc}_smoke_tests.csv
Columns (both files):
Ticket,Ticket Title,Feature Area,TC ID,Title,Preconditions,Steps,Expected Result,Category,Priority,Tags
Rules:
IMPORTANT — Direct file writing only:
Write CSV content directly using create_file. Do NOT create Python scripts,
shell scripts, or any helper programs to generate the output. The agent
has all the data needed and must write the files itself in a single step.
For every happy path, generate:
Prioritize assertions on:
When Figma designs are available:
| Priority | Criteria |
|---|---|
| P0 | Core functionality, data integrity, security, blocking flows |
| P1 | Important UX, secondary features, non-blocking validation |
| P2 | Cosmetic, extreme edge cases, nice-to-have behaviors |
npx claudepluginhub iqbal-mekari/claude-plugins --plugin patrol-qa-automationGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.