/ui-testing:buggyfrom ui-testing
Writes click-by-click UI test cases for a tracker ticket in a rigorous senior-QA house style and creates them as Test Case work items in Azure DevOps, linked to the source ticket. Use this skill whenever the user asks to write, draft, generate, or create test cases for a ticket, defect, bug, or user story, or mentions a work item ID together with testing, a Test Plan or Suite, test steps, expected/actual results, or QA verification. Trigger it even on a bare "write tests for #1001" or "I need test cases for this story", and when the user pastes a ticket description or flow doc and asks how to test it.
Ships in ui-testing. 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.
Read when SKILL.md points to them.
Write test cases the way a senior QA analyst writes them: precise, behavior-driven, no ceremony. Then create them as Test Case work items in Azure DevOps and link them to the source ticket.
Read references/workspace-profile.md, then load .claude/workspace-profile.json from the user's project. This skill needs:
tracker.*, boards.delivery, boards.support, workItemTypes.testCase, identity, environments, clientIdFormat, product.name, product.modules, and specDocs (optional).
If any are missing, run discovery for those keys only, confirm with the user, save, then continue. Every org fact below comes from the profile; nothing is assumed.
tracker.org, tracker.project, tracker.projectId).boards.support.areaPath: production defects) and the delivery board (boards.delivery.areaPath: sprint/feature work).testPlan.planId / testPlan.suiteId from the profile; if empty, ask the user once and offer to save them.identity.displayName, identity.email). Asked, never guessed.ado, @azure-devops/mcp 2.11.0): the org short name comes from the ADO_ORG environment variable and sign-in happens in the browser on first use (no PAT or token). Tools are named here by their bare name; they appear as mcp__plugin_ui-testing_ado__<tool>, or mcp__ado__<tool> if the user registered their own ado server.specDocs.path): a folder of linked Markdown, such as README.md (index/mindmap), the rules file (specDocs.rulesFile, e.g. RULES.md, the business-rule registry), modules/*.md, integrations/*.md. These are the source of truth for behavior; read the relevant module file, its linked neighbors and the cited rule anchors before writing.wit_work_item tool (action get, id, expand: "All") or have the user paste it. Extract: the client/environment, the feature touched, expected vs actual behavior, and any acceptance criteria.Touches: links, and collect every cited rule from the rules file. If no docs, ask the user for the flow or work from the ticket + domain knowledge.testPlan.planId / testPlan.suiteId) — see "Adding to a Test Suite (optional)". Skip it otherwise.Each test case is one work item. Title and steps follow the house style.
Title: ALWAYS [Module] - [Feature] - Verify that <expected behavior>
The third segment is phrased as "Verify that..." describing the specific behavior under test. Examples (illustrative; use the product's real module names from product.modules):
Inbox - Queues - Verify that user is able to switch to the newly created queue.Inbox - Chat - Verify that user is unable to send a message after the 24-hour window.Contacts - Merge - Verify that a chat contact can be merged into an existing PARTNER-A contact.Mirror the client-bracket convention (clientIdFormat) when the ticket is client-specific: [Module] - [Feature] - Client Name [ID] - Verify that ..., e.g. Contoso Outdoor [10001].
Steps: childlike granularity is mandatory. Write every single click, navigation, and field entry as its own step. Never collapse "Navigate to Settings → Inbox tab → Add Queue" into one step; that's three steps. Assume the tester knows nothing and must be guided action-by-action. If a flow has 10 discrete actions, there are 10 steps. The final step is always the verification step ("Verify that ...").
Every step has its own explicit Expected Result. No step is left without one. The expected result states exactly what the system shows or does in response to that one action: the screen that loads, the button that appears, the field that becomes editable, the message that displays.
ALWAYS use this exact step shape:
Preconditions: Client ID: <id> | Environment: <one of environments, e.g. QA/Staging/Production> | <any setup state>
| # | Action | Expected Result |
|---|--------|-----------------|
| 1 | Login to the application | User is logged in and the dashboard loads |
| 2 | Navigate to Settings | Settings page opens |
| 3 | Move to the Inbox tab | Inbox settings tab is displayed |
| 4 | Click on the Add Queue button | Add Queue form/drawer opens |
| 5 | Add at least one team member | Team member is added to the queue |
| 6 | Save the queue by clicking the SAVE button | Queue is saved and appears in the queue list |
| 7 | Navigate to the Inbox module | Inbox module opens |
| 8 | Click the "Select Queue" dropdown | Dropdown expands showing the list of queues |
| 9 | Click the newly created queue option | Queue is selected |
| 10 | Verify that the user switched to the queue successfully | The selected queue's conversations load and the active queue reflects the new selection |
Match the depth of the example above: one atomic action per row, each with a concrete expected result, ending on an explicit "Verify that ..." row. "Login to the application" may name the product instead (product.name).
Actual Result: leave a labeled line Actual Result: for the tester to fill during execution (actual results are recorded at run time, not at authoring time).
For any ticket, produce cases across these axes; skip an axis only if it genuinely doesn't apply:
Touches: link, a case that confirms the connected flow still behaves (e.g. a Payments change that must not break Inbox).Create each test case as a work item:
Use the Azure DevOps server's wit_work_item_write tool, action create. Every field goes in fields as
{ name, value } (string values). Leave format off the Steps field so the XML is written verbatim:
wit_work_item_write
action: "create"
project: "<tracker.project>"
workItemType: "Test Case" # workItemTypes.testCase
fields:
- { name: "System.Title", value: "<title per format above>" }
- { name: "System.AreaPath", value: "<boards.support.areaPath or boards.delivery.areaPath, matching the source ticket>" }
- { name: "System.AssignedTo", value: "<identity.email>" } # unless told otherwise
- { name: "Microsoft.VSTS.TCM.Steps", value: "<steps as HTML, see references/ado-steps-format.md>" }
- { name: "System.Tags", value: "<carry over relevant tags from the source ticket, e.g. QA; <feature tag>; <environment>>" }
Don't use testplan_test_case_write for this: it builds its own Steps markup from a pipe-delimited string, which would not match the house format.
The Steps field uses a specific ADO XML/HTML format, not plain text or a Markdown table. Read references/ado-steps-format.md before writing the Steps field; getting the markup right is what makes steps render as proper test steps in ADO.
Then link to the source ticket:
wit_work_item_link_write
action: "link"
project: "<tracker.project>"
updates:
- { id: <new test case ID>, linkToId: <source ticket ID>, type: "tests" } # Microsoft.VSTS.Common.TestedBy-Reverse: test case tests the ticket
If that relation type is rejected, fall back to type: "related" (System.LinkTypes.Related) and tell the user the link is "Related" rather than "Tested By".
Off by default: the standard result is the list of new IDs for the user to add in the Test Plans UI. Only when the user asks, or says yes when you offer, show the plan, suite and IDs you will add, and after their OK call:
testplan_test_suite_write
action: "add_test_cases"
project: "<tracker.project>"
planId: <testPlan.planId>
suiteId: <testPlan.suiteId>
testCaseIds: ["<new test case ID>", "..."]
If testPlan is empty, ask for the plan and suite once and offer to save them. Report the result per ID from the response; if the call fails, fall back to the manual UI step.
testplan_test_suite_write, action add_test_cases), but only as the optional, user-approved step above.See references/example-testcases.md for a worked, illustrative example: a ticket → the test cases derived from it in full house style. Read it when you want a concrete model to match.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub shironigun/marketplace --plugin ui-testing