Test scenario design

From makifbaysal/tasktrooper · View interactive version

Test scenario design is an AI agent skill from the GitHub repository makifbaysal/tasktrooper. Use while deriving cases - Given/When/Then and the techniques (partitions, boundaries, decision tables, state transitions) that find the cases the criteria do not state

How to use this skill

Skill file

Test Case Design

Write each case as Given (preconditions), When (action via the real endpoint or UI), Then (the observable result). The Then is the expected field: state it before you run anything, or you will be judging the output against whatever it turns out to be.

Two sources, in this order

  1. What was asked for. At least one case per acceptance criterion, linked with criterion_id.
  2. What it implies. The behaviour a reasonable person expects from the request even though nobody wrote it down. These are the cases with no criterion_id, and they are where defects actually live.

Techniques for finding the implied cases

Sources of "what the request implies"

The acceptance criteria, the human's comments, the analysis spec (list_task_documents — the behaviour statements are oracles, the implementation plan is not), and list_links (dependencies the change touches imply side-effect and failure cases).

Rejecting a case

Rejecting a case is a result, not a deletion. When you work one out and decide it does not apply, record it with status=invalid and say why in notes. The three reasons that recur: it contradicts the stated spec, it is unreachable in this deployment, or it belongs to a different task. A reviewer reading your round has to be able to see that you considered it.

Worked Example

"Users can rename a project (1-80 chars, unique per workspace)":

About 10-12 cases across categories, two of them invalid with reasons.

If an acceptance criterion cannot be tested as written: when there is a concrete choice between two readings, ask_user with the readings as options (qa-verify-before-verdict's blocker triage) and continue testing what you can meanwhile. When it is simply unclear in a way with no concrete reading to offer, reject it via review_criterion with "untestable as written: <why> — needs a sharper criterion" and let the move to need_revision surface it on the card — a comment asking the PM to sharpen it reaches nobody, since the PM is not subscribed to in_qa.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.