Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

qa-personas

БесплатноБез исполняемых скриптовНе проверен

Write or refresh a project's QA personas — draft the answers from the code (role guards, route tree, nav per role) or ask the people who know the product…

cromford-aiот cromford-ai★ 29 звёзд на GitHub

Об этом скилле

QA personas

A QA persona is "sign in as this kind of user, then click through these flows". The QA lanes read them from two files in the project repo — qa/personas.json and qa/apps.json — and bin/lib/qa-personas.sh is the one reader of both. This skill is how those files get written.

An agent may draft the answers from the code (the operator, 2026-10-07). Read the role guards, the route tree and the nav each role sees, and write the answers file from that. A person may still answer it instead. Either way the PR opens, and the orchestrator (merge grant) reads the rendered map instead of a human filling in a questionnaire.

Every flow in these files is something an automated lane will later click through against a real environment, so a wrong route or a write flow marked safe is a real action with real consequences. That is why the safety floor is mechanical, not a reader:

  • Anything that creates, pays, sends or deletes is production_safe: false with a cleanup. The validator refuses a write flow with no cleanup, and production never runs one.
  • Every persona's out_of_bounds is a non-empty list. The validator refuses a persona without one. List at least these, wherever the app has them: refunds; charges, payouts and anything Stripe; mark-paid; every SMS, iMessage, email or Telegram send or resend button; signing; deletes; invites; role changes; imports; integration connect and disconnect.
  • Never click refunds for real customer payments. Send messages only to test customers.

Order the personas least privileged first. The QA lanes drive one persona per changed app area and take the first owner in file order, so the order is the privilege ranking.

The questionnaire

Ask these, in this order, of whoever knows the product. Write the answers down as one JSON file.

  1. Who are the personas? One per kind of user who can sign in. Give each a short id (lowercase letters, digits and dashes) and the role name its QA account uses.
  2. How does each one sign in? v1 has one answer: clerk-ticket.
  3. Which apps does each one own? The names from the apps map below, so a diff that only touches one app drives only the personas that own it.
  4. What are the top 3-5 flows for each persona? Per flow: an id, a title, the route it starts at, the observable that proves it worked, and the clicks in between.
  5. Which of those flows WRITE something? A write flow is production_safe: false, runs against preview only, and must say how to clean up after itself.
  6. What must never be driven? The routes and actions that are out of bounds for that persona. At least one is required.

Three to five flows per persona is the right size. The question to ask about each one is "would I notice if this broke?" — if the answer is no, it does not belong in a lane that runs on every build.

The answers file

One file, one shape: the personas document plus a top-level apps map. There is no translation layer — the generator splits this file, it does not rewrite it.

{
  "version": 1,
  "apps": { "admin": ["apps/admin/**"], "web": ["apps/web/**", "src/**"] },
  "personas": [
    { "id": "owner", "role": "qa-owner", "sign_in": "clerk-ticket",
      "apps": ["web"], "out_of_bounds": ["/billing"],
      "flows": [
        { "id": "dashboard", "title": "See the dashboard", "route": "/dashboard",
          "observable": "the scans table renders", "production_safe": true,
          "steps": [ {"goto": "/dashboard"},
                     {"expect": {"selector": "role=table"}} ] },
        { "id": "new-scan", "title": "Start a scan", "route": "/scans/new",
          "observable": "a queued scan row appears", "production_safe": false,
          "cleanup": "delete the queued scan named qa-smoke",
          "steps": [ {"goto": "/scans/new"},
                     {"fill": {"selector": "input[name=name]", "value": "qa-smoke"}},
                     {"click": "button:has-text(\"Start scan\")"},
                     {"expect": {"selector": "role=row", "text": "qa-smoke"}} ] } ] } ]
}

Every rule of that shape is written down once, in docs/E2E-POLICY.md § Personas, and validated once, by qa_personas_validate. Read the policy for the details; the ones that trip people up:

  • id is ^[a-z0-9-]+$ and unique. A flow id is unique within its persona.
  • sign_in is exactly "clerk-ticket". v1 has one sign-in kind.
  • route starts with /. An absolute https://… is refused.
  • production_safe is a JSON boolean. "true", 1 and a missing key are all refused, and none of them defaults.
  • Every name in a persona's apps must be a key of the top-level apps map.
  • out_of_bounds is required and non-empty, and every entry is a non-empty string.
  • A flow may carry its own apps: a non-empty list of names from its persona's apps. When a persona is driven for one changed area, its flows tagged only with other areas are left out of that run. A flow with no apps is always driven.
  • `se
Полный SKILL.md на GitHub

Установить qa-personas в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл qa-personas?

Write or refresh a project's QA personas — draft the answers from the code (role guards, route tree, nav per role) or ask the people who know the product, turn them into qa/personas.json, qa/apps.json and the verification-map entry with bin/qa-personas.sh, and open the PR the orchestrator reads before it merges. Use when a repo has no personas yet, when a new role or flow appears, or when a persona's flows have gone stale.

Как установить скилл qa-personas?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл qa-personas запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить qa-personas с