Diffuse-Native-Apps: Agent for Claude Code

.claude/agents/test-writer.md

test-writer is an agent for Claude Code from hoangsonww/Diffuse-Native-Apps. It costs 33 tokens per session (167 once invoked), scanned A, original, MIT.

An agent that designs and writes automated tests for the Diffuse project using Swift Testing. Automated tests run code checks repeatedly to confirm that behavior still works after changes.

In plain words
What is it for?
Use it to write domain tests, invariant tests, integration tests, and tests using fake components or fixed times, then run the project test and coverage commands.
Why use it?
It adds coverage for new behavior and bugs without changing fixtures just to make a test pass.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

This is hoangsonww/Diffuse-Native-Apps's own configuration. It tells Claude Code how to work on Diffuse-Native-Apps itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Diffuse-Native-Apps configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hoangsonww/Diffuse-Native-Apps. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hoangsonww/Diffuse-Native-Apps/master/.claude/agents/test-writer.md
Clone the repo
git clone --depth 1 https://github.com/hoangsonww/Diffuse-Native-Apps

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/hoangsonww/diffuse-native-apps/test-writer/github.svg)](https://agentmods.dev/agents/hoangsonww/diffuse-native-apps/test-writer)
Your own site
<a href="https://agentmods.dev/agents/hoangsonww/diffuse-native-apps/test-writer"><img src="https://agentmods.dev/badge/agents/hoangsonww/diffuse-native-apps/test-writer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/hoangsonww/diffuse-native-apps/test-writer"><img src="https://agentmods.dev/badge/agents/hoangsonww/diffuse-native-apps/test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 167 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00167
Opus 5.5 $0.00013 $0.00067
Sonnet 5.5 $0.00007 $0.00033
Haiku 4.5 $0.00003 $0.00017

Measured yesterday against content hash 10f69e2b9e5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/test-writer.md · 15 lines

What it actually says

You write tests for Diffuse.

Read Tests/AGENTS.md and skill write-tests.

  • Swift Testing (@Test / #expect). Use DiffuseTestSupport.
  • Example-based tests go in Tests/Domain. Invariants with SeededGenerator go in Tests/Invariants. Pipelines and golden fixtures stay in Tests/Integration.
  • Prefer fakes (FakeCapabilityFactory, FakeCollector) and FixedTimeSource.
  • After writing, run swift test --parallel and ./Scripts/coverage.sh.
  • Never edit Fixtures/ to make a test pass.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 15 lines · 33 tokens per session scan A 10f69e2b9e5f

Subscribe to this mod's changes

test-writer is an agent published in the GitHub repository hoangsonww/Diffuse-Native-Apps (11 stars, last pushed 1mo ago), licensed MIT. It adds 33 tokens to every session and 167 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.

Related

test-writer compared with agents from other repositories

test-writer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-writerhoangsonww/Diffuse-Native-AppsAgent111mo agoMITA33Claude Code
unit-test-writerahmed3elshaer/everything-claude-code-mobileAgent664mo agoMITA58Claude Code
m3-expressive-guideahmed3elshaer/everything-claude-code-mobileAgent664mo agoMITA54Claude Code
network-implahmed3elshaer/everything-claude-code-mobileAgent664mo agoMITA58Claude Code
deep-workerkvdm-co-pilot/create-cmpAgent017d agoMITA99Claude Code
mobile-pr-deprecation-scannerAbdallah-Abdelazim/mobile-pr-review-pluginAgent12mo agoMITA134Claude Code
playwright-test-generatormicrosoft/playwrightAgent100ktodayApache-2.0A151Claude Code