agentleFS
MahmulPMahmulP/qa-kit/skills/qa-test-cases/SKILL.md

qa-test-cases

Skill0 starsChanged 18 days agoMITView on GitHub

Design or update the test-case catalog for a page or feature (a markdown catalog next to its specs) - scenarios, steps, expected results derived from tickets, business rules, API contracts and schemas, automation status, and a findings section for bugs. Use before writing specs, when a ticket arrives, when requirements change, or when asked what should be tested.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. keber/qa-framework★ 9same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Follow the project's catalog template if it has one (check conventions.md and the rule docs).

    line 20
  2. Very specific:

    Write in the language the project's catalogs already use.

    line 22
  3. Very specific:

    Keep a ## Findings section (or the project's own heading for it in its language): numbered, each with test ID, evidence (file:line, run …

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Design test cases

The catalog says what should be tested, automated or not. Specs say how. The catalog is written first and kept where the project's layout puts it (usually next to the specs).

1. Recall and locate

qa-kit memory search "<page or module>"
qa-kit cases --page <page folder or route fragment>   # existing rows, status, linked specs
qa-kit gaps --page <fragment>                          # todo rows, drift
qa-kit config get catalog                              # file names, ID pattern, languages

Follow the project's catalog template if it has one (check conventions.md and the rule docs). Otherwise use references/catalog-template.md. Write in the language the project's catalogs already use; qa-kit reads column headers and status words through language packs (lib/vocab.mjs), and a team can add its own words with qa-kit config set catalog.vocabulary '{"todo":["…"]}'.

2. Collect expectations, in this priority

  1. Ticket / acceptance criteria / business rules (ask the user for the ticket ID, or use a tracker MCP if available).
  2. API contract: request/response shapes, required fields, enum values, error codes.
  3. Validation schema and form attributes: required, length, format, ranges.
  4. UI copy in components: titles, labels, messages (assert on these words).
  5. Permissions: which roles see which buttons.

Where the code disagrees with the requirement, the requirement is the expected result and the difference is a finding (with file:line). Record open questions for the BA/PO instead of guessing.

3. Write the rows

  • Group by tab/section. One short uppercase prefix per page or section (INV, CHK). New IDs: qa-kit next-id <PREFIX>. Never renumber or reuse an ID.
  • Columns: ID | Scenario | Steps | Expected result | Automation.
  • Expected results are observable: exact text, element state, API status, row present/absent. "Works correctly" is not an expected result.
  • Automation column: spec / spec @smoke / spec <mutation tag> (or the file name), not automated, manual (reason), or the same words in the catalog's language. Mark known failures, e.g. spec, **failing: bug** (Finding 2) or spec, **suspected fail** (Finding 3).

Coverage checklist per page type (keep what applies; add the project's own mandatory checks from conventions.md):

Page typeCases
List / indexloads with title and columns (smoke), search hit, search miss/empty state, pagination, sort, filters, export, row actions per permission
Create / edit formopen/cancel, required fields, length/format/range limits, enum options, duplicate key rejected, success message + row visible, edit keeps immutable fields locked
Deletecancel keeps row, confirm removes row, delete blocked when referenced
Detail / read-onlyall fields shown, nothing editable
Workflow / statusallowed transitions, forbidden transitions, who may act
Auth / permissionredirect or "access denied" for roles without permission

Tests that create/update/delete data carry the project's mutation tag (qa-kit config get e2e.mutationTags) and clean up after themselves; write that into the steps.

4. Findings section

Keep a ## Findings section (or the project's own heading for it in its language): numbered, each with test ID, evidence (file:line, run date, environment), and status (suspected from code reading vs confirmed by a run).

5. Sync and learn

qa-kit index && qa-kit gaps --page <fragment>     # no new drift on this page
qa-kit memory add --kind decision --scope <page dir> "<clarification agreed with BA/QA>"
qa-kit memory add --kind bug --scope <page dir> "<ID>: <finding>, evidence <file:line>"

Then continue with qa-playwright-author if the user wants the cases automated.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.