SKILL

test-writer

Write meaningful automated tests for JavaScript/TypeScript (Vitest, Jest, Testing Library, Playwright) and Python (pytest) that follow the project's existing conventions. Use whenever the user asks to add tests, improve coverage, "bikin test", "buat unit test", test a function/component/endpoint, or after implementing a feature that has no tests.

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Test Writer
  • 1. Detect the setup — never assume
  • 2. Decide what to test
  • 3. Write the tests
  • 4. Prove the tests are real
  • 5. Report

Good tests fail when behavior breaks and pass when it doesn't. They're not coverage padding. Run scripts/detecttestsetup.sh from the project root. It reports the framework, test command, and where existing tests live. Then open 1–2 existing test files near the target code and copy their conventions: file naming (.test.ts vs .spec.ts, test.py), folder (tests/, tests/, colocated), imports, fixtures/factories, mocking style. Consistency beats your preferences. If there is no test setup at all, propose one (Vitest for Vite/TS projects, Jest otherwise; pytest for Python) and ask before installing. Read the target code and list behaviors, not lines: Happy path — the main expected use Edge cases — empty input, zero, negative, very large, unicode, null/None/undefined, duplicate items Error paths — invalid input raises/rejects with the right error Boundaries — exactly at limits (< vs <=) State/side effects — what gets written, called, emitted Prioritize by risk: business logic and data transforms first; trivial getters last or never. Principles: One behavior per test, named as a sentence: it("returns empty list when no users match"), def testreturnsemptylistwhennousersmatch(). Arrange / Act

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
KILN-skills/kiln
Source file
skills/test-writer/SKILL.md
Fixed revision
555d7ea59d05910b4ef6fb39780da5f906be832b
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: KILN-skills/kiln · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T04:00:15.465Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.