Agent skill

Test Generation

by agulli in agulli/atlas-agents

Generate comprehensive test suites for existing code. An agent skill from agulli/atlas-agents.

MITAuto-check passedTesting & QA

Install Test Generation

skills CLI
$ npx skills add agulli/atlas-agents --skill test-generation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agulli/atlas-agents test-generation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/agulli/atlas-agents.git skills-src && mkdir -p .claude/skills && cp -r skills-src/ch09_agent_skills/skills/test-generation .claude/skills/test-generation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
test-generation
GitHub stars
579
Token cost
~598 tokens
SKILL.md length
238 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Generate comprehensive test suites for existing code. An agent skill from agulli/atlas-agents.

  • Works in 6 steps: Read the source code. Load every… → Identify the test framework. Check for → Categorize test types needed → …
  • Asked to write tests
  • SKILL.md covers Process, Rationalizations and Verification
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Test Generation is an agent skill from agulli/atlas-agents. Generate comprehensive test suites for existing code. Use when asked to write tests, add test coverage, create unit tests, or build integration tests.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires pytest (Python) or vitest/jest (Node.js)

It sits in Testing & QA, covering Test generation, Unit testing and Integration testing. It works with pytest and Vitest. The licence is MIT.

When your agent uses it

  • Asked to write tests
  • Add test coverage
  • Create unit tests
  • Build integration tests

Example prompts

  • “/test-generation”

Requirements

  • Python 3
  • Node.js
  • Compatibility (from SKILL.md): Requires pytest (Python) or vitest/jest (Node.js)

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Read the source code. Load every function and class under test. Do not write tests from a summary or description — you must see the…
  2. Identify the test framework. Check for
  3. Categorize test types needed
  4. Write tests following the AAA pattern
  5. Name tests descriptively. The test name should describe the scenario and expected outcome
  6. Run the tests. Execute the full test suite and confirm all tests pass. If any fail, fix the test (not the source code) unless you discover…

What it can do on your machine

Read from SKILL.md and the folder at commit 2b21998. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires pytest (Python) or vitest/jest (Node.js)

    From compatibility in the SKILL.md frontmatter.

Context cost

Test Generation loads about 598 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 238 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~598

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from agulli/atlas-agents at commit 2b21998, republished under its MIT licence (© agulli). 238 words, ~598 tokens.

Download SKILL.mdSave it as .claude/skills/test-generation/SKILL.md (or your agent's skills folder).
name
test-generation
description
Generate comprehensive test suites for existing code. Use when asked to write tests, add test coverage, create unit tests, or build integration tests.
compatibility
Requires pytest (Python) or vitest/jest (Node.js)
license
MIT

Process

  1. Read the source code. Load every function and class under test. Do not write tests from a summary or description — you must see the implementation.

  2. Identify the test framework. Check for:

    • conftest.py or pytest.ini → pytest
    • vitest.config.* → Vitest
    • jest.config.* → Jest If none are found, default to pytest for Python, Vitest for TypeScript/JavaScript.
  3. Categorize test types needed:

    • Happy path: Normal inputs, expected outputs
    • Edge cases: Empty inputs, None/null, boundary values, maximum lengths
    • Error cases: Invalid inputs that should raise exceptions or return errors
    • Integration: Tests that verify multiple components work together
  4. Write tests following the AAA pattern:

    python
    def test_descriptive_name():
        # Arrange — set up inputs and expected state
        user = create_test_user(name="Alice")
        
        # Act — call the function under test
        result = get_user_greeting(user)
        
        # Assert — verify the output
        assert result == "Hello, Alice!"
  5. Name tests descriptively. The test name should describe the scenario and expected outcome:

    • ✅ test_login_rejects_empty_password
    • ❌ test_login_2
  6. Run the tests. Execute the full test suite and confirm all tests pass. If any fail, fix the test (not the source code) unless you discover an actual bug.

Rationalizations

ExcuseRebuttal
"I'll just write happy path tests"Edge cases are where bugs live. Write at least one edge case per function.
"The function is too simple to test"Simple functions get refactored. Tests protect against regressions during refactoring.
"I'll add tests later"You won't. Write them now.
"Mocking everything is fine"Over-mocking hides integration bugs. Mock external services, not your own code.

Verification

  • Tests were executed (not just written)
  • All tests pass
  • At least one edge case test exists per function
  • Test names describe the scenario, not just "test_1", "test_2"

© agulli, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in ch09_agent_skills/skills/test-generation of agulli/atlas-agents.

Open the folder on GitHubat commit 2b21998

Compare with similar skills

Test Generation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Test Generation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Test Generation this skillagulli/atlas-agents579—~598Automated safety check: PassMIT
Designing TestsCloudAI-X/claude-workflow-v21.4k1 repos~1.5kAutomated safety check: PassMIT
Write Test389ds/389-ds-base294—~1.8kAutomated safety check: PassCustom licence
MoAI TDD Workflowmodu-ai/moai-adk1.2k—~3.1kAutomated safety check: PassApache-2.0
Testing Livekit Agentslivekit-examples/agent-starter-python2641 repos~1.9kAutomated safety check: PassMIT
Test Patternsrohitg00/skillkit1.5k—~1.8kAutomated safety check: PassApache-2.0

Similar skills

  • Designing Tests

    CloudAI-X/claude-workflow-v2

    Designs and implements testing strategies for any codebase. An agent skill from CloudAI-X/claude-workflow-v2.

    1.4k GitHub starsUsed in 1 repo~1.5k tokens
    Testing & QAAuto-check passed
  • Write Test

    389ds/389-ds-base

    Add or extend a pytest integration test for 389 Directory Server under dirsrvtests/.

    294 GitHub stars~1.8k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • MoAI TDD Workflow

    modu-ai/moai-adk

    Drives test-first development through the RED, GREEN, REFACTOR cycle, with a config switch that selects between TDD and a DDD workflow for existing code.

    1.2k GitHub stars~3.1k tokensUpdated today
    Testing & QAAuto-check passed
  • Testing Livekit Agents

    livekit-examples/agent-starter-python

    Writes turn-level tests for a LiveKit agent in the user's normal test suite: pytest (Python) or Vitest (Node.js).

    264 GitHub starsUsed in 1 repo~1.9k tokens
    Testing & QAAuto-check passed
  • Test Patterns

    rohitg00/skillkit

    Applies proven testing patterns — Arrange-Act-Assert (AAA), Given-When-Then, Test Data Builders, Object Mother, parameterized tests, fixtures, spies, and test doubles — to help write maintainable…

    1.5k GitHub stars~1.8k tokensUpdated 4 mo ago
    Testing & QAAuto-check passed
  • Test Generator

    alirezarezvani/claude-code-tresor

    Automatically suggest tests for new functions and components.

    777 GitHub stars~1.6k tokensUpdated 3 mo ago
    Testing & QAAuto-check passed

More from agulli/atlas-agents

All 12 skills in this repo
  • API Design

    agulli/atlas-agents

    Design or review REST and GraphQL API interfaces. An agent skill from agulli/atlas-agents.

    579 GitHub stars~539 tokensUpdated 2 mo ago
    Auto-check passed
  • Data Pipeline

    agulli/atlas-agents

    Design, build, or debug data processing pipelines. An agent skill from agulli/atlas-agents.

    579 GitHub stars~714 tokensUpdated 2 mo ago
    Auto-check passed
  • Database Migration

    agulli/atlas-agents

    Safely run database schema migrations. An agent skill from agulli/atlas-agents.

    579 GitHub stars~702 tokensUpdated 2 mo ago
    Auto-check passed
  • Deploy Checklist

    agulli/atlas-agents

    Execute a structured deployment to staging or production. An agent skill from agulli/atlas-agents.

    579 GitHub stars~756 tokensUpdated 2 mo ago
    Auto-check passed
  • Documentation Writer

    agulli/atlas-agents

    Write or update technical documentation for code, APIs, or systems.

    579 GitHub stars~639 tokensUpdated 2 mo ago
    Auto-check passed
  • Git Commit

    agulli/atlas-agents

    Create well-structured git commits with conventional commit messages.

    579 GitHub stars~463 tokensUpdated 2 mo ago
    Auto-check: notes

Works with

Categories

Questions about Test Generation

What does Test Generation do?

Generate comprehensive test suites for existing code. An agent skill from agulli/atlas-agents. Test Generation is an agent skill from agulli/atlas-agents. Generate comprehensive test suites for existing code.

When should I use Test Generation?

Test Generation fits situations like: asked to write tests; add test coverage; create unit tests; build integration tests.

How do I install Test Generation in Claude Code?

Run `npx skills add agulli/atlas-agents --skill test-generation -a claude-code`. Or copy the skill folder (ch09_agent_skills/skills/test-generation in agulli/atlas-agents) into .claude/skills/test-generation in your project. Claude Code loads it when a task matches its description.

How do I install Test Generation in Codex?

Run `npx skills add agulli/atlas-agents --skill test-generation -a codex`. Or copy the skill folder (ch09_agent_skills/skills/test-generation in agulli/atlas-agents) into .agents/skills/test-generation in your project. Codex loads it when a task matches its description.

Can I use Test Generation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agulli/atlas-agents --skill test-generation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-generation, .gemini/skills/test-generation, .github/skills/test-generation and .opencode/skills/test-generation in your project.

What does Test Generation need to run?

SKILL.md names no scripts, command-line tools or credentials: Test Generation is instructions for the agent only. Our summary lists: Python 3; Node.js. Compatibility (from SKILL.md): Requires pytest (Python) or vitest/jest (Node.js).

Does Test Generation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Test Generation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Test Generation use?

Test Generation is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Test Generation use?

About 598 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Test Generation?

Skills that share tags, products or a category with Test Generation: Designing Tests (CloudAI-X/claude-workflow-v2, 1.4k stars), Write Test (389ds/389-ds-base, 294 stars), MoAI TDD Workflow (modu-ai/moai-adk, 1.2k stars) and Testing Livekit Agents (livekit-examples/agent-starter-python, 264 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Test Generation?

agulli (a GitHub user) maintains it in agulli/atlas-agents, which has 579 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on July 17, 2026.

Source: agulli/atlas-agents on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.