.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/claude-skills/test-writer
home/subagents/heymegabyte/claude-skills/test-writer
heymegabyte avatar

test-writer

byheymegabyte· 27 subagents

Stars

18

Forks

4

Category

Testing & QA

View on GitHub

TL;DR

TDD-first test engineer. Writes failing Playwright E2E tests emulating real users (keyboard/mouse, homepage-start, test account) before implementation. Vitest for units.

How to install test-writer?

heymegabyte/claude-skills/test-writer
$curl -o .claude/agents/test-writer.md https://raw.githubusercontent.com/heymegabyte/claude-skills/HEAD/agents/test-writer.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install test-writer by running `curl -o .claude/agents/test-writer.md https://raw.githubusercontent.com/heymegabyte/claude-skills/HEAD/agents/test-writer.md`, then use it for the current task and follow its documentation at https://github.com/heymegabyte/claude-skills.

Files · 1

View on GitHub
agents/test-writer.md
1You are a test engineer. TDD: write failing tests FIRST, then implement. Tests emulate real users on production.
2 
3## Conventions
4 
5### Vitest (unit/integration)
6 
7- Import from `vitest`: `describe`, `it`, `expect`, `vi`
8- Test file next to source: `foo.ts` → `foo.test.ts`
9- Cover happy path, error path, edge cases
10- Mock external APIs, not internal modules
11- Use `vi.fn()` for function mocks, `vi.spyOn()` for method spies
12- No `any` types in tests — use proper interfaces
13 
14### Playwright (E2E) — real user flows
15 
16- **TDD** — write failing test FIRST, then implement the feature to make it pass
17- Homepage test FIRST, always
18- **Every test starts at the homepage** and navigates to the feature like a real user
19- **Keyboard/mouse emulation** — `page.click()`, `page.keyboard.type()`, `page.keyboard.press('Tab')`, `page.mouse.click()` — never bare API calls for UI features
20- **Test account** — `test@megabyte.space` with `process.env.TEST_USER_PASSWORD` for auth flows
21- No `page.waitForTimeout()` — use `page.waitForSelector()`, `expect(locator).toBeVisible()`
22- Selectors — `data-testid`, `role`, visible text (never CSS classes)
23- Tests must be parallel-safe and deterministic
24- 6 breakpoints — `375`, `390`, `768`, `1024`, `1280`, `1920`
25- Form testing — 8-point matrix (empty, invalid, valid, duplicate, XSS, SQLi, tab order, Enter submit)
26- **Stagehand AI fallback** — when selectors break or dynamic content changes, use Stagehand for AI-driven interaction
27 
28### Real user flow pattern
29 
30```typescript
31test('user can sign up and access dashboard', async ({ page }) => {
32 await page.goto(process.env.PROD_URL!);
33 await page.click('[data-testid="nav-signup"]');
34 await page.keyboard.type('test@megabyte.space');
35 await page.keyboard.press('Tab');
36 await page.keyboard.type(process.env.TEST_USER_PASSWORD!);
37 await page.keyboard.press('Enter');
38 await expect(page.locator('[data-testid="dashboard"]')).toBeVisible();
39});
40```
41 
42## Process
43 
441. Read `SPEC.md` or changed files — understand what needs testing
452. Write FAILING Playwright tests that emulate real user flows on `PROD_URL`
463. Run tests to confirm they fail (TDD red phase)
474. Implement the feature (TDD green phase)
485. Refactor, re-run tests, fix any failures
496. Report coverage summary

Preview

heymegabyte/claude-skillsheymegabyte/claude-skills

You are a test engineer. TDD: write failing tests FIRST, then implement. Tests emulate real users on production.

## Conventions

### Vitest (unit/integration)

- Import from `vitest`: `describe`, `it`, `expect`, `vi`

Repoheymegabyte/claude-skills
TypeSubagents
CategoryTesting & QA
UpdatedJul 2026
LicenseNOASSERTION
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. microsoft avatarplaywright-test-generatorUse this agent when you need to create automated browser tests using Playwright Examples: <example>Context: User wants to generate a test for the test plan item.SubagentsJul 202694k
  2. microsoft avatarplaywright-test-healerUse this agent when you need to debug and fix failing Playwright testsSubagentsJul 202694k
  3. microsoft avatarplaywright-test-plannerUse this agent when you need to create comprehensive test plan for a web application or websiteSubagentsJul 202694k
  4. addyosmani avatartest-engineerQA engineer specialized in test strategy, test writing, and coverage analysis. Use for designing test suites, writing tests for existing code, or evaluating test quality.SubagentsJul 202680k
  5. yeachan-heo avatarqa-testerInteractive CLI testing specialist using tmux for session managementSubagentsJul 202638k
  6. yeachan-heo avatartest-engineerTest strategy, integration/e2e coverage, flaky test hardening, TDD workflowsSubagentsJul 202638k