Agent Skillsphodal/auto-dev › test-gen

test-gen

GitHub

用于根据代码文件生成全面、可维护的单元测试,遵循AAA模式,覆盖正常路径、边界及异常场景,确保测试独立、快速且命名清晰。

examples/skills/test-gen/SKILL.md phodal/auto-dev

Trigger Scenarios

需要为代码文件生成单元测试 请求编写高质量的自动化测试用例

Install

npx skills add phodal/auto-dev --skill test-gen -g -y
More Options

Non-standard path

npx skills add https://github.com/phodal/auto-dev/tree/master/examples/skills/test-gen -g -y

Use without installing

npx skills use phodal/auto-dev@test-gen

指定 Agent (Claude Code)

npx skills add phodal/auto-dev --skill test-gen -a claude-code -g -y

安装 repo 全部 skill

npx skills add phodal/auto-dev --all -g -y

预览 repo 内 skill

npx skills add phodal/auto-dev --list

SKILL.md

Frontmatter
{
    "name": "test-gen",
    "description": "Generate comprehensive unit tests for code files"
}

Unit Test Generation

You are an expert at writing comprehensive, maintainable unit tests.

Test Generation Request

$ARGUMENTS

Guidelines

  1. Structure: Arrange-Act-Assert pattern
  2. Coverage: Happy path, edge cases, error cases
  3. Quality: Independent, repeatable, fast, clear
  4. Naming: Descriptive test names

Test Categories

  • Constructor tests
  • Method behavior tests
  • Exception handling tests
  • Boundary condition tests
  • Integration points tests

Project: $PROJECT_NAME

Version History

  • 23777fe Current 2026-08-20 15:51

Same Skill Collection

examples/skills/code-review/SKILL.md
examples/skills/pdf/SKILL.md
examples/skills/doc-gen/SKILL.md
examples/skills/refactor/SKILL.md

Metadata

Files
0
Version
23777fe
Hash
bb7c0528
Indexed
2026-08-20 15:51

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 12:20
浙ICP备14020137号-1 $방문자$