generate-tests SKILL.md skillA

generate-tests from coco-research/coco is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add coco-research/coco/generate-tests@v0.1.0

Pins v0.1.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
coco-research/coco
Path
skills/generate-tests/SKILL.md
Versions recorded
2
Latest version
v0.1.0, committed Sep 14, 2026
First version recorded
Apr 26, 2026
Size
6,833 bytes
Repository stars
629
License
Apache-2.0

Use when asked to generate tests for a file, module or component, to raise coverage, or to bootstrap a suite for untested code. Detects the project's test framework and conventions first, then writes unit, integration and edge-case tests.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 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:

1. **Find the test framework** — Check `package.json` (dependencies/scripts), or config files:
   - `jest.config.*` / `jest` key in `package.json` → Jest
   - `vitest.config.*` → Vitest
   - `cypress.config.*` → Cypress
   - `playwright.config.*` → Playwright
   - `pytest.ini` / `pyproject.toml` [tool.pytest] → pytest
   - `go.mod` → Go testing
   - `Cargo.toml` → Rust (#[cfg(test)])
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add coco-research/coco/generate-tests@sha256:a8ea060969fabce3

The line at the top of this page pins the label v0.1.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_z5fnplxtihu7nad4.svg)](https://markdownregistry.com/a/art_z5fnplxtihu7nad4)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Apr 26, 2026 and Sep 14, 2026, about one every 142 days.

versioncommittedcommitsizeaudit
v0.1.0 latest2026-09-14 e75f220 6,833 BA view · diff
v0.1.02026-04-26 d53cc6c 6,800 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6833 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

coco-research/coco · 629 stars · license Apache-2.0 · pushed 2026-11-08 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_z5fnplxtihu7nad4
GET https://markdownregistry.com/api/v1/resolve?ref=coco-research/coco/generate-tests
GET https://markdownregistry.com/api/v1/blob/a8ea060969fabce3bac1a8094bccff9a73623d4979d87389fe2f495337482224

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from coco-research/coco

AGENTS.md AGENTS.md file
coco-research/coco · AGENTS.md
git:20261007.61dca6d · audit A · 629 stars
create-rule SKILL.md skill
coco-research/coco · adapters/cursor/skills/create-rule/SKILL.md · Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up…
git:20260426.d53cc6c · audit A · 629 stars
create-skill SKILL.md skill
coco-research/coco · adapters/cursor/skills/create-skill/SKILL.md · Guides users through creating effective Agent Skills for Cursor. Use when the user wants to create, write, or author a…
git:20260426.d53cc6c · audit A · 629 stars
create-subagent SKILL.md skill
coco-research/coco · adapters/cursor/skills/create-subagent/SKILL.md · Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up…
git:20260426.d53cc6c · audit A · 629 stars
migrate-to-skills SKILL.md skill
coco-research/coco · adapters/cursor/skills/migrate-to-skills/SKILL.md · Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent…
git:20260426.d53cc6c · audit A · 629 stars
update-cursor-settings SKILL.md skill
coco-research/coco · adapters/cursor/skills/update-cursor-settings/SKILL.md · Modify Cursor/VSCode user settings in settings.json. Use when the user wants to change editor settings, preferences…
git:20260426.d53cc6c · audit A · 629 stars
_selftest SKILL.md skill
coco-research/coco · evals/skills/_selftest/SKILL.md
git:20261017.31c57de · audit C · 629 stars
agent-lightning SKILL.md skill
coco-research/coco · skills/agent-lightning/SKILL.md · Train and optimize AI agents using Microsoft's Agent Lightning framework with reinforcement learning. Use when setting…
git:20260802.1479e32 · audit A · 629 stars
agent-self-eval SKILL.md skill
coco-research/coco · skills/agent-self-eval/SKILL.md · Post-run self-evaluation system that scores agent output on correctness, clarity, actionability, and conciseness. Use…
v0.1.0 · audit A · 629 stars
ai-marketing-videos SKILL.md skill
coco-research/coco · skills/ai-marketing-videos/SKILL.md · Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for…
git:20260914.57d3294 · audit A · 629 stars
ai-product SKILL.md skill
coco-research/coco · skills/ai-product/SKILL.md · Use when building AI features into a product: LLM integration, RAG pipelines, guardrails, streaming, AI UX, prompt…
v0.1.0 · audit A · 629 stars
api-design-principles SKILL.md skill
coco-research/coco · skills/api-design-principles/SKILL.md · Use when designing a new REST or GraphQL API, reviewing an API spec before implementation, setting team API standards…
git:20260914.e75f220 · audit A · 629 stars

Every file in coco-research/coco

Other files named generate-tests

generate-tests SKILL.md skill
buildbetter-app/skills · skills/testing/generate-tests/SKILL.md · Use when you want to generate reusable Playwright .spec.ts test files from the app-navigator's app map and playbooks
git:20260604.6094087 · audit A · 24 stars
generate-tests SKILL.md skill
buildbetter-app/skills · plugins/skills/skills/generate-tests/SKILL.md · Use when you want to generate reusable Playwright .spec.ts test files from the app-navigator's app map and playbooks
git:20260608.1149f4a · audit A · 24 stars

Browse by kind, by grade A, or by owner.