P

polyglot-test-agent

by @githubv
4.5(292)

マルチエージェントパイプラインを使用して、あらゆるプログラミング言語向けに包括的で実用的な単体テストを生成します(単体テストの生成または記述に適しています)。

polyglot-testingtest-automation-agentsmulti-language-testingcross-platform-testingGitHub
インストール方法
npx skills add github/awesome-copilot --skill polyglot-test-agent
compare_arrows

Before / After 効果比較

1
使用前

異なるプログラミング言語向けに包括的な単体テストを手動で作成することは、膨大な時間がかかり、テストシナリオの見落としが発生しやすいです。テストカバレッジが不十分だと、コードの欠陥を発見することが困難になります。

使用後

マルチエージェントパイプラインが、様々な言語と複雑なシナリオをカバーする高品質な単体テストを自動生成します。これにより、テスト効率とコード品質が大幅に向上し、ソフトウェアの信頼性を確保します。

SKILL.md

Polyglot Test Generation Skill

An AI-powered skill that generates comprehensive, workable unit tests for any programming language using a coordinated multi-agent pipeline.

When to Use This Skill

Use this skill when you need to:

  • Generate unit tests for an entire project or specific files
  • Improve test coverage for existing codebases
  • Create test files that follow project conventions
  • Write tests that actually compile and pass
  • Add tests for new features or untested code

How It Works

This skill coordinates multiple specialized agents in a Research → Plan → Implement pipeline:

Pipeline Overview

┌─────────────────────────────────────────────────────────────┐
│                     TEST GENERATOR                          │
│  Coordinates the full pipeline and manages state            │
└─────────────────────┬───────────────────────────────────────┘
                      │
        ┌─────────────┼─────────────┐
        ▼             ▼             ▼
┌───────────┐  ┌───────────┐  ┌───────────────┐
│ RESEARCHER│  │  PLANNER  │  │  IMPLEMENTER  │
│           │  │           │  │               │
│ Analyzes  │  │ Creates   │  │ Writes tests  │
│ codebase  │→ │ phased    │→ │ per phase     │
│           │  │ plan      │  │               │
└───────────┘  └───────────┘  └───────┬───────┘
                                      │
                    ┌─────────┬───────┼───────────┐
                    ▼         ▼       ▼           ▼
              ┌─────────┐ ┌───────┐ ┌───────┐ ┌───────┐
              │ BUILDER │ │TESTER │ │ FIXER │ │LINTER │
              │         │ │       │ │       │ │       │
              │ Compiles│ │ Runs  │ │ Fixes │ │Formats│
              │ code    │ │ tests │ │ errors│ │ code  │
              └─────────┘ └───────┘ └───────┘ └───────┘

Step-by-Step Instructions

Step 1: Determine the User Request

Make sure you understand what user is asking and for what scope. When the user does not express strong requirements for test style, coverage goals, or conventions, source the guidelines from unit-test-generation.prompt.md. This prompt provides best practices for discovering conventions, parameterization strategies, coverage goals (aim for 80%), and language-specific patterns.

Step 2: Invoke the Test Generator

Start by calling the polyglot-test-generator agent with your test generation request:

Generate unit tests for [path or description of what to test], following the [unit-test-generation.prompt.md](unit-test-generation.prompt.md) guidelines

The Test Generator will manage the entire pipeline automatically.

Step 3: Research Phase (Automatic)

The polyglot-test-researcher agent analyzes your codebase to understand:

  • Language & Framework: Detects C#, TypeScript, Python, Go, Rust, Java, etc.
  • Testing Framework: Identifies MSTest, xUnit, Jest, pytest, go test, etc.
  • Project Structure: Maps source files, existing tests, and dependencies
  • Build Commands: Discovers how to build and test the project

Output: .testagent/research.md

Step 4: Planning Phase (Automatic)

The polyglot-test-planner agent creates a structured implementation plan:

  • Groups files into logical phases (2-5 phases typical)
  • Prioritizes by complexity and dependencies
  • Specifies test cases for each file
  • Defines success criteria per phase

Output: .testagent/plan.md

Step 5: Implementation Phase (Automatic)

The polyglot-test-implementer agent executes each phase sequentially:

  1. Read source files to understand the API
  2. Write test files following project patterns
  3. Build using the polyglot-test-builder subagent to verify compilation
  4. Test using the polyglot-test-tester subagent to verify tests pass
  5. Fix using the polyglot-test-fixer subagent if errors occur
  6. Lint using the polyglot-test-linter subagent for code formatting

Each phase completes before the next begins, ensuring incremental progress.

Coverage Types

  • Happy path: Valid inputs produce expected outputs
  • Edge cases: Empty values, boundaries, special characters
  • Error cases: Invalid inputs, null handling, exceptions

State Management

All pipeline state is stored in .testagent/ folder:

FilePurpose
.testagent/research.mdCodebase analysis results
.testagent/plan.mdPhased implementation plan
.testagent/status.mdProgress tracking (optional)

Examples

Example 1: Full Project Testing

Generate unit tests for my Calculator project at C:\src\Calculator

Example 2: Specific File Testing

Generate unit tests for src/services/UserService.ts

Example 3: Targeted Coverage

Add tests for the authentication module with focus on edge cases

Agent Reference

AgentPurposeTools
polyglot-test-generatorCoordinates pipelinerunCommands, codebase, editFiles, search, runSubagent
polyglot-test-researcherAnalyzes codebaserunCommands, codebase, editFiles, search, fetch, runSubagent
polyglot-test-plannerCreates test plancodebase, editFiles, search, runSubagent
polyglot-test-implementerWrites test filesrunCommands, codebase, editFiles, search, runSubagent
polyglot-test-builderCompiles coderunCommands, codebase, search
polyglot-test-testerRuns testsrunCommands, codebase, search
polyglot-test-fixerFixes errorsrunCommands, codebase, editFiles, search
polyglot-test-linterFormats coderunCommands, codebase, search

Requirements

  • Project must have a build/test system configured
  • Testing framework should be installed (or installable)
  • VS Code with GitHub Copilot extension

Troubleshooting

Tests don't compile

The polyglot-test-fixer agent will attempt to resolve compilation errors. Check .testagent/plan.md for the expected test structure.

Tests fail

Review the test output and adjust test expectations. Some tests may require mocking dependencies.

Wrong testing framework detected

Specify your preferred framework in the initial request: "Generate Jest tests for..."

ユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数8.5K
評価4.5 / 5.0
バージョン
更新日2026年5月20日
比較事例1 件

ユーザー評価

4.5(292)
5
23%
4
51%
3
23%
2
2%
1
0%

この Skill を評価

0.0

対応プラットフォーム

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

タイムライン

作成2026年3月16日
最終更新2026年5月20日