Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/anchildress1/awesome-github-copilot/test-writernpx skills add anchildress1/awesome-github-copilot --skill test-writergit clone --depth 1 https://github.com/anchildress1/awesome-github-copilotWrote 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.
[](https://agentmods.dev/skills/anchildress1/awesome-github-copilot/test-writer)<a href="https://agentmods.dev/skills/anchildress1/awesome-github-copilot/test-writer"><img src="https://agentmods.dev/badge/skills/anchildress1/awesome-github-copilot/test-writer.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00130 | $0.03040 |
| Opus 5 | $0.00065 | $0.01520 |
| Sonnet 5 | $0.00026 | $0.00608 |
| Haiku 4.5 | $0.00013 | $0.00304 |
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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 293 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Writer
You are writing production-quality tests. These rules apply to every repo, every language, every test framework.
Step 0: Orient Before You Write
Do ALL of the following before writing a single line of test code — in parallel where possible:
- Read the source file(s) under test completely. Map every branch, early return, validation check, and error path.
- Detect the stack and test framework — see Stack Detection below.
- Find the test run command. Check
package.jsonscripts.test,Makefile,pyproject.toml, or the repo's CI config. You will need this for verification. - Read the existing test files for the module (if any). Extract mock patterns, fixture shapes, and naming conventions — your new tests must be consistent with them.
- If no test files exist, establish conventions: check for a
tests/or__tests__/directory; if none, create one mirroring the source structure.
- If no test files exist, establish conventions: check for a
- Read the test config (
vitest.config.ts,jest.config.ts,pytest.ini,pyproject.toml). Note coverage thresholds and excluded paths. - Read test helpers and shared fixtures. Use what exists before inventing new utilities.
- Identify which test types apply: unit, integration, end-to-end, performance, Lighthouse CI (LHCI). Each has different mock boundaries and scope.
- Read
CLAUDE.mdorAGENTS.mdfor project-specific test conventions.
Stack Detection and File Placement
Detect the framework from config files before writing anything:
| Signal | Framework |
|---|---|
vitest.config.ts or vitest in package.json |
Vitest |
jest.config.* or jest in package.json |
Jest |
pytest.ini, pyproject.toml [tool.pytest] |
pytest |
.mocharc.* |
Mocha |
cypress.config.* |
Cypress (e2e) |
playwright.config.* |
Playwright (e2e) |
File placement — match the repo's existing convention:
- If test files live next to source (
src/foo.ts→src/foo.test.ts), follow that. - If test files live in a separate tree (
tests/foo_test.py), follow that. - When bootstrapping: prefer co-location for unit tests; prefer
tests/for integration and e2e.
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.
- 4d ago First seen · 293 lines · 130 tokens per session scan A 29c4496dd8c0
test-writer is a skill published in the GitHub repository anchildress1/awesome-github-copilot (65 stars, last pushed yesterday), licensed MIT. It adds 130 tokens to every session and 3,040 once invoked, about $0.0006 per session on Opus 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.
Other skills, from other repositories
mcp-server-dev
Use when the user asks to build an MCP server, create an MCP integration, wrap an API for AI agents, or expose tools via the Model Context Protocol. Guides through deployment model selection (remote HTTP, MCPB, local stdio), tool-design patterns, and framework choice before scaffolding code.
conventions-improver
Audit and improve project conventions files (AGENTS.md, CLAUDE.md, GEMINI.md). Scans for all conventions files, evaluates quality against a scoring rubric, outputs a quality report, then makes targeted improvements with user approval. Use when asked to check, audit, update, or improve AGENTS.md or similar files.
security-threat-model
Repository-grounded threat modeling that enumerates trust boundaries, assets, attacker capabilities, abuse paths, and mitigations, and writes a concise Markdown threat model. Trigger only when the user explicitly asks to threat model a codebase or path, enumerate threats/abuse paths, or perform AppSec threat modeling.…
code-review
Multi-agent code review for local changes, files, or directories. Detects bugs, security issues, and conventions-file violations (AGENTS.md/CLAUDE.md/GEMINI.md).
comment-analyzer
Analyzes code comments for accuracy, completeness, and long-term maintainability. Detects comment rot and misleading documentation. Use after adding or modifying code comments.
gh-address-comments
Fetch all review comments and threads on the current branch's open GitHub PR using the gh CLI, present a numbered summary, and address the ones the user selects.