elwizard33/qa-my-app/init

Claude Code and agent skill by elwizard33/qa-my-app

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Bootstrap a fresh QA-tests/ folder in this project. Auto-detects the framework, discovers every route, loads each page in a real browser, inventories every form/button/modal/role guard, and writes deep test tasks. Use on a new project or to re-baseline the catalog. Optional argument is the dev server URL (defaults to the configured value, then to the framework-detected default).

Install

npx vskill@latest install elwizard33/qa-my-app/init

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as elwizard33/qa-my-app/init.

/qa-my-app:init — Bootstrap QA-tests/

Project context

  • Repo root: !git rev-parse --show-toplevel 2>/dev/null || pwd
  • Framework detection: !node "${CLAUDE_PLUGIN_ROOT}/scripts/detect-framework.mjs"
  • Existing QA-tests folder: !test -d QA-tests && echo "EXISTS" || echo "MISSING"

Runtime settings (from /plugin user config)

SettingValue
Dev URL override${user_config.dev_url}
Parallel page-analyzer agents${user_config.parallel_agents}
Parallel test-author agents${user_config.parallel_test_authors}
Browser engine${user_config.browser_engine}
Browser channel${user_config.browser_channel}
Headless${user_config.browser_headless}
Settle ms${user_config.settle_ms}
Auth mode${user_config.auth_mode}
Default role${user_config.default_role}
Available roles${user_config.available_roles}
Credential map${user_config.auth_credentials_file}
Task depth${user_config.task_depth}
Max tasks per route${user_config.max_tasks_per_route}
Excluded globs${user_config.exclude_globs}

If any value is empty, fall back to a sensible default.

Instructions

When spawning subagents, use the plugin-namespaced names for the non-browser agents (qa-my-app:route-discoverer, qa-my-app:test-author) and the project-level name for the browser agent (qa-page-analyzer, installed in Phase 0 below). All are pre-approved in allowed-tools above.

If Existing QA-tests folder is EXISTS, stop and tell the user to run /qa-my-app:sync instead, or delete QA-tests/ first.

Resolve the effective dev URL in this order: $ARGUMENTS → ${user_config.dev_url} → framework-detected devUrl.

Phase 0 — Install project-level browser agents

Before anything else, install the two browser-driving agents into .claude/agents/ so every subsequent parallel spawn gets its own isolated browser process. These agents declare mcpServers inline — a capability that is blocked on plugin-shipped agents but fully supported in project-level agents.

bash
mkdir -p .claude/agents

For each of the two template files, check whether the project-level copy already exists. If it does not, read the template from the plugin directory and write it to the project:

  • Read ${CLAUDE_PLUGIN_ROOT}/agents/qa-page-analyzer.md → write to .claude/agents/qa-page-analyzer.md
  • Read ${CLAUDE_PLUGIN_ROOT}/agents/qa-test-runner.md → write to .claude/agents/qa-test-runner.md

If either file already exists (e.g. the user has customised it), leave it unchanged.

Apply the selected browser engine. The templates ship with the Playwright mcpServers block. If ${user_config.browser_engine} is not playwright (or empty), edit the freshly-written .claude/agents/qa-page-analyzer.md and .claude/agents/qa-test-runner.md, replacing the mcpServers: frontmatter block with the one matching the chosen engine. Do not touch a file you left unchanged because it already existed.

  • chrome-devtools:

```yaml mcpServers:

  • chrome-devtools:

type: stdio command: npx args: ["-y", "chrome-devtools-mcp@1.6.0", "--isolated", "--headless"] `` (Drop --headless if ${user_config.browser_headless} is false`. Chrome-only.)

  • stagehand (Browserbase cloud): write the block below with the literal placeholder text — never read or embed an actual API key yourself, from the environment or anywhere else:

```yaml mcpServers:

  • browserbase:

type: http url: "https://mcp.browserbase.com/mcp?browserbaseApiKey=REPLACE_WITH_YOUR_BROWSERBASE_API_KEY" `` Claude Code never substitutes a sensitive: true config value into skill or agent content, so there is no way for this step to write the real key into the file — leave the placeholder exactly as written. The PostToolUse hook (scripts/resolve-browser-secrets.mjs) runs right after this write; if the user has set ${user_config.browserbase_api_key} via /plugin, it reads the real value from its own hook-process environment (CLAUDE_PLUGIN_OPTION_BROWSERBASE_API_KEY, never visible to you) and replaces the placeholder in both files on disk. If they haven't set it yet, the hook no-ops and the placeholder stays — tell the user once: "Set your key via /plugin → qa-my-app → Configure → **Browserbase API key**, then make any edit (the next file write triggers the hook that resolves it) — this plugin never reads or transmits it for you." Never type an actual key into these files yourself, even if the user pastes one to you in chat; tell them to use /plugin` instead.

See docs/browsers/ for per-engine setup and caveats (Stagehand has limited screenshot/console/network capture).

Project-scope (not plugin-scope) because only .claude/agents/ agents may declare inline mcpServers — that's what gives each parallel spawn its own isolated browser process. Rationale: docs/ARCHITECTURE.md.

Phase 0.5 — Scaffold the per-role credential map

When ${user_config.auth_mode} is per-role (or ${user_config.available_roles} lists more than one role), bootstrap the gitignored credential map so the user has a place to put a different login per role.

  1. Create the folder: mkdir -p QA-tests/.qa-catalog/state.
  2. Only if QA-tests/.qa-catalog/auth.local.json does not already exist, write a template built from ${user_config.available_roles} (plus ${user_config.default_role} and anonymous). Every protected role gets a shared-credentials stub whose password is an ${ENV_VAR} reference — never a literal secret:

``json { "version": 1, "defaultRole": "${user_config.default_role}", "roles": { "anonymous": { "authMode": "none" }, "admin": { "authMode": "shared-credentials", "loginUrl": "/login", "username": "admin@example.test", "password": "${QA_CRED_ADMIN_PASSWORD}" }, "user": { "authMode": "shared-credentials", "loginUrl": "/login", "username": "user@example.test", "password": "${QA_CRED_USER_PASSWORD}" } } } ` Name one env var per role (QA_CRED_<ROLE>_PASSWORD`). Leave it for the user to fill — do not invent passwords.

  1. Gitignore the secrets. Ensure the target project's root .gitignore contains both lines (append only if missing):

`` QA-tests/.qa-catalog/auth.local.json QA-tests/.qa-catalog/state/ ``

  1. Validate + report status (redacted — never prints passwords):

``bash node "${CLAUDE_PLUGIN_ROOT}/scripts/auth-resolve.mjs" --status ` Tell the user which roles are unresolved (e.g. "set QA_CRED_ADMIN_PASSWORD` in your shell or CI before running protected tasks").

If auth_mode is none, shared-credentials, or storage-state, skip this phase — the single-credential path still works unchanged.


Phase 1 — Issue-tracker MCP setup (optional, one-time)

Before scanning, surface a one-time AskUserQuestion asking which issue-tracker integrations to wire up. These are not bundled — they're standard MCP servers the user grants tokens to so the runner can later file defects, link tasks to issues, and attach PR previews.

First, check what is already connected:

bash
claude mcp list 2>/dev/null || true

Then ask the user (single multi-select question):

Which issue trackers should the catalog link to? (you can re-run later via claude mcp add)
- [ ] GitHub — file defects as Issues, attach to PRs
- [ ] Jira (Atlassian) — file defects as tickets, link routes to epics
- [ ] Azure DevOps — file defects as Work Items, link to boards
- [ ] Skip for now

For each selected integration, print exact copy-paste commands — do NOT run them yourself, since they require user credentials and OAuth in a browser:

  • GitHub (HTTP MCP, PAT-based):

`` claude mcp add --transport http --scope user github https://api.githubcopilot.com/mcp/ \ --header "Authorization: Bearer <YOUR_GITHUB_PAT>" `` Generate a fine-grained PAT at https://github.com/settings/personal-access-tokens.

  • Jira (Atlassian remote MCP, OAuth):

`` claude mcp add --transport http --scope user atlassian https://mcp.atlassian.com/v1/sse /mcp # then complete OAuth in the browser ``

  • Azure DevOps (community stdio MCP, PAT-based):

`` claude mcp add --transport stdio --scope user ado --env ADO_PAT=<YOUR_ADO_PAT> --env ADO_ORG=<your-org> \ -- npx -y @azure-devops/mcp-server ``

Record the user's selection in the catalog's integrations field (Phase 4) so future runs know which tracker IDs are link-able. Do not block init on this — if the user picks Skip, proceed immediately.

After the user runs the commands they chose, ask them to type /mcp to verify the new servers are connected, then continue.

Phase 2 — Discover routes

Spawn the `route-discoverer` subagent (single instance) with the framework JSON plus the resolved settings:

json
{
"framework": "<detected>",
"routeGlobs": [...],
"devUrl": "<resolved>",
"settings": {
"availableRoles": [split user_config.available_roles by ","],
"defaultRole": "${user_config.default_role}",
"excludeGlobs": [split user_config.exclude_globs by ","]
}
}

It returns a rich JSON array (path, sourceFile, requiresAuth, rolesAllowed, guards, httpMethods, dynamicParams, layoutChain, featureFlags).

Phase 3 — Analyze pages (parallel, isolated browser processes)

Run `qa-page-analyzer` subagents in concurrent batches of ${user_config.parallel_agents}. Each spawn starts its own Playwright process — no shared state, no coordination needed.

When auth_mode is per-role, first resolve the credential map once (passwords interpolated from env vars) and reuse it for every analyzer:

bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/auth-resolve.mjs" --json

When auth_mode is shared-credentials, resolve the default role the same way — auth_password is sensitive: true, so Claude Code keeps it in the OS keychain and never substitutes it into skill or agent content:

bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/auth-resolve.mjs" --role "${user_config.default_role}" --json

Give the default role a shared-credentials entry in auth.local.json whose password is a ${ENV_VAR} reference. Never inline ${user_config.auth_password} into an agent payload — it resolves to that literal string, not the password.

Per-agent input:

json
{
"route": { ...route record... },
"devUrl": "<resolved>",
"settings": {
"browserChannel": "${user_config.browser_channel}",
"headless": ${user_config.browser_headless},
"settleMs": ${user_config.settle_ms},
"authMode": "${user_config.auth_mode}",
"defaultRole": "${user_config.default_role}",
"credentials": { "username": "${user_config.auth_username}", "password": "<resolved via auth-resolve.mjs — never ${user_config.auth_password}>" },
"credentialsByRole": { ...roles object from auth-resolve.mjs, or omit if not per-role... },
"storageStatePath": "${user_config.auth_storage_state_path}"
}
}

If a route requires authentication and auth_mode is none, record requiresAuth: true and the auth-wall behavior in the analysis — do not skip it.

Phase 4 — Author tasks (parallel)

For each Page Analysis, spawn a `test-author` subagent. Run up to ${user_config.parallel_test_authors} concurrently. Pass each agent:

json
{
"analysis": { ...page-analyzer output... },
"settings": {
"taskDepth": "${user_config.task_depth}",
"maxTasksPerRoute": ${user_config.max_tasks_per_route},
"defaultRole": "${user_config.default_role}"
}
}

It writes QA-tests/tasks/T<NN>-<slug>.md files using the enforced deep-workflow template.

Phase 5 — Write catalog

After all tasks are authored, write:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/elwizard33/qa-my-app/init/badge)](https://verified-skill.com/skills/elwizard33/qa-my-app/init)

Something wrong with this skill or its page? Tell us.