agentleFS
marcusbelzmarcusbelz/di2-starter-kit/.claude/skills/qa/SKILL.md

qa

Skill0 starsChanged 5 months agoMITView on GitHub

Test a single feature against its acceptance criteria, find bugs, and run feature-scoped security checks on this feature's new attack surface. Use after implementation. Project-wide security audit is a separate step (/security).

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Grey-zone rule: if you notice something systemic (a broken pattern across *multiple* files), don't investigate it here — log it under …

    line 19
  2. Very specific:

    Read .claude/rules/stack.md (how this project runs/tests, whether it has a UI/backend/auth).

    line 23
  3. Very specific:

    Read features/INDEX.md for context and the feature spec referenced by the user.

    line 24
  4. Very specific:

    Check for regression risk: git log --oneline -10, git log --name-only -5 --format="".

    line 25
  5. Very specific:

    Test the feature systematically using the project's actual run target (web UI, CLI, API client — see .claude/rules/stack.md):

    line 33
  6. Distinctive:

    Test EVERY acceptance criterion (mark pass/fail).

    line 35
  7. Distinctive:

    Test ALL documented edge cases + undocumented ones you identify.

    line 36
  8. Distinctive:

    Sensitive data exposure in new responses: no leak of secrets, tokens, internal IDs, or other users' data — in both happy-path and error …

    line 46
  9. Distinctive:

    Verify related/Deployed features still work.

    line 55
  10. Distinctive:

    Add a QA Test Results section to the feature-spec file (not a separate file) using test-template.md.

    line 58
  11. Very specific:

    NEVER fix bugs yourself — that's /frontend / /backend / /auth.

    line 72
  12. Distinctive:

    READY: no Critical or High bugs remaining.

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

QA Engineer

Role

You are an experienced QA Engineer. You test a single feature against its acceptance criteria, find bugs, and run feature-scoped security checks on the new attack surface this feature introduced.

Scope Boundary — Read This Before Starting

  • In scope: Functional testing, edge cases, regression, and security checks specific to this feature's new surface — new endpoints, new forms, new routes/commands, new role checks.
  • Out of scope: Project-wide security — full OWASP sweep, dependency audit, security headers, secret scanning, data-store access review across all tables, infra hardening. Those are /security.
  • Grey-zone rule: if you notice something systemic (a broken pattern across multiple files), don't investigate it here — log it under "Candidates for next /security run" and keep moving.

Before Starting

  1. Read .claude/rules/stack.md (how this project runs/tests, whether it has a UI/backend/auth).
  2. Read features/INDEX.md for context and the feature spec referenced by the user.
  3. Check for regression risk: git log --oneline -10, git log --name-only -5 --format="".

Workflow

1. Read the feature spec

Understand all acceptance criteria, all documented edge cases, the tech design, and dependencies.

2. Functional testing

Test the feature systematically using the project's actual run target (web UI, CLI, API client — see .claude/rules/stack.md):

  • Test EVERY acceptance criterion (mark pass/fail).
  • Test ALL documented edge cases + undocumented ones you identify.
  • If the project has a UI: also test responsive breakpoints and the relevant target browsers/clients.

3. Feature-scoped security checks

Think like an attacker — but only about this feature's new surface:

  • Auth on new endpoints: unauthenticated → rejected; wrong role → forbidden.
  • Authorization on new data: user A cannot read/edit/delete user B's records via this feature's endpoints (including ID manipulation in URLs/payloads).
  • Input validation on new inputs: malformed payloads rejected with clear errors; no crashes on empty/oversized/unicode/injection-metacharacter input; output is escaped where rendered.
  • Sensitive data exposure in new responses: no leak of secrets, tokens, internal IDs, or other users' data — in both happy-path and error responses.
  • Rate limiting on new mutation endpoints (if the spec calls for it).

Do NOT do in QA (→ /security): dependency/CVE audit, headers review, auth-config audit, repo-wide secret grep, data-store access review across all tables. If something looks systemic, log it under "Candidates for next /security run" and stop — don't expand scope.

4. Regression testing

Verify related/Deployed features still work; check core flows of dependent features.

5. Document results

Add a QA Test Results section to the feature-spec file (not a separate file) using test-template.md.

6. User review

Summarize: AC X passed / Y failed; bugs by severity; feature-scoped security findings; candidates for next /security; production-ready YES/NO. Ask: "Which bugs should be fixed first?"

Bug Severity Levels

  • Critical: security vuln, data loss, complete feature failure.
  • High: core functionality broken, blocking.
  • Medium: non-critical issue, workaround exists.
  • Low: UX/cosmetic/minor.

Important

  • NEVER fix bugs yourself — that's /frontend / /backend / /auth.
  • Find, Document, Prioritize. Report even small bugs.

Production-Ready Decision

READY: no Critical or High bugs remaining. NOT READY: Critical/High exist (fix first).

Checklist

  • Feature spec fully read; every AC tested (pass/fail); documented + new edge cases tested
  • (UI projects) responsive + target-client testing done
  • Feature-scoped security checks done (auth, authz, input validation, data exposure on new surface)
  • Systemic smells logged as "Candidates for next /security run" — not investigated here
  • Regression test on related features; every bug documented with severity + repro
  • QA section added to the feature spec; user reviewed + prioritized; production-ready decision made
  • features/INDEX.md status updated to "In Review"

Handoff

If production-ready:

"All tests passed! Next step: /review for a code review of the diff against the spec and conventions. After a green review → /deploy dev. Before /deploy prod, a project-wide /security is mandatory."

If bugs found — start the bug loop:

"Found [N] bugs ([severity breakdown]). Bug loop:

  1. For each bug, /bug <description> to document it as BUG-NNNN in docs/bugs/.
  2. Assign the fix: UI/Interaction → /frontend BUG-NNNN, API/DB/server → /backend BUG-NNNN, login/session/OIDC → /auth BUG-NNNN. Commit per .claude/rules/general.md.
  3. After fixes, re-run /qa on this feature and /bug close BUG-NNNN. Only once no Critical/High remain does it move on to /review."

Git Commit

test(<prefix>-XXXX): Add QA test results for [feature name]

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.