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 skills add coco-research/coco --skill generate-testsgit clone --depth 1 https://github.com/coco-research/cocoWrote 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/coco-research/coco/generate-tests)<a href="https://agentmods.dev/skills/coco-research/coco/generate-tests"><img src="https://agentmods.dev/badge/skills/coco-research/coco/generate-tests/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.
<a href="https://agentmods.dev/skills/coco-research/coco/generate-tests"><img src="https://agentmods.dev/badge/skills/coco-research/coco/generate-tests.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00051 | $0.01597 |
| Opus 5.5 | $0.00020 | $0.00639 |
| Sonnet 5.5 | $0.00010 | $0.00319 |
| Haiku 4.5 | $0.00005 | $0.00160 |
Grade A, and why
generate-tests 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.
How it starts
The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate Tests — Comprehensive Test Suite Generator
Generate complete test coverage for any file, component, or module. Covers unit tests, integration tests, edge cases, error handling, and mocking — adapted to whatever testing framework the project uses.
Use when: you want tests generated for a file or component, need to improve test coverage, want edge case coverage, need mocks for external dependencies, or want to bootstrap a test suite for untested code.
When This Skill Is Activated
Follow every step below. Do NOT generate tests without first analyzing the project's testing setup and the target code.
Step 1: Detect the Testing Setup
Before writing any tests, discover the project's testing conventions:
-
Find the test framework — Check
package.json(dependencies/scripts), or config files:jest.config.*/jestkey inpackage.json→ Jestvitest.config.*→ Vitestcypress.config.*→ Cypressplaywright.config.*→ Playwrightpytest.ini/pyproject.toml[tool.pytest] → pytestgo.mod→ Go testingCargo.toml→ Rust (#[cfg(test)])
-
Find existing test files — Search for
*.test.*,*.spec.*,test_*.py,*_test.goto understand naming conventions and patterns already in use. -
Check for test utilities — Look for shared helpers, factories, custom matchers, or mock setups the project already provides (e.g.,
test/utils.ts,__mocks__/,conftest.py). -
Check the test script — Read the
testscript inpackage.json(or equivalent) to understand how tests are run, what flags are used, and what coverage tool is configured.
Match the project's existing conventions exactly. File naming, import style, assertion style, describe/it vs test, etc.
Step 2: Analyze the Target Code
Read the file or component the user wants tested. Identify:
- All exported functions, classes, methods, and components
- Input types and return types (or infer them)
- External dependencies (API calls, database, file system, third-party libs)
- Side effects (mutations, network calls, timers, DOM manipulation)
- Error paths (throw statements, catch blocks, error returns)
- Edge cases (null/undefined inputs, empty arrays, boundary values, large inputs)
- Async behavior (promises, callbacks, streams)
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.
- 2mo ago Changed · +10 tokens per session a8ea060969fa
- 2mo ago First seen · 175 lines · 41 tokens per session scan A 2d5ff45f0bb6
generate-tests is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 51 tokens to every session and 1,597 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-09-03.
generate-tests compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| generate-testscoco-research/coco | Skill | 323 | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |
| refactoring-guruciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 29 | Claude Code, Codex |
| refactoringciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 20 | Claude Code, Codex |
| working-effectively-with-legacy-codeciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 37 | Claude Code, Codex |
| template-formaldocxology/template | Skill | 25 | today | Apache-2.0 | A | 53 | Claude Code, Codex |
| template-test-creationdocxology/template | Skill | 25 | today | Apache-2.0 | A | 47 | Claude Code, Codex |
| generate-testsmavka-ai/unit-tests-skills | Skill | 76 | 2mo ago | MIT | A | 63 | Claude Code |