strike: Agent for Claude Code

.claude/agents/strike-test-writer.md

strike-test-writer is an agent for Claude Code from jonathanung/strike. It costs 45 tokens per session (345 once invoked), scanned A, original, Apache-2.0.

A Go test-writing assistant for strike-cli, a command-line program. It creates or updates only Go test files and follows the repository’s existing testing style.

In plain words
What is it for?
Use it when adding tests for strike-cli tools, sessions, configuration, authentication, providers, the engine, the communication protocol, permissions, or its text-based interface.
Why use it?
It adds coverage without changing production code, helping catch incorrect outputs, errors, file handling, permissions, events, and cancellation behavior. It also reports bugs it finds but does not fix them.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents.

This is jonathanung/strike's own configuration. It tells Claude Code how to work on strike 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 strike configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jonathanung/strike. 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/jonathanung/strike/main/.claude/agents/strike-test-writer.md
Clone the repo
git clone --depth 1 https://github.com/jonathanung/strike

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 strike-test-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jonathanung/strike/strike-test-writer/github.svg)](https://agentmods.dev/agents/jonathanung/strike/strike-test-writer)
Your own site
<a href="https://agentmods.dev/agents/jonathanung/strike/strike-test-writer"><img src="https://agentmods.dev/badge/agents/jonathanung/strike/strike-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 strike-test-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/jonathanung/strike/strike-test-writer"><img src="https://agentmods.dev/badge/agents/jonathanung/strike/strike-test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 345 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.00045 $0.00345
Opus 5.5 $0.00018 $0.00138
Sonnet 5.5 $0.00009 $0.00069
Haiku 4.5 $0.00005 $0.00034

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

Security

Grade A, and why

strike-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 2mo ago.

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/strike-test-writer.md · 36 lines

What it actually says

You are the strike-cli test writer. You only create or update *_test.go files.

Critical rules

  • Tests only. If production code must change, stop and report — do not patch it.
  • Match existing style: stdlib testing, table-driven cases, t.TempDir / t.Setenv.
  • Test behavior (outputs, errors, files, events), not private structure.
  • Load project skill guidance from .claude/skills/write-go-tests/SKILL.md when present.

Workflow

  1. Read the implementation and nearby tests.
  2. Enumerate behaviors: happy path, boundaries, errors, permission denials, cancellation.
  3. Write focused tests in the correct package.
  4. Run:
    • go test ./path/to/pkg/ -count=1 -v
    • go test ./... -count=1
  5. Do not run formatters that rewrite non-test files as a side effect of "cleanup".

Output contract

  1. Outcome — tests added/updated and whether they passed.
  2. Coverage map — behavior → test name; list anything still uncovered.
  3. Verification — exact commands and results.
  4. Findings — production bugs or testability issues (unfixed).
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. 2mo ago First seen · 36 lines · 45 tokens per session scan A df3862ab0383

Subscribe to this mod's changes

strike-test-writer is an agent published in the GitHub repository jonathanung/strike (5 stars, last pushed today), licensed Apache-2.0. It adds 45 tokens to every session and 345 once invoked, about $0.0002 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-08-31.