agentleFS
LiriRaidLiriRaid/waymark/skills/dept-qa/SKILL.md

dept-qa

Skill1 starsChanged 58 days agoMITView on GitHub

Waymark · QA department. Use FIRST, before browser-verify or code-review, for tests and verification: \"escribe tests\", \"hay un bug\", \"no funciona\", \"regresión\", \"cobertura\", \"revisa mi código\", \"verifica que funcione\", unit, e2e, TDD. Closes every L1+ task.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Run the *Waymark protocol → Entry* from the instructions file (already in context.

    line 15
  2. Distinctive:

    Where: do the tests live — which pyramid level (unit, integration, e2e) and which files?

    line 23
  3. Very specific:

    Does not own: what to build → dept-product · layer rules → dept-architecture · CI pipelines and release → dept-devops · security testing …

    line 31
  4. Distinctive:

    Test pyramid — choose the level

    line 37
  5. Distinctive:

    Run the quality gates yourself

    line 40
  6. Distinctive:

    MUST: write or update a test for every behavior change.

    line 46
  7. Distinctive:

    MUST: run the gates yourself with verified commands and report real output.

    line 48
  8. Distinctive:

    MUST: verify UI changes in a browser.

    line 49
  9. Distinctive:

    SHOULD: keep tests deterministic: control clock, randomness, network and shared state.

    line 51
  10. Distinctive:

    SHOULD: test public behavior, not private implementation details.

    line 52
  11. Distinctive:

    MUST NOT: run the quality score on L0/L1 work unless asked.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Quality Assurance & Testing

Quick ref

Mission: Prove every change works, keeps working and meets the Definition of Done before anyone says "done". Must: failing test before the fix or feature (TDD) · every bug fix ships a regression test · gates run by you, green or failure proven pre-existing · UI changes verified in a real browser · code-review on the diff at L2+ Skills by default: browser-verify · run · code-review · simplify (L3) · library-docs DoD: gates green, tests cover the change, behavior observed running, diff reviewed, report honest about anything not verified.

Entry

Run the Waymark protocol → Entry from the instructions file (already in context; do not load the waymark skill for it). No Waymark block in context (guest) → Guest entry, ../waymark/references/coexistence.md §3. Department-specific reads:

  • Learnings: ~/.waymark/learnings/dept-qa.md if it exists.
  • Stack profile: Commands + Testing.
  • Tools: the Tools table below. Open ../waymark/skill-registry.md only if a capability there has no installed provider.

Brief questions

  1. What behavior is being added, changed or broken? (observed vs expected for bugs)
  2. Why / for whom does it matter — which user journey or acceptance criterion does it protect?
  3. Where do the tests live — which pyramid level (unit, integration, e2e) and which files?
  4. How is it reproduced or exercised — exact steps, inputs, data, viewport?
  5. Which gate commands apply (from project memory) and are any already red before the change?
  6. Is UI affected, so browser verification is required?
  7. What does done look like — which tests must pass and what must be observed running?

Scope

  • Owns: test strategy and pyramid, TDD, regression tests, running and interpreting quality gates, browser verification, code review of the diff, the quality score, the Definition of Done every department inherits.
  • Does not own: what to build → dept-product · layer rules → dept-architecture · CI pipelines and release → dept-devops · security testing depth → dept-security · accessibility design decisions → dept-ux-ui.

Procedures

Detailed steps live in procedures.md (same folder). Fast diagnosis of a reported bug → Quick bug triage (short; read it first). Read only the section you need: search its heading, read that block, not the whole file. Anti-patterns and references are at the end of that file.

  • Quick bug triage (L1)
  • Test pyramid — choose the level
  • New feature or behavior (TDD: red / green / refactor)
  • Bug fix
  • Run the quality gates yourself
  • Browser verification (any UI change)
  • Code review (L2+, before done or a PR)
  • Quality score (L3 or explicit request only)

Rules

  • MUST write or update a test for every behavior change; a bug fix without a regression test is not done.
  • MUST see a new test fail before making it pass.
  • MUST run the gates yourself with verified commands and report real output.
  • MUST verify UI changes in a browser; "tests pass" is not "feature works".
  • MUST state in the report anything not verified and why.
  • SHOULD keep tests deterministic: control clock, randomness, network and shared state.
  • SHOULD test public behavior, not private implementation details.
  • MUST NOT weaken, skip or delete tests or lint rules to get green.
  • MUST NOT mock the unit under test or mock so much the test proves nothing.
  • MUST NOT run the quality score on L0/L1 work unless asked.

Tools

CapabilitySkill / MCP / AgentWhenLevel
test.browserbrowser-verifyAny UI change, e2e journeys, visual regressionsL1+ when UI changed
app.runrunReproduce a bug or observe the change runningL2
review.diffcode-reviewBefore done or opening a PRL2
review.simplifysimplifyClean-up after green, behavior-preservingL3
ui.auditui-auditSignificant UI change; WCAG 2.2 AA checkL2
docs.librarylibrary-docs (→ the docs MCP servers the user has)Test runner, assertion or mocking API not verified this sessionQ
search.codebaseExplore agentFinding existing tests, fixtures, helpers across >3 locationsL1
memoryMCP engrammem_search bug history; mem_save root causesL1
mutation / load testingnone yet → waymark references/skills.mdCritical logic or performance budgetsL3

Definition of Done

  • Exit protocol of waymark (instructions file → Exit; L2+ full: ../waymark/references/protocol.md) (gates, architecture conformance, review, learnings)
  • Every new or changed behavior has a test; bug fixes have a regression test that failed first
  • Edge cases and error paths covered
  • UI verified in the browser (golden path + edge cases, console clean, mobile + desktop)
  • code-review findings resolved or justified (L2+)
  • Pre-existing failures proven in a clean copy of HEAD (git worktree) and quoted, or "no comprobado (sin permiso …)"
  • Quality score with fixes for areas < 8 (L3 or on request)

Hand-offs

  • To dept-product: acceptance criteria missing or ambiguous.
  • To dept-architecture: a bug or score reveals a structural or boundary problem.
  • To dept-ux-ui: ui-audit finds accessibility or hierarchy issues.
  • To dept-security: a finding touches auth, input validation, secrets or dependencies.
  • To dept-data: failures caused by state, caching or persistence design.
  • To dept-devops: gates pass locally but fail in CI, or build/environment issues.
  • To dept-devex: a gate command, skill or registry entry misbehaves.

Learned rules

Grows with use (waymark references/learning.md). Only rules that are general for this department and not already stated above. Format: - [YYYY-MM-DD] <rule> — <why> (source: <project>).

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.