本文へ移動
cccskills
無料GitHub で公開

e2e

Run a basic E2E behavioral probe — one primary scenario smoke test for the grooming step.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md4.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

E2E SKILL — Basic tier

Config

This skill targets wp-media/wp-rocket:

  • E2E_URL = http://localhost:8888
  • E2E_BOOT = bash bin/dev-up.sh
  • E2E_SETTINGS = http://localhost:8888/wp-admin/options-general.php?page=wprocket

The local WordPress environment is at http://localhost:8888 (admin / password). Boot or restart it with bash bin/dev-up.sh.

This skill provides a single behavioral probe using the Playwright MCP and curl. WP Rocket does not commit Playwright specs — this skill never writes, commits, or publishes test artifacts. It exists only to verify one primary scenario quickly.


Basic tier — behavioral probe

Purpose: behavioral verification and smoke tests. Fast enough to fit inside a planning agent's execution window.

Invoker:

  • grooming-agent — verify behavioral assumptions about the current system before writing the spec. Use to confirm: does the current feature behave as described in the issue? What does the current API or AJAX endpoint return for the scenario being changed?

Anti-rationalization table

You'll be tempted to sayWhy you can't
"The environment probably isn't up, I'll skip"Run bash bin/dev-up.sh. It's idempotent. If it fails, log SKIP with the reason — do not silently omit the step.
"The change is backend-only, no need to smoke it"The primary happy path must be verified. A backend change with no observable behavior change still needs a confirming assertion.
"I already read the code, I know it works""Seems right" never closes a task. Run the scenario.
"One scenario is too slow for this stage"Basic tier is exactly one primary scenario. The cost is acceptable.

Process

  1. Boot the environment (idempotent — safe to run if already up):

    bash bin/dev-up.sh
    

    If the script exits non-zero, set status: "SKIP", note the reason, and do not block the pipeline.

  2. Run the primary happy path scenario from the spec or grooming plan.

    Backend / AJAX / REST:

    # Public REST or AJAX
    curl -s -X POST http://localhost:8888/wp-admin/admin-ajax.php \
      -H "Cookie: $(cat .wp-session-cookie 2>/dev/null)" \
      -d 'action=<action>&nonce=...'
    
    # Cache headers
    curl -sI http://localhost:8888/ | grep -E '(x-cache|cf-cache)'
    

    Browser (settings page, dashboard notices, interactive UI): Use the Playwright MCP directly for the basic-tier smoke:

    mcp__playwright__navigate({ url: "http://localhost:8888/wp-login.php" })
    # login
    mcp__playwright__fill({ selector: "#user_login", value: "admin" })
    mcp__playwright__fill({ selector: "#user_pass", value: "password" })
    mcp__playwright__click({ selector: "#wp-submit" })
    # primary scenario
    mcp__playwright__navigate({ url: "http://localhost:8888/wp-admin/options-general.php?page=wprocket" })
    mcp__playwright__snapshot({})
    # Inspect snapshot output to confirm expected element/text is present
    

    Take at most 1–2 screenshots if helpful, but do not publish them.

  3. Report:

    {
      "status": "PASS|FAIL|SKIP",
      "scenarios_tested": ["Settings page loads without errors after enabling X option"],
      "details": "Logged in as admin, navigated to the WP Rocket settings page, confirmed no JS console errors and X toggle present"
    }
    

    SKIP: bash bin/dev-up.sh failed or environment unreachable. Record reason. Do not block the pipeline.

Boundaries

  • Do: verify the one primary scenario from the spec or grooming plan
  • Do: probe current-system behavior (grooming-agent only) when an assumption needs verification
  • Do not: cover all acceptance criteria — that belongs to the qa-engineer + e2e-qa-tester path
  • Do not: write, commit, or publish Playwright specs — WP Rocket does not commit Playwright specs
  • Do not: publish screenshots

Project-specific notes

  • The boot script bash bin/dev-up.sh is idempotent. Always run it before testing — don't pre-check whether the environment is up. Seed data with bash bin/dev-seed.sh if needed.
  • Admin credentials: admin / password.
  • Settings page URL: http://localhost:8888/wp-admin/options-general.php?page=wprocket.
  • Plugin activation check:
    wp plugin list --name=wp-rocket
    
  • The basic tier never writes Playwright spec files and is invoked by grooming-agent only. Implementation agents (backend-agent, frontend-agent) do not invoke the e2e skill — full E2E validation belongs to the qa-engineer + e2e-qa-tester tier.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

challenge

無料

Adversarially review a grooming spec before implementation starts. Finds hidden risks, unvalidated assumptions, and missing dependencies. Standalone entry point for the challenger agent.

日本語の概要は準備中です。原文の説明を表示しています。

wp-media/wp-rocket7672026年10月14日 更新

Check a change against WordPress.org plugin rules and PHPCS standards.

日本語の概要は準備中です。原文の説明を表示しています。

wp-media/wp-rocket7672026年10月14日 更新

docs

無料

Update developer-facing documentation to reflect code changes on the current branch. Runs as an inline skill inside backend-agent and frontend-agent (step 2.5 of the internal sequence) after implementation and before DOD. Receives the explicit list of changed files from the implementation agent. No-op if no public API changes occurred.

日本語の概要は準備中です。原文の説明を表示しています。

wp-media/wp-rocket7672026年10月14日 更新

dod

無料

Run the Definition of Done checklist for the current wp-rocket branch and report PASS/WARN/FAIL with evidence. Two modes: layer 1 (self-correction inside backend-agent / frontend-agent — resolves FAILs before handoff) and layer 2 (independent orchestrator gate — fresh perspective after handoff). Pass layer: "1" or layer: "2" when invoking.

日本語の概要は準備中です。原文の説明を表示しています。

wp-media/wp-rocket7672026年10月14日 更新

groom

無料

Groom a single GitHub issue — produce an implementation spec and optionally post the grooming summary as a GitHub comment. Standalone entry point for the grooming-agent.

日本語の概要は準備中です。原文の説明を表示しています。

wp-media/wp-rocket7672026年10月14日 更新

Work on a GitHub issue by number for wp-media/wp-rocket. Fetches the issue and hands control to the orchestrator skill (running inline in this conversation), which manages grooming, spec review, implementation, lead review, CI, and QA end-to-end.

日本語の概要は準備中です。原文の説明を表示しています。

wp-media/wp-rocket7672026年10月14日 更新

wp-media のスキルをすべて見る

このスキルの問題を報告する