agentleFS
bruuuuucebruuuuuce/mana/skills/gui-testbook-authoring/SKILL.md

gui-testbook-authoring

Skill2 starsChanged 4 months agoMITView on GitHub

Converts approved GUI requirements and redacted test context into a reviewable Playwright testbook with preconditions, deterministic assertions, and explicit safety gates.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a reviewable catalog and implementation plan for deterministic browser tests.

    line 38
  2. Distinctive:

    Use after GUI context discovery and before an owner approves executable Playwright scenarios.

    line 42
  3. Distinctive:

    Use the redacted context inventory and acceptance criteria.

    line 46
  4. Distinctive:

    Do not place URLs, secrets, PANs, tokens, or customer data in the catalog.

    line 56
  5. Distinctive:

    Do not author tests that can use production, create irreversible external data, or charge a real payment instrument.

    line 58
  6. Very specific:

    Use templates/gui-testbook.template.yaml.

    line 63
  7. Very specific:

    Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard).

    line 72

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

GUI Testbook Authoring

Purpose

Create a reviewable catalog and implementation plan for deterministic browser tests. The testbook specifies what may run; Playwright code specifies how.

When To Use It

Use after GUI context discovery and before an owner approves executable Playwright scenarios.

Workflow

  1. Use the redacted context inventory and acceptance criteria.
  2. Define one scenario per catalog entry: role, preconditions, test-data references, ordered actions, deterministic assertions, cleanup, and expected artifacts.
  3. Map the scenario to a Playwright spec and config with trace, screenshot, and video enabled. Use locators and semantic assertions, not LLM visual guesses.
  4. Set every proposed entry to approved: false and needs_environment until its environment, data reset, and owner approval are verified.

Rules

  • Do not place URLs, secrets, PANs, tokens, or customer data in the catalog.
  • Reference secrets only through an environment variable name or vault key.
  • Do not author tests that can use production, create irreversible external data, or charge a real payment instrument.
  • Testbook learning may propose a diff; it never self-approves an entry.

Outputs

Use templates/gui-testbook.template.yaml. Emit an implementation plan and the approval questions separately from the executable catalog.

Decision Rules

  • blocked: target isolation, test-only data, or required reset evidence is absent.
  • warning: an assertion is visual-only, unstable, or lacks a deterministic locator.
  • info: a proposed entry is complete but remains unapproved.

Output Standard

Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard). Use compact caveman mode and a context budget: retain scenarios, references, approval gates, and gaps, not documentation transcripts or secrets.

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.