com um clique
qa-setup
Initialize Sentinel QA testing with Playwright Test Agents integration
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Initialize Sentinel QA testing with Playwright Test Agents integration
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Backlog-scale orchestration on top of /workflow — drives PM items through refine → plan → implement → review → local-merge via role-specialized sub-agents dispatched in parallel waves, each item isolated in its own git worktree. Bare /swarm summarizes state; /swarm <goal> runs the orchestrator; /swarm:setup sets up the charter and .agent-tools/ umbrella; /swarm:continue resumes a paused run.
Capture durable knowledge from any engineering work — debugging solutions, refactors, features, design decisions, reusable patterns — and maintain memory quality so each unit of work compounds the next
Principal workflow entry — resolve portfolio mode (swarm resume/handoff or unit state machine), drive work without inventing path; hard-stop when path is not established
Initialize and maintain planning root (.agent-tools/planning preferred), conventions (tracks, gates, integration), runs ledger scaffold, and shared memory under .agent-tools/memory/ (AGENTS.md memory-link) for the workflow family.
Parent skill for the workflow family — principal session entry is /workflow:continue (also bare /workflow). Horizon mapping, brainstorm, refine, plan, execute, review, audit, compound. Vertical-slice and deliverable-partition modes.
Detect gaps in the canonical skill corpus, propose targeted improvements, validate changes, and present for review. Inventories src/** skill trees; optional run-ledger seeds for process IP gaps.
| name | qa:setup |
| description | Initialize Sentinel QA testing with Playwright Test Agents integration |
| argument-hint | [optional: base URL of the application] |
| user-invocable | true |
Set up NL spec-driven QA testing in the current project using Playwright Test Agents.
$ARGUMENTS
| Input Pattern | Interpretation |
|---|---|
| Empty | Prompt for base URL during config generation |
http://localhost:3000 | Use as the application base URL |
https://staging.example.com | Use as the application base URL |
node --version
If Node.js is not installed, stop and tell the user: "Node.js is required for Sentinel. Install it from https://nodejs.org and try again."
@playwright/test ≥1.56npx playwright --version
If not installed or version is below 1.56, tell the user: "Install @playwright/test ≥1.56: npm install -D @playwright/test" and stop.
Create the required directories:
mkdir -p specs
mkdir -p tests
The directory layout is:
specs/ <- NL spec files (authored by you, versioned)
tests/ <- generated .spec.ts files (generated by Playwright Planner/Generator)
sentinel.config.yaml is the only project-specific source of truth for Sentinel setup. Authoring adapter files for Claude, OpenCode, or other clients are generated boilerplate and must not carry app-specific facts except mechanically templated command paths that cannot be read dynamically at runtime. See @qa (references/authoring-adapters.md) for the full contract.
Use AskUserQuestion to gather configuration values interactively. If $ARGUMENTS contains a URL, use it as the default for the base URL question.
Ask the user:
$ARGUMENTS or http://localhost:3000)Ask the user:
"How does authentication work in your application?"
credentials)If the user chose credentials, ask:
/login)qa-tester@example.com)SENTINEL_QA_PASSWORD). Remind the user: "Never put actual passwords in config files. Set this env var in your shell before running tests."Ask the user:
true)1280x720)If the application uses an HTTP bridge (e.g., Tauri apps tested via bridge shim), ask:
apps/http-bridge/bridge-inject.js)9990)If partitioned, ask for partition configuration:
workspace-pages: 9990, editor-content: 9991)Ask the user which authoring adapters to scaffold. Use the current agent as the default if it is clear from the environment.
Options:
.mcp.json + .claude/agents/ Playwright Test Agents.opencode.json + .opencode/prompts/ Playwright Test Agents.npx playwright init-agents auto-detection (no native --loop support yet; manual role configuration may be needed).Record the selected providers in authoring_adapters.providers. These providers are not part of deterministic test execution; they only enable agent-assisted planning, generation, and healing.
Write sentinel.config.yaml — the full file body is in @qa templates/sentinel-config-template.md (base config, populated bridge example, and per-strategy auth variants). Parameterize it with the gathered values:
{base_url}, {app_name}, {strategy}, {headless}, {width}, {height} from the Phase 3 answers.bridge section — shim_path, port, and (if partitioned) a partitions map of area names to ports — following the template's populated bridge example.auth section, use the template variant matching the chosen strategy. The credentials variant takes {login_url}, {username}, and {password_env} from step 3c; the token and cookie variants carry env-var guidance comments (SENTINEL_AUTH_TOKEN, SENTINEL_SESSION_COOKIE) and need no substitution.authoring_adapters.providers.Authoring adapters are generated boilerplate for agent clients. They should:
sentinel.config.yaml before planning, generating, or healing.app.base_url, auth, playwright.config_path, specs.nl_dir, specs.tests_dir, and specs.seed from the config./qa:setup when config paths/providers change rather than manually edited.npx playwright test must work without any agent adapter.Run Playwright Test Agents init to set up the agent scaffolding:
npx playwright init-agents --loop=claude
npx playwright init-agents --loop=opencode
If the project uses a non-root Playwright config, pass the appropriate --config value from playwright.config_path or adjust the generated MCP command mechanically. Keep project facts in sentinel.config.yaml, not in prompt bodies.
npx playwright init-agents
A native --loop=grok option does not currently exist. The command above will attempt to auto-detect the environment. You may need to configure the agents manually or drive the Planner, Generator, and Healer roles directly through the Grok TUI.
npx playwright init-agents
There is currently no official --loop=factory option. The command above will attempt auto-detection. Manual configuration of the agent roles may be required.
npx playwright init-agents
There is currently no official --loop=codex option (Codex relies on its skills + AGENTS.md + MCP integration for Playwright/Test Agents workflows). The command above will attempt auto-detect or manual role configuration. Use Codex skills for Planner/Generator/Healer equivalents where available.
If this command is not available (older Playwright version or the command is not recognized), manually scaffold the agent configuration:
playwright.config.ts and tests/seed.spec.ts directly.After running init-agents or manual scaffolding, normalize any generated adapter prompts so they contain only generic Playwright Test Agent role instructions plus a directive to read sentinel.config.yaml. Do not duplicate project paths or credentials in every prompt. It is acceptable for MCP config files to contain mechanically generated command arguments such as --config because those clients cannot dynamically read YAML before starting the MCP server.
playwright.config.tsWrite playwright.config.ts in the project root with bridge shim support and reporter configuration — the full file body is in @qa templates/playwright-config-template.md.
{base_url} in the baseURL fallback (the SENTINEL_BASE_URL env var overrides it at runtime).chromium project with one project entry per partition — name, baseURL of http://localhost:{partition_port}, and a testMatch glob per area — following the template's partitioned variant.tests/seed.spec.tsWrite tests/seed.spec.ts — a seed spec with project-specific fixtures for auth setup and base URL configuration, plus a seed test verifying the setup works. The full file body is in @qa templates/seed-spec-template.md.
Adapt the authenticatedPage fixture body to the chosen auth strategy (the template ships the none variant). If the auth strategy is credentials, generate a fixture that navigates to the login URL and fills credentials from environment variables.
Write .gitignore additions (or create tests/.gitignore):
# Playwright artifacts
test-results/
playwright-report/
blob-report/
# Keep NL specs and generated tests in version control
Write a README.md in the Sentinel project root as a practical quick-reference for developers. It must cover the 12 sections specified in @qa templates/readme-template.md (quick start, how it works, test partitions, directory structure, fixtures, running specific tests, test statuses, NL spec format, authoring adapters, common workflows, troubleshooting, Sentinel skills).
Tailor the content to the project — use actual port numbers, actual directory paths, and actual fixture names from the generated config. If bridge partitions were not configured, omit the partitions table and simplify to a single bridge instance.
Reference docs/systems/qa-testing-system.md (if it exists) for architecture deep-dive, rather than duplicating it.
Read project AGENTS.md. Append the Sentinel section from @qa templates/agents-sentinel-section.md
if not already present (do not duplicate).
Present completion using @qa templates/setup-complete.md (fill base URL, auth, adapters).
Ask: "Would you like to run /qa:discover now to scan your application and generate initial NL specs?"