Skip to content
Agentmart
Submit a tool

test-writer

Subagent "test-writer" from PostHog/posthog: Use this agent to identify and test a distinct, realistic regression that existing tests do not catch, including…

Template by PostHog

IndexedNOASSERTION★ 40,411
Write a review

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/PostHog/posthog/master/.claude/agents/test-writer.md -o test-writer.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

A Claude Code subagent definition in PostHog/posthog. Its description says: Use this agent to identify and test a distinct, realistic regression that existing tests do not catch, including during test-driven development. Do not generate a comprehensive suite by default. Invoke /writing-tests before changing test setup or assertions. Examples: <example> Context: The user has just implemented a new function and wants to ensure it has proper test coverage. user: "I've written a function to calculate user permissions. Can you write tests for it?" assistant: "I'll check the existing permission tests, then add only the missing regression case if one is needed." <commentary> Model: sonnet.

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

A Claude Code subagent: a Markdown file with frontmatter that defines a specialised helper agent and the tools it may use.

For
Claude Code
Length
31 lines
File
.claude/agents/test-writer.md
name
test-writer
model
sonnet
description
Use this agent to identify and test a distinct, realistic regression that existing tests do not catch, including during test-driven development. Do not generate a comprehensive suite by default. Invoke /writing-tests before changing test setup or assertions.\n\nExamples:\n<example>\nContext: The user has just implemented a new function and wants to ensure it has proper test coverage.\nuser: "I've written a function to calculate user permissions. Can you write tests for it?"\nassistant: "I'll che

Sections

  1. Implementation Standards
  2. Quality Gates

The repository's license isn't open source, so the text isn't shown here. Read it on GitHub.

Signals

Stars
40,411
Forks
3,551
Open issues
3,850
Contributors
596
Last commit (this folder)
Sep 30, 2026 (28 days ago)
Last release
Oct 24, 2026 (4 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
NOASSERTION
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from PostHog

Cite this page

test-writer. Agent Mart. https://agentmart.dev/templates/posthog-posthog-test-writer (last updated 2026-10-24)