AGENT SKILL

qa-setup

WAY 0 — prepare the current project for DevOps QA Agent — test runner in qa-artifacts/, issue tracker and code host (GitLab, GitHub, Jira, Azure DevOps, Bitbucket), per-project .env values, access check. Use when the user says "qa setup", "set up qa", "init qa agent", or when another WAY finds qa-artifacts/ or its settings missing.

License 许可
MIT
最近更新
2026-11-06
Stars
★ 5
Forks
4

01 前言 Front Matter

name
qa-setup
description
WAY 0 — prepare the current project for DevOps QA Agent — test runner in qa-artifacts/, issue tracker and code host (GitLab, GitHub, Jira, Azure DevOps, Bitbucket), per-project .env values, access check. Use when the user says "qa setup", "set up qa", "init qa agent", or when another WAY finds qa-artifacts/ or its settings missing.

03 SKILL.md 正文

WAY 0 — QA Setup

Run once per project. Ask before changing anything that already exists.

1. Test runner → qa-artifacts/

  • If qa-artifacts/playwright.config.ts is missing, copy ${CLAUDE_PLUGIN_ROOT}/runner-template/ (package.json, playwright.config.ts, README.md) into it
  • If a config already exists, compare it with the Playwright config contract in test-execution-agent and list the differences. Don't overwrite it
  • From qa-artifacts/: npm install, then npx playwright install chromium. Report npx playwright --version
  • For WAY 18 (exploratory) only, install the Playwright MCP's own browser: npx -y @playwright/mcp@0.0.83 install-browser chrome-for-testing

2. Providers

Ask, or detect from git remote -v and the connected MCP servers, then confirm:

  • Issue tracker (QA_TRACKER): gitlab · github · jira · azure-devops
  • Code host / CI (QA_CODE_HOST): gitlab · github · azure-devops · bitbucket

3. Project values → .env (project root)

Add only the keys for the chosen providers, keep existing values, and ask for each one (or leave it empty with a comment):

QA_TRACKER=github
QA_CODE_HOST=github
STAGING_URL=
PROD_URL=
FEATURE_BASE_URL=          # preview apps: FEATURE_BASE_URL/<branch>
API_TEST_TOKEN=            # test-account token for API tests, never a real user's
UI_TEST_USER=              # optional test account for signed-in UI regressions and WAY 18 exploration
UI_TEST_PASSWORD=
API_TEST_TOKEN_B=          # optional second test account (WAY 17 ownership workflows)
# <SERVICE>_BASE_URL= / <SERVICE>_TOKEN=   # E2E API only, one pair per service (ORDERS_BASE_URL…)
API_PERF_THRESHOLD_MS=2000

# gitlab        GITLAB_PROJECT_ID=        (token: plugin settings, or .mcp.json from a clone)
# github        GITHUB_REPO=owner/repo    (auth: `gh auth login`)
# jira          JIRA_BASE_URL=  JIRA_PROJECT_KEY=  JIRA_EMAIL=  JIRA_API_TOKEN=   (or a connected Atlassian MCP server)
# azure-devops  AZDO_ORG_URL=  AZDO_PROJECT=  AZDO_REPO=  AZURE_DEVOPS_EXT_PAT=
# bitbucket     BITBUCKET_WORKSPACE=  BITBUCKET_REPO=  BITBUCKET_EMAIL=  BITBUCKET_API_TOKEN=

Never echo secret values back. Make sure .gitignore covers .env and qa-artifacts/ (add the missing lines with the user's OK).

4. Tools and access

For each chosen provider, check the tool its skill needs:

Provider Tool check
gitlab /mcp shows the GitLab server connected (plugin: set the URL/token with /plugin configure qa-agent@devops-qa-agent; clone: .mcp.json)
github gh auth status
jira an Atlassian MCP server connected, or the REST settings above
azure-devops az version plus the azure-devops extension (az extension add --name azure-devops)
bitbucket curl plus the settings above

Then run project.check (per tracker → the provider skill) for the tracker and the code host, and report the project or repo name each returns. On GitHub, offer two one-time setups (provider-github): the tracker label set, and the qa-artifacts prerelease that screenshots are attached to. With that release in place, later WAYs attach screenshots without asking.

5. Summary

Print what was created, changed, or skipped, plus a first command to try, e.g. write it "<a small feature of this app>" App: <STAGING_URL>.

04 同仓库更多 Skills

GhassenAZZOUZ
GhassenAZZOUZ/claude-qa-agent

write-tests

WAY 4 — write test cases only, no execution. Use when the user says "write it", "write tests", "generate test cases" — an approved test plan (`Plan:`), or requirements (text or a tracker issue) planned and approved first, optional App/Spec/MR or PR → exactly the planned test files.

★ 5
GhassenAZZOUZ
GhassenAZZOUZ/claude-qa-agent

verify-fix

WAY 9 — verify that a bug is fixed by running its regression test. Use when the user says "verify it", "verify fix", "is #142 fixed", "check the fix" with one or more bug refs (#142, SHOP-142), or "verify all" for every open bug that has a regression test.

★ 5
GhassenAZZOUZ
GhassenAZZOUZ/claude-qa-agent

user-story-format

Reference only — the single definition of this project's user-story body (story, Gherkin ACs, Missing Information, DoD) and its AC/scenario rules. Read by user-story-enhancer (WAY 6) and benchmark-gap-story-writer (WAY 8) so stories they write stay identical in shape and WAY 6 can re-score WAY 8's output. Not a workflow on its own.

★ 5
GhassenAZZOUZ
GhassenAZZOUZ/claude-qa-agent

tracker

Provider-neutral contract for every issue-tracker and code-host action (create/update/comment/close issues, attach files, comment on MRs/PRs, read CI runs and logs) plus label conventions and failure handling. Every WAY calls these operations; the matching provider-* skill says how to perform them on GitLab, GitHub, Jira, Azure DevOps, or Bitbucket.

★ 5
GhassenAZZOUZ
GhassenAZZOUZ/claude-qa-agent

traceability

WAY 14 — requirements traceability matrix for a user story (each acceptance criterion) or a test folder written from plain text (each R-NN requirement) → the tests covering it → their latest result → open bugs. Use when the user says "trace it", "traceability", "is #148 covered", "coverage of SHOP-148", "trace it <folder>".

★ 5
GhassenAZZOUZ
GhassenAZZOUZ/claude-qa-agent

test-plan

WAY 19 — design a test plan before any test code. Use when the user says "plan it", "plan tests", "test plan", "design tests" with requirements (text or a tracker issue), optional App/Spec/MR or PR. Output is the test plan (scope, levels, one row per Test#<nn> with category, tags, covers, priority, coverage, entry/exit criteria, risks), reviewed by `review-plan` (WAY 20), filed for approval; `write it Plan:` / `e2e it Plan:` then write exactly that plan. Also holds the plan format every other WAY reads.

★ 5