agentleFS
godhiraj-codegodhiraj-code/greenbuild-plugin/skills/framework-scaffolder/SKILL.md

framework-scaffolder

Skill1 starsChanged 28 days agoMITView on GitHub

Scaffold or refactor a web UI test framework in Playwright, Selenium 4, Cypress, or WebdriverIO, with page objects, BDD (Cucumber/Behave) if wanted, config/env handling, and Allure reporting.

  • Installs packages

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Ask for the language, framework, BDD yes/no, CI, and reporting.

    line 6

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

Framework scaffolder

  1. Ask for the language, framework, BDD yes/no, CI, and reporting. Default: Playwright + TS, or pytest-playwright for Python teams.
  2. Bootstrap commands:
    • Playwright TS: npm init playwright@latest | Python: pip install pytest-playwright && playwright install --with-deps
    • Selenium 4: pip install selenium pytest (Selenium Manager fetches drivers automatically, so no webdriver-manager is needed) | Java: org.seleniumhq.selenium:selenium-java + TestNG/JUnit 5
    • Cypress: npm i -D cypress && npx cypress open
    • WebdriverIO: npm init wdio@latest .
  3. Layout:
tests/          specs, grouped by feature
pages/          page objects (locators + actions, no asserts)
fixtures/       setup/teardown, auth state, data factories
config/         env files: base URL, timeouts (no secrets)
utils/          api clients, helpers
reports/
  1. Page objects: expose user intent (login(user)), not raw clicks. Return the next page or component. Keep assertions in tests.
  2. Auth: log in once through the API or UI and reuse the state. Playwright: storageState in a setup project. Selenium: inject cookies.
  3. BDD (only if business people read the specs): Cucumber (JS/Java) or Behave (pip install behave; features/*.feature + features/steps/; run behave). Keep steps thin, have them call page objects, and avoid UI wording in Gherkin.
  4. Reporting with Allure:
    • pytest: pip install allure-pytest, then pytest --alluredir=allure-results, then allure serve allure-results
    • Playwright: npm i -D allure-playwright, then reporter ['allure-playwright']
    • Attach screenshots, traces and logs on failure.
  5. Config: retries are 0 locally and 1–2 in CI, but report them. Run in parallel. Tag smoke vs regression (@smoke, -m smoke, --grep @smoke).
  6. Deliver the scaffold as files plus a README with run commands, then offer a CI job (see ci-cd-and-test-data).

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.