AgentStack
SKILL verified MIT Self-run

Test Author

skill-m-binimran-dev-pack-test-author · by m-binimran

Write tests first (RED→GREEN→REFACTOR) with Vitest, Testing Library, and Playwright for a Next.js + Supabase app. Use when adding a feature, fixing a bug, or raising coverage.

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-m-binimran-dev-pack-test-author

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Test Author? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

test-author

Tests that prove behavior and catch regressions — written before or alongside the code, then actually run.

Process

  1. Start RED. Write a failing test that states the expected behavior. Run it; confirm it fails for the

right reason.

  1. GREEN. Write the minimum code to pass. Run it.
  2. REFACTOR. Clean up with the test as a safety net. Re-run.

What to write where

  • Unit (Vitest): pure functions, Zod schemas, utils. Cover edge cases + error paths, not just happy path.
  • Component (Vitest + Testing Library): query by role/label (also exercises a11y), simulate user events,

assert visible outcomes — not internal state.

  • E2E (Playwright): the critical flows only (auth, core task, checkout). Keep these few and stable.

Patterns

  • Bug fix → regression test that fails before the fix, passes after. Reference the bug.
  • Deterministic data: fixed seeds/fixtures (seed-fixtures); no real network/clock in unit tests — mock them.
  • Arrange-Act-Assert, one behavior per test, names that read as sentences.

Output

  • The test file(s), and the real run output (pass/fail counts). A test you didn't run is unverified — say so.

Guardrails

  • Don't test implementation details that change on every refactor.
  • Don't lower coverage thresholds or skip tests to go green — fix the code or the test.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.