agentleFS
AndreiBanu1AndreiBanu1/playwright-suite-skills/skills/clarify-scope/SKILL.md

clarify-scope

Skill1 starsChanged 3 months agoMITView on GitHub

Use before writing or planning any test when the ask is not yet precise — "add tests for checkout", "cover the new endpoint", "scope this first". Resolves the open decisions one question at a time, each with a recommended default, looking up in the repo anything that is a fact rather than a choice, and ends in a written brief the user confirms before any code is generated. Skip it when the request is already unambiguous.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Skip it: when there is one obvious behaviour, one obvious layer, and an existing pattern to copy.

    line 24
  2. Distinctive:

    One question, then wait: Not two, not a numbered list.

    line 29
  3. Distinctive:

    Nothing gets built until the brief is confirmed: No specs, no models, no files.

    line 40
  4. Distinctive:

    Three questions is usually enough: If you are past six, the ask is too big — propose splitting it rather than continuing.

    line 42
  5. Distinctive:

    Do not write code, files, or a plan document during this skill.

    line 93
  6. Distinctive:

    Do not ask a question whose answer is in the repo.

    line 94
  7. Distinctive:

    Do not accept "test everything" as scope.

    line 95
  8. Distinctive:

    Do not smuggle in a decision the user did not make.

    line 97
  9. Distinctive:

    If the answers reveal the test cannot be written yet — no environment, no data, no hook — say that now rather than after the work.

    line 99

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Skill: clarify-scope

Turn a vague testing request into a brief precise enough to build from.

"Add tests for checkout" contains at least eight unresolved decisions. Answering them silently means building the wrong thing confidently; asking all eight at once is a form to fill in, which people abandon. So: one question at a time, each carrying a recommended answer, and every question that is really a lookup gets looked up instead of asked.

The one-question-at-a-time interrogation pattern here is adapted from Matt Pocock's "grilling" technique, narrowed to test-automation scoping.

When to use

  • Real forks are open: which layer, which environment, whether negative paths are in scope.
  • The request names a feature rather than a behaviour.
  • The work is large enough that building the wrong thing costs more than the conversation.

Skip it when there is one obvious behaviour, one obvious layer, and an existing pattern to copy. Interrogating someone who asked for a clearly specified test is its own kind of failure.

The rules

  1. One question, then wait. Not two, not a numbered list. Absorb the answer before forming the next question — later questions usually change shape based on earlier ones.
  2. Look up facts; ask only about decisions. Whether a model already exists for that screen, what the environments are called, which data file holds the credentials, what the neighbouring specs do — all discoverable. Read the repo. Asking a user something the repo already says wastes their attention and reads as inattentive.
  3. Every question carries your recommendation, first. "I'd default to a browser spec on the development environment, since that is what the neighbouring specs use — agree?" is answerable with one word. A bare open question makes the user do your thinking.
  4. Depth-first. Resolve each answer's dependents before moving sideways. "Request layer only" deletes every browser, device and page-object question below it.
  5. Nothing gets built until the brief is confirmed. No specs, no models, no files. The brief is the deliverable of this skill.
  6. Three questions is usually enough. If you are past six, the ask is too big — propose splitting it rather than continuing.

The decision tree

Adapt to the request; skip what is already settled.

  1. Restate the ask in one line and confirm you have it right. Roughly a third of the time this alone surfaces the misunderstanding, and everything after it is cheaper.
  2. Behaviour, not feature. What specifically should be true? "Checkout works" is a feature; "an order with an expired card is rejected and the cart is preserved" is a test. Push until you have the second kind. This is the highest-value question in the tree.
  3. Layer. Browser, request, database, or component — from the groups the profile records. This gates everything below it. Recommend the cheapest layer that can actually observe the behaviour: a rule enforced by an endpoint does not need a browser to prove it.
  4. Environment, and whether the target must be reachable now. Recommend the repo's default.
  5. Device or browser (browser layer only). Recommend the repo's default; a matrix run is a deliberate ask, not an assumption.
  6. Paths. Happy path only, or the failure cases too — and if so, which. Recommend including one negative case: it is usually where the actual bug lives, and it costs a fraction of the setup you are already writing.
  7. Data. What state must exist first, where the values come from, and who cleans up. Look up how the repo does this before asking, then confirm the plan rather than requesting it.
  8. Reuse. Which models, clients, or schemas already cover this — look this up, never ask. Report what you found and what will be net-new.

The brief

State it back in this shape and wait for an explicit yes:

Brief
  Behaviour:    <the one thing that should be true>
  Layer:        <browser | request | database | component>
  Target:       <environment / project>
  Paths:        <happy: … · negative: …>
  Reuse:        <what exists and will be extended>
  New:          <what will be created>
  Data:         <source · setup · teardown>
  Out of scope: <what you are deliberately not covering>
  Sequence:     <which skills, in order>

Out of scope matters as much as the rest. It is what stops the same request coming back as "but it doesn't cover…".

Then ask for confirmation, once. On yes, hand off to the sequence. On a correction, update the brief and re-state it — do not start building from a half-agreed version.

Guardrails

  • Do not write code, files, or a plan document during this skill. Its output is the brief.
  • Do not ask a question whose answer is in the repo.
  • Do not accept "test everything" as scope. Offer the two or three highest-value behaviours and let the user pick — an unbounded scope produces a suite nobody maintains.
  • Do not smuggle in a decision the user did not make. If they never chose an environment, the brief says so, and you ask.
  • If the answers reveal the test cannot be written yet — no environment, no data, no hook — say that now rather than after the work.

Done when

The brief is written, confirmed verbatim by the user, and the next skill in the sequence has been named.

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.