agentleFS
typvtypv/nest-turbo-starter/.claude/skills/test/SKILL.md

test

Skill224 starsChanged 3 months agoMITView on GitHub

Run unit, integration, e2e, and UI tests. Use for test execution, coverage analysis, build verification, visual regression, and QA reports.

We split this skill into the rules it gives an agent

12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 144 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    If invoked with context (test scope), proceed with testing.

    line 14
  2. Distinctive:

    Coverage checks: Ensure coverage meets project thresholds (80%+)

    line 30
  3. Distinctive:

    Build validation: Verify build process, dependencies, CI/CD compatibility

    line 32
  4. Distinctive:

    Run typecheck/analyze commands to catch syntax errors first

    line 73
  5. Distinctive:

    All critical paths must have test coverage

    line 91
  6. Distinctive:

    Ensure test isolation — no interdependencies

    line 93
  7. Distinctive:

    Never ignore failing tests to pass the build

    line 96
  8. Very specific:

    Use naming pattern from ## Naming section injected by hooks.

    line 100
  9. Distinctive:

    When operating as teammate:

    line 104
  10. Very specific:

    Read full task description via TaskGet before starting

    line 106
  11. Distinctive:

    Wait for blocked tasks (implementation) to complete before testing

    line 107
  12. Very specific:

    When done: TaskUpdate(status: "completed") then SendMessage results to lead

    line 109

“Common” is measured: kept by at least 6 in 10 of the 144 edited versions of this file we could read. “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

Testing & Quality Assurance

Comprehensive testing framework covering code-level testing (unit, integration, e2e), UI/visual testing via browser automation, coverage analysis, and structured QA reporting.

Default (No Arguments)

If invoked with context (test scope), proceed with testing. If invoked WITHOUT arguments, use AskUserQuestion to present available test operations:

OperationDescription
(default)Run unit/integration/e2e tests
uiRun UI tests on a website

Present as options via AskUserQuestion with header "Test Operation", question "What would you like to do?".

Core Principle

NEVER IGNORE FAILING TESTS. Fix root causes, not symptoms. No mocks/cheats/tricks to pass builds.

When to Use

  • After implementation: Validate new features or bug fixes
  • Coverage checks: Ensure coverage meets project thresholds (80%+)
  • UI verification: Visual regression, responsive layout, accessibility
  • Build validation: Verify build process, dependencies, CI/CD compatibility
  • Pre-commit/push: Final quality gate

Workflows

1. Code Testing (references/test-execution-workflow.md)

Execute test suites, analyze results, generate coverage. Supports JS/TS (Jest/Vitest/Mocha), Python (pytest), Go, Rust, Flutter. Includes working process, quality standards, and tool commands.

Load when: Running unit/integration/e2e tests, checking coverage, validating builds

2. UI Testing (references/ui-testing-workflow.md)

Browser-based visual testing via chrome-devtools skill. Screenshots, responsive checks, accessibility audits, form automation, console error collection. Includes auth injection for protected routes.

Load when: Visual regression testing, UI bugs, responsive layout checks, accessibility audits

3. Report Format (references/report-format.md)

Structured QA report template: test results overview, coverage metrics, failed tests, performance, build status, recommendations.

Load when: Generating test summary reports

Quick Reference

Code tests     → test-execution-workflow.md
  npm test / pytest / go test / cargo test / flutter test
  Coverage: npm run test:coverage / pytest --cov

UI tests       → ui-testing-workflow.md
  Screenshots, responsive, a11y, forms, console errors
  Auth: inject-auth.js for protected routes

Reports        → report-format.md
  Structured QA summary with metrics & recommendations

Working Process

  1. Identify testing scope from recent changes or requirements
  2. Run typecheck/analyze commands to catch syntax errors first
  3. Execute appropriate test suites
  4. Analyze results — focus on failures
  5. Generate coverage reports if applicable
  6. For frontend: run UI tests via chrome-devtools skill
  7. Produce structured summary report

Tools Integration

  • Test runners: Jest, Vitest, Mocha, pytest, go test, cargo test, flutter test
  • Coverage: Istanbul/c8/nyc, pytest-cov, go cover
  • Browser: chrome-devtools skill for UI testing (screenshots, ARIA, console, network)
  • Analysis: ai-multimodal skill for screenshot analysis
  • Debugging: debug skill when tests reveal bugs requiring investigation
  • Thinking: sequential-thinking skill for complex test failure analysis

Quality Standards

  • All critical paths must have test coverage
  • Validate happy path AND error scenarios
  • Ensure test isolation — no interdependencies
  • Tests must be deterministic and reproducible
  • Clean up test data after execution
  • Never ignore failing tests to pass the build

Report Output

Use naming pattern from ## Naming section injected by hooks.

Team Mode

When operating as teammate:

  1. On start: check TaskList, claim assigned/next unblocked task via TaskUpdate
  2. Read full task description via TaskGet before starting
  3. Wait for blocked tasks (implementation) to complete before testing
  4. Respect file ownership — only create/edit test files assigned
  5. When done: TaskUpdate(status: "completed") then SendMessage results to lead

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.

Reviews can't be read right now.

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.