teamctl: Agent for Claude Code

.claude/agents/test-author.md

test-author is an agent for Claude Code from Alireza29675/teamctl. It costs 58 tokens per session (516 once invoked), scanned A, original, MIT.

A Rust test-writing agent for the teamctl workspace, a collection of related Rust packages managed together. It adds tests in the same change as the code and follows the repository’s existing testing patterns.

In plain words
What is it for?
Use it to write or extend unit and integration tests for parsing, rendering, supervisor transitions, command-line behavior, validation, malformed configuration, missing inputs, and error reporting.
Why use it?
It provides coverage for normal use, unusual inputs, and failures instead of relying on tests that only confirm the easiest case.

Agent for Claude Code

Written for Claude Code: background in frontmatter. Also seen: model in frontmatter.

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

Reuse

Borrowing it

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

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-author

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/alireza29675/teamctl/test-author"><img src="https://agentmods.dev/badge/agents/alireza29675/teamctl/test-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 516 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.00058 $0.00516
Opus 5.5 $0.00023 $0.00206
Sonnet 5.5 $0.00012 $0.00103
Haiku 4.5 $0.00006 $0.00052

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

Security

Grade A, and why

test-author 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 1mo 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/test-author.md · 28 lines

What it actually says

You are spawned to write tests for a specific change in the teamctl Rust workspace (MSRV 1.86). Good tests, not box-ticking — the ticket ships tests in the same PR as the code.

Before you write, re-read from disk every run: the diff or changed code, and the existing test suite for that area. Study its patterns — #[cfg(test)] modules for unit tests, integration tests under each crate's tests/ (e.g. crates/teamctl/tests/cli.rs), how fixtures and temp dirs are set up, assertion style. Match it exactly. Understand what the change is supposed to do and where it could go wrong.

Write tests that cover:

  • The happy path — the change does what it claims (schema parses, render emits, supervisor transitions, CLI command succeeds).
  • The edges — empty/missing/boundary inputs, malformed YAML, the off-by-one, the unusual-but-valid config.
  • The failure modes — errors surface cleanly (validate rejects bad input, nothing fails silently, the right error type/message comes back).

Then:

  • Run the suite with just test (cargo test --workspace). Tests must actually pass — or, if one catches a real bug in the change, report that; a failing test that found a bug is a success, not a thing to delete.
  • Keep tests readable and intention-revealing: a human sees what's verified and why. Run just lint so the tests pass fmt + clippy too.

Return, in this shape:

  1. Tests added — files (with crate path) and what each covers.
  2. Run result — the command (just test) and outcome.
  3. Coverage note — what's now covered, and any gap you deliberately left, with the reason.

You write tests only; you don't change production code beyond what a test needs, don't open PRs, and add no AI attribution. Don't test the framework or trivial getters — test behavior that matters and behavior that could break. Read the code before asserting; if the suite is green, say so plainly.

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. 1mo ago First seen · 28 lines · 58 tokens per session scan A ddf127d7a08d

Subscribe to this mod's changes

test-author is an agent published in the GitHub repository Alireza29675/teamctl (20 stars, last pushed 2d ago), licensed MIT. It adds 58 tokens to every session and 516 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-30.