Generates comprehensive, workable unit tests for any programming language using a multi-agent pipeline. Use when asked to generate tests, write unit tests, improve test coverage, add test coverage, create test files, or test a codebase. Supports C#, TypeScript, JavaScript, Python, Go, Rust, Java, and more. Orchestrates research, planning, and implementation phases to produce tests that compile, pass, and follow project conventions.
The polyglot-test-agent skill generates comprehensive, working unit tests for virtually any programming language using a coordinated multi-agent pipeline. It solves the problem that AI-generated tests often fail to compile, do not pass, or ignore project conventions — by orchestrating a Research to Plan to Implement workflow that verifies each phase against the real build and test system before moving on.
A top-level test generator coordinates the pipeline and manages state. A researcher agent detects the language and framework (C#, TypeScript, JavaScript, Python, Go, Rust, Java, and more), identifies the testing framework (MSTest, xUnit, Jest, pytest, go test, etc.), maps project structure, and discovers build commands. A planner groups files into phases with per-file test cases and success criteria. An implementer writes tests phase by phase, delegating to builder, tester, fixer, and linter subagents to compile code, run tests, fix errors, and format output. Pipeline state is persisted under a .testagent/ folder (research.md, plan.md, optional status.md). The bundled unit-test-generation prompt supplies best practices — convention discovery, parameterization, an 80% coverage goal, and coverage across happy-path, edge, and error cases. Requirements include a configured build/test system and VS Code with the GitHub Copilot extension.
It targets developers and teams wanting to raise or bootstrap test coverage across polyglot codebases, especially those who want tests that actually compile and pass while matching existing patterns. Use cases include testing an entire project, a single file, or a targeted module with edge-case focus. Because the pipeline runs build, test, and lint commands against the user's own project, it executes shell commands — but only for standard, project-scoped compile/test/format operations with no destructive or network-exfiltration behavior, keeping it low risk.
It supports C#, TypeScript, JavaScript, Python, Go, Rust, Java, and more, detecting frameworks such as MSTest, xUnit, Jest, pytest, and go test automatically during the research phase.
The project must have a build/test system configured, the testing framework should be installed or installable, and the source lists VS Code with the GitHub Copilot extension as a requirement.
Yes. The builder, tester, and linter subagents run the project's build, test, and format commands to verify that generated tests compile and pass, using the build commands discovered during research.
The bundled prompt targets roughly 80% code coverage and generates tests across happy-path, edge-case, and error-case scenarios.
In a .testagent/ folder — research.md holds codebase analysis, plan.md holds the phased plan, and an optional status.md tracks progress.
Quick Setup:
.claude/skills/Repository
github/awesome-copilot