Agent-skills-standard quality-engineering-zephyr-test-generation
Generate Zephyr test cases from Jira stories: parse AC, identify platform and market, impact-analyze existing TCs (update vs create new), draft test cases with correct naming/metadata/preconditions, and link back via Create Test Case Issue Link. Use when converting a Jira story into Zephyr TCs, or when requirement changes require updating existing TCs rather than creating duplicates. (triggers: **/user_story.md, generate test cases, zephyr, impact analysis, create test case)
install
source · Clone the upstream repo
git clone https://github.com/HoangNguyen0403/agent-skills-standard
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/HoangNguyen0403/agent-skills-standard "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/quality-engineering/quality-engineering-zephyr-test-generation" ~/.claude/skills/hoangnguyen0403-agent-skills-standard-quality-engineering-zephyr-test-generation && rm -rf "$T"
manifest:
skills/quality-engineering/quality-engineering-zephyr-test-generation/SKILL.mdsource content
Zephyr Test Generation Standards
Priority: P1 (HIGH)
Workflow: Jira → Zephyr
- Analyze Requirements:
- Extract: Summary, ACs, Platform per AC row, Market, Components.
- Fetch Jira with
— HTML authoritative for platform colors:?expand=renderedFields
= Web ·#00B8D9
= Mobile ·#36B37E
= Web+Mobile#FF991F - See Actor/Permission Matrix for role/market logic.
- Impact Analysis (run before any TC creation)
- Step — Direct Lookup: Call
with Jira issue key (e.g.,Get Issue Link Test Cases
).EZRX-42302 - Step B — Supplemental: If Step 0, search by
and[Module]
keywords + check sibling issue links.[Screen] - See Discovery Protocol for full chain.
- Map each AC to coverage status:
- Covered → ask user: skip or update to current format?
- Partial → always propose NEW TC.
- Not Covered → always create NEW TC.
- Draft Artifact:
- Delete any existing
before writing.zephyr_test_plan.md - Follow 4-section format in TC Format Reference exactly.
- After writing: read back file and print full content in chat so user can review without opening it.
- Ask for: review approval, handling of Covered ACs, and Zephyr Folder ID.
- Create in Zephyr (after explicit user approval)
(withCreate Test Case
included — no separate Update needed) →customFields
→Create Test Case StepsCreate Test Case Issue Link- For updates to existing TCs: fetch current steps via
, show before/after diff, wait for explicit approval, thenGet Test Case Steps
.Update Test Case
Platform Rules
| AC row | Action |
|---|---|
Single row | ONE TC, Platform = "Web and Mobile", no platform prefix in name |
| Two rows same behavior, different platforms | TWO TCs with / prefix — never merge |
Naming & Filing
- Name: Prefix
/Web_
only when platform-exclusive; omit prefix for Web and Mobile.Mobile_ - Folder: Use exact Folder ID provided by user or specified in Technical Impact.
Role Mapping Rule
- CRITICAL: If Acceptance Criteria uses generic terms like "user", "buyer", or "customer" in ordering/checkout context, it MUST mapped to ALL purchasing roles:
. not default to["Client user", "Client admin", "Internal sales rep", "External sales rep"]
.Client user
API Critical Notes (SmartBear MCP — @smartbear/smartbear-mcp
)
@smartbear/smartbear-mcp
requiresCreate Test Case
and supportsprojectKey="EZRX"
directly (no separate Update needed for Roles/Platform).customFields
usesCreate Test Case Steps
+testCaseKey
(APPEND/OVERWRITE) +mode
.items[]
usesCreate Test Case Issue Link
+testCaseKey
(numeric Jira issue ID — get from ticket'sissueId
field, not key string).id
usesGet Issue Link Test Cases
(e.g.,issueKey
) — returns linked TC keys directly.EZRX-42302
usesUpdate Test Case
— only needed when modifying existing TCs, not for new creation.testCaseKey
Anti-Patterns
- No prefix omission: TC name sent to Zephyr API must include
orWeb_
prefix for platform-exclusive TCs — copy verbatim from artifact draft; omit prefix only when Platform = "Web and Mobile".Mobile_ - No Draft skip: Always set status = Draft; never auto-approve.
- No flat folderId: Use
in all PUT payloads."folder": {"id": X} - No WEB+MOBILE split: One AC row = one TC with Platform "Web and Mobile".
- No platform merge: Two AC rows, different platforms = two separate TCs.
- No silent update: Show before/after diff; wait for explicit approval.
- No lookup skip: Always run Step direct link lookup before supplemental search.
- No stale artifact: Delete existing
before each run.zephyr_test_plan.md - No coverage skip: Coverage Analysis table must open every artifact.
- No ghost update: Update Zephyr TC whenever matching code changes.
- No vague steps: Use specific observable outcomes — e.g.,
→"System works"
."Banner 'Success' is visible"