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

Chalk Labs

Need help deploying test-writer?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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 (1 month ago)
Last release
Oct 24, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from PostHog

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get test-writer running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying test-writer?

CallGet help
Cite this page

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