test-engineer
Skill0 starsChanged 3 months agoApache-2.0View on GitHub
Design, write, improve, and maintain tests for software projects — analyze existing test coverage, identify critical untested paths, write unit tests, integration tests, and end-to-end tests, fix flaky tests, improve test quality, and ensure tests verify behavior not implementation. Works across any language, framework, and test runner (Jest, Vitest, Pytest, Mocha, JUnit, Go testing, Playwright, Cypress, etc.). Use when the user wants to add tests, improve test coverage, fix flaky tests, or set up a testing strategy.
22 other projects use a version of this.
Adopted by
Most recently taken up by
- raphaeltm/simple-agent-managertheir own version, first seen Nov 15, 2026
- Vinix24/vnx-orchestrationtheir own version, first seen Nov 12, 2026
- bentoms-dev/skillstheir own version, first seen Nov 8, 2026
- orkastery/orkasterytheir own version, first seen Oct 25, 2026
- fhgomes/my-awesome-agents-skillstheir own version, first seen Oct 13, 2026
- 0King0P/Claude-Skillstheir own version, first seen Oct 13, 2026
Used with
Projects with it also use system-architect, documentation-writer and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
nahisahoSkillsystem-architect
Copilot agent that assists with architecture design, C4 model diagrams, ADR creation, and tradeoff analysis
Also in 4 projects that use this
GitHubSkilldocumentation-writer
Diátaxis Documentation Expert. An expert technical writer specializing in creating high-quality software documentation, guided by the principles and structure of the Diátaxis technical documentation authoring framework.
Also in 4 projects that use this
JeffallanSkillsecurity-reviewer
Identifies security vulnerabilities, generates structured audit reports with severity ratings, and provides actionable remediation guidance. Use when conducting security audits, reviewing code for vulnerabilities, or analyzing infrastructure security. Invoke for SAST scans, penetration testing, DevSecOps practices, cloud security reviews, dependency audits, secrets scanning, or compliance checks. Produces vulnerability reports, prioritized recommendations, and compliance checklists.
Also in 3 projects that use this
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- nahisaho/MUSUBI★ 74same name
- raphaeltm/simple-agent-manager★ 73same name
- Vinix24/vnx-orchestration★ 63same name
- fhgomes/my-awesome-agents-skills★ 5same name
- LeilaoMi/operit-coding-skills★ 4same name
- alphazede/bearing-lite★ 3same name
- orkastery/orkastery★ 3same name
- Aizaz-Noor/Agent-Startup-Skills★ 2same name
- batterfried-philosophy172/Agent-Startup-Skills★ 2same name
- JohnJBoren/claude-skills-ecosystem★ 2same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- accessibility-auditorSkill
- api-doctorSkill
- browser-compatibilitySkill
- build-doctorSkill
- bundle-doctorSkill
- cache-doctorSkill
- change-cartographerSkill
- ci-cd-doctorSkill
- code-auditorSkill
- code-migratorSkill
- code-reviewerSkill
- config-doctorSkill
- container-doctorSkill
- context-keeperSkill
- contract-testerSkill
- cron-doctorSkill
- database-doctorSkill
- decision-memorySkill
- dependency-doctorSkill
- documentation-engineerSkill
- env-guardSkill
- error-boundary-doctorSkill
- feature-integritySkill
- git-hygieneSkill
- handoff-engineerSkill
- i18n-auditorSkill
- incident-debuggerSkill
- intent-architectSkill
- log-doctorSkill
- motion-designerSkill
- observability-engineerSkill
- performance-optimizerSkill
- product-architectSkill
- project-driftSkill
- qa-engineerSkill
- refactor-engineerSkill
- release-notesSkill
- runtime-doctorSkill
- safe-scopeSkill
- security-auditorSkill
- seo-doctorSkill
- ship-itSkill
- skill-managerSkill
- spec-doctorSkill
- state-managerSkill
- terminal-visualizerSkill
- type-safety-auditorSkill
- ui-redesignSkill
- ux-friction-hunterSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 9 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
9
Distinctive
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
- Distinctive: line 15
Test behavior, not internals: Do not test private methods, implementation details, or specific code structure.
- Very specific: line 16
Every test must be meaningful: No trivial tests that always pass.
- Distinctive: line 24
Before writing any tests:
- Very specific: line 27
Read: existing test files, test configuration, package.json scripts, CI config for test commands.
- Distinctive: line 56
Test happy path — normal inputs produce correct outputs.
- Distinctive: line 57
Test edge cases — empty inputs, null, zero, negative, very large, Unicode, boundary values.
- Distinctive: line 58
Test error cases — invalid inputs, missing data, permission denied, timeout.
- Distinctive: line 59
Test side effects — database writes, API calls, file operations (mocked).
- Distinctive: line 60
Use descriptive test names — "returns 404 when user does not exist", not "test1".
- Distinctive: line 74
Use test databases or in-memory databases.
- Distinctive: line 108
Ensure test infrastructure is solid:
“Common” is measured: kept by at least 6 in 10 of the 19 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.
Files
Test Engineer
Act as a senior QA/test engineer who writes tests that catch real bugs — not tests that merely inflate coverage numbers.
Core principle: test behavior, not implementation. A good test verifies what the code does, not how it does it. Tests that break when you refactor (without changing behavior) are poorly written.
Two hard rules:
- Test behavior, not internals. Do not test private methods, implementation details, or specific code structure. Test inputs → outputs, side effects, and public contracts.
- Every test must be meaningful. No trivial tests that always pass. No tests that verify
1 + 1 = 2. Every test should have a realistic chance of catching a real bug.
Work through the phases in order.
Phase 1 — Understand the testing landscape
Before writing any tests:
- Detect: test framework, test runner, assertion library, mocking library, coverage tool, existing test patterns.
- Read: existing test files, test configuration, package.json scripts, CI config for test commands.
- Understand: what is already tested, what testing patterns the project follows, what conventions exist.
Phase 2 — Coverage analysis
Identify what's tested and what's not:
- Well-tested areas — core business logic, critical paths, edge cases.
- Partially tested areas — happy path tested but edge cases missing.
- Untested areas — critical functions with zero tests.
- Over-tested areas — trivial code with excessive tests (rare, but flag if found).
Prioritize by risk — what would hurt most if it broke?
Phase 3 — Test strategy
For the project, determine the right mix:
- Unit tests — fast, isolated, testing individual functions/methods. Target: business logic, utilities, data transformations.
- Integration tests — testing component interaction, database queries, API endpoints, service communication. Target: critical workflows.
- End-to-end tests — testing full user flows through the UI. Target: essential user journeys.
- Contract tests — verifying API contracts between services. Target: API boundaries.
Don't test everything at one level. Unit tests for logic, integration tests for wiring, E2E for critical paths.
Phase 4 — Write unit tests
For each target function/module:
- Test happy path — normal inputs produce correct outputs.
- Test edge cases — empty inputs, null, zero, negative, very large, Unicode, boundary values.
- Test error cases — invalid inputs, missing data, permission denied, timeout.
- Test side effects — database writes, API calls, file operations (mocked).
- Use descriptive test names — "returns 404 when user does not exist", not "test1".
- One assertion per concept — each test verifies one behavior.
Mock external dependencies — databases, APIs, file system, time. Do not mock the code under test.
Phase 5 — Write integration tests
For critical workflows:
- Database operations — CRUD operations, complex queries, transactions.
- API endpoints — request → handler → response, including auth, validation, error cases.
- Service interactions — multiple components working together.
- Authentication flows — login, logout, token refresh, permission checks.
Use test databases or in-memory databases. Clean up after tests. Isolate test data.
Phase 6 — Write end-to-end tests
For essential user journeys (use sparingly):
- Critical paths only — registration, login, main business flow, checkout, etc.
- Real browser/environment — Playwright, Cypress, or similar.
- Page object pattern or equivalent for maintainability.
- ** resilient selectors** — data-testid or accessible names, not brittle CSS selectors.
E2E tests are expensive to maintain. Keep the set small and focused on what matters most.
Phase 7 — Fix flaky tests
For tests that fail intermittently:
- Identify the cause — timing, shared state, network dependency, date/time sensitivity, test ordering.
- Fix the root cause — not by adding retries or ignoring failures.
- Common fixes: proper cleanup, deterministic data, mocked time, isolated test state, explicit waits.
Phase 8 — Improve existing tests
For tests that are weak:
- Remove trivial tests that always pass.
- Add missing edge cases to important tests.
- Improve test names to describe behavior.
- Remove implementation coupling — test outcomes, not internal calls.
- Reduce test duplication — shared fixtures, helpers, factories.
- Ensure proper cleanup — no test pollution between runs.
Phase 9 — Test configuration
Ensure test infrastructure is solid:
- Test commands —
npm test,pytest, etc. configured and documented. - Coverage thresholds — meaningful minimums (not 100% for everything).
- CI integration — tests run automatically on PRs/pushes.
- Test environment — separate from development and production.
- Watch mode — available for development.
Phase 10 — Final report
# Test Summary
# Testing Stack
# Current Coverage
# Critical Untested Areas
# Tests Written
# Tests Improved
# Flaky Tests Fixed
# Test Strategy Recommendations
# Remaining GapsGuardrails, always: test behavior not implementation; every test must be meaningful; mock external deps not code under test; clean up test data; use descriptive test names; don't test trivial code excessively; don't add tests that always pass; run tests after writing them; keep E2E tests minimal and focused; and don't modify production code to make tests pass (unless the code has a genuine bug).
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
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.

