agentleFS
sumithrsumithr/sumo-qa/skills/sumo-qa-finding-test-data/SKILL.md

sumo-qa-finding-test-data

Skill7 starsChanged 40 days agoApache-2.0View on GitHub

Use after sumo-qa-deciding-approach routes here, when the user asks about test data — what data to test X, find a known-good record, validate an entry, register new known-good data. Routes between the explain, find, validate and register test-data tools.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    For explain: call the tool. Return the requirements as text in natural English.

    line 41
  2. Distinctive:

    For find: call the tool with the gathered criteria.

    line 42
  3. Very specific:

    5a (from find or direct): call sumo_qa_validate_test_data against the source system in this turn.

    line 44

≈ “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

Finding test data

Output discipline (mandatory)

Inherits the global discipline from using-sumo-qa: output discipline (never surface internal taxonomy labels — say "behaviour change in pricing", not "Classification: business_logic_change"), output economy (spend output on findings not framing; no preamble or self-narration; one question per turn; no closing pleasantries), knowledge authority hierarchy, internal scaffolding stays internal, and specialty-tool fit.

The Iron Law

STALE IS A DEFECT. NEVER INVENT ENTRIES NOT IN THE CATALOGUE.

A catalogued entry not re-validated against the source system in this turn is no better than an invented one — validation is the proof, not ceremony.

find_test_data MUST be immediately followed by validate_test_data against the returned record IN THE SAME TURN before the record is considered usable.

When to Use

User intents that trigger this skill:

  • "what test data do I need for X"
  • "find me a known-good record for X"
  • "is this record / account / fixture still valid"
  • "save this as known-good test data"
  • "I need a locked account for the failed-login test"
  • "I need a pending invoice for the due-date boundary test"

Checklist

Track these as an ordered work list (use the host's task primitive if available, otherwise a numbered inline tracker) and complete in order. Steps 1–2 are AI-only homework (route the request, gather inputs from prior conversation). The user's confirmation gate only applies to register (step 5b) — writing to the shared catalogue is a side effect that should always pause for confirmation.

  1. Pick the route (no user question — derive from intent). The four routes are internal dispatch data, NOT a label to echo at the user:
    • Explain requirements: "what data do I need" → sumo_qa_explain_test_data_requirements
    • Find: "find me a record" → sumo_qa_find_test_data
    • Validate: "is this still valid" → sumo_qa_validate_test_data
    • Register: "save this as known-good" → sumo_qa_register_known_good_test_data
  2. Gather inputs from intent + prior conversation (no user question if the conversation has them). Question, environment, domain, criteria, entry path — pull from what's already been said. Only ask if a genuinely required field is missing, and ask ONCE.
  3. For explain: call the tool. Return the requirements as text in natural English.
  4. For find: call the tool with the gathered criteria. If matches: pipe each into validate (step 5a). If no matches: say so explicitly — do NOT invent and do NOT silently broaden the criteria.
  5. For validate:
    • 5a (from find or direct): call sumo_qa_validate_test_data against the source system in this turn. A cached or memorised result is not fresh. Report state with timestamp + the validation evidence.
    • 5b (register): confirm with the user before writing to the catalogue. Show the entry, the validation evidence, and ask: "Register this as known-good?" Only write on explicit yes. Arg shape: call sumo_qa_register_known_good_test_data(entry={...}) with entry as a literal dict (id, environment, domain, scenario_tags, known_valid_for, constraints, owner, last_validated_at, confidence, source, notes). Not a YAML string. The tool docstring has a complete example.
  6. If an entry fails validation: mark it stale, surface the failure to the user, do NOT silently substitute another entry. The user decides whether to find an alternative or register a new one.

Process Flow

See the Checklist above — that's the flow.

Red Flags

ThoughtReality
"I'll just make up a SKU that probably works"Iron Law violated. Catalogue entries only.
"Validation is expensive — assume it's still good"Stale is a defect. Always validate against the source system in this turn, especially for shared catalogues.
"User said 'find me one' — I'll skip validation"Validate. The whole point of the catalogue is freshness.
"I'll just use the find result without validating"Snapshots go stale within minutes in shared staging. Validate every find before quoting the record as test data.
"Register this as known-good without testing it first"Don't. Register only after the user has confirmed the entry was used successfully — and confirm again before writing to the catalogue.
"If no entry matches, I'll fabricate one"Surface the gap. The user might need to register a new entry — let them decide.
"Found entry failed validation — let me silently grab the next one"No. Surface the failure to the user with the entry that went stale; let them pick the alternative. Silent substitution hides drift in the catalogue.
"The data I need is a CLI/API's output — I'll hand-write a plausible fixture"No. real-capture fixtures for external-output matchers (sumo_qa_load_techniques): capture the tool's REAL output first (run it, redirect to a file). An invented fixture validates your assumption, not the real contract.

Examples

Good (find → validate → surface)

User: "find me a refund-eligible order for the refund-flow test."

AI (user-facing): "Found ORD-77821 — refund-eligible, validated against staging just now (2026-05-12 09:14). ORD-77900 is in the catalogue too but is now stale (already refunded on 2026-05-10); flagging it so we can register a replacement later."

The user sees the result + freshness evidence, not the dispatch labels.

Bad (inventing)

User: "find me a refund-eligible order."

AI: "Try ORD-12345 — that should work for refund testing."

Inventing an entry. Iron Law violated.

Next skill in the chain

Terminal skill — no next-skill handoff. Returns the data (with freshness evidence) to the caller, which is usually a TDD / review / strengthening flow already mid-conversation.

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.