{"id":"baf15c45-5758-4091-a641-32d999d00afb","shortId":"pxnDha","kind":"skill","title":"Polyglot Test Agent","tagline":"Awesome Copilot skill by Github","description":"# Polyglot Test Generation Skill\n\nAn AI-powered skill that generates comprehensive, workable unit tests for any programming language using a coordinated multi-agent pipeline.\n\n## When to Use This Skill\n\nUse this skill when you need to:\n- Generate unit tests for an entire project or specific files\n- Improve test coverage for existing codebases\n- Create test files that follow project conventions\n- Write tests that actually compile and pass\n- Add tests for new features or untested code\n\n## How It Works\n\nThis skill coordinates multiple specialized agents in a **Research → Plan → Implement** pipeline:\n\n### Pipeline Overview\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│                     TEST GENERATOR                          │\n│  Coordinates the full pipeline and manages state            │\n└─────────────────────┬───────────────────────────────────────┘\n                      │\n        ┌─────────────┼─────────────┐\n        ▼             ▼             ▼\n┌───────────┐  ┌───────────┐  ┌───────────────┐\n│ RESEARCHER│  │  PLANNER  │  │  IMPLEMENTER  │\n│           │  │           │  │               │\n│ Analyzes  │  │ Creates   │  │ Writes tests  │\n│ codebase  │→ │ phased    │→ │ per phase     │\n│           │  │ plan      │  │               │\n└───────────┘  └───────────┘  └───────┬───────┘\n                                      │\n                    ┌─────────┬───────┼───────────┐\n                    ▼         ▼       ▼           ▼\n              ┌─────────┐ ┌───────┐ ┌───────┐ ┌───────┐\n              │ BUILDER │ │TESTER │ │ FIXER │ │LINTER │\n              │         │ │       │ │       │ │       │\n              │ Compiles│ │ Runs  │ │ Fixes │ │Formats│\n              │ code    │ │ tests │ │ errors│ │ code  │\n              └─────────┘ └───────┘ └───────┘ └───────┘\n```\n\n## Step-by-Step Instructions\n\n### Step 1: Determine the User Request\n\nMake sure you understand what user is asking and for what scope.\nWhen the user does not express strong requirements for test style, coverage goals, or conventions, source the guidelines from [unit-test-generation.prompt.md](unit-test-generation.prompt.md). This prompt provides best practices for discovering conventions, parameterization strategies, coverage goals (aim for 80%), and language-specific patterns.\n\n### Step 2: Invoke the Test Generator\n\nStart by calling the `polyglot-test-generator` agent with your test generation request:\n\n```\nGenerate unit tests for [path or description of what to test], following the [unit-test-generation.prompt.md](unit-test-generation.prompt.md) guidelines\n```\n\nThe Test Generator will manage the entire pipeline automatically.\n\n### Step 3: Research Phase (Automatic)\n\nThe `polyglot-test-researcher` agent analyzes your codebase to understand:\n- **Language & Framework**: Detects C#, TypeScript, Python, Go, Rust, Java, etc.\n- **Testing Framework**: Identifies MSTest, xUnit, Jest, pytest, go test, etc.\n- **Project Structure**: Maps source files, existing tests, and dependencies\n- **Build Commands**: Discovers how to build and test the project\n\nOutput: `.testagent/research.md`\n\n### Step 4: Planning Phase (Automatic)\n\nThe `polyglot-test-planner` agent creates a structured implementation plan:\n- Groups files into logical phases (2-5 phases typical)\n- Prioritizes by complexity and dependencies\n- Specifies test cases for each file\n- Defines success criteria per phase\n\nOutput: `.testagent/plan.md`\n\n### Step 5: Implementation Phase (Automatic)\n\nThe `polyglot-test-implementer` agent executes each phase sequentially:\n\n1. **Read** source files to understand the API\n2. **Write** test files following project patterns\n3. **Build** using the `polyglot-test-builder` subagent to verify compilation\n4. **Test** using the `polyglot-test-tester` subagent to verify tests pass\n5. **Fix** using the `polyglot-test-fixer` subagent if errors occur\n6. **Lint** using the `polyglot-test-linter` subagent for code formatting\n\nEach phase completes before the next begins, ensuring incremental progress.\n\n### Coverage Types\n- **Happy path**: Valid inputs produce expected outputs\n- **Edge cases**: Empty values, boundaries, special characters\n- **Error cases**: Invalid inputs, null handling, exceptions\n\n## State Management\n\nAll pipeline state is stored in `.testagent/` folder:\n\n| File | Purpose |\n|------|---------|\n| `.testagent/research.md` | Codebase analysis results |\n| `.testagent/plan.md` | Phased implementation plan |\n| `.testagent/status.md` | Progress tracking (optional) |\n\n## Examples\n\n### Example 1: Full Project Testing\n```\nGenerate unit tests for my Calculator project at C:\\src\\Calculator\n```\n\n### Example 2: Specific File Testing\n```\nGenerate unit tests for src/services/UserService.ts\n```\n\n### Example 3: Targeted Coverage\n```\nAdd tests for the authentication module with focus on edge cases\n```\n\n## Agent Reference\n\n| Agent | Purpose | Tools |\n|-------|---------|-------|\n| `polyglot-test-generator` | Coordinates pipeline | runCommands, codebase, editFiles, search, runSubagent |\n| `polyglot-test-researcher` | Analyzes codebase | runCommands, codebase, editFiles, search, fetch, runSubagent |\n| `polyglot-test-planner` | Creates test plan | codebase, editFiles, search, runSubagent |\n| `polyglot-test-implementer` | Writes test files | runCommands, codebase, editFiles, search, runSubagent |\n| `polyglot-test-builder` | Compiles code | runCommands, codebase, search |\n| `polyglot-test-tester` | Runs tests | runCommands, codebase, search |\n| `polyglot-test-fixer` | Fixes errors | runCommands, codebase, editFiles, search |\n| `polyglot-test-linter` | Formats code | runCommands, codebase, search |\n\n## Requirements\n\n- Project must have a build/test system configured\n- Testing framework should be installed (or installable)\n- VS Code with GitHub Copilot extension\n\n## Troubleshooting\n\n### Tests don't compile\nThe `polyglot-test-fixer` agent will attempt to resolve compilation errors. Check `.testagent/plan.md` for the expected test structure.\n\n### Tests fail\nReview the test output and adjust test expectations. Some tests may require mocking dependencies.\n\n### Wrong testing framework detected\nSpecify your preferred framework in the initial request: \"Generate Jest tests for...\"","tags":["polyglot","test","agent","awesome","copilot","github"],"capabilities":["skill","source-github","category-awesome-copilot"],"categories":["awesome-copilot"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/github/awesome-copilot/polyglot-test-agent","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"install_from":"skills.sh"}},"qualityScore":"0.300","qualityRationale":"deterministic score 0.30 from registry signals: · indexed on skills.sh · published under github/awesome-copilot","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T11:40:19.622Z","embedding":null,"createdAt":"2026-04-18T20:25:59.491Z","updatedAt":"2026-04-22T11:40:19.622Z","lastSeenAt":"2026-04-22T11:40:19.622Z","tsv":"'-5':323 '1':141,359,482 '2':200,322,367,498 '3':245,374,508 '4':302,386 '5':345,399 '6':411 '80':193 'actual':73 'add':77,511 'adjust':662 'agent':3,33,93,213,254,311,354,522,524,641 'ai':15 'ai-pow':14 'aim':191 'analysi':470 'analyz':114,255,542 'api':366 'ask':153 'attempt':643 'authent':515 'automat':243,248,305,348 'awesom':4 'begin':429 'best':182 'boundari':446 'build':289,294,375 'build/test':615 'builder':123,381,576 'c':263,494 'calcul':491,496 'call':207 'case':333,443,450,521 'category-awesome-copilot' 'charact':448 'check':648 'code':84,131,134,421,578,606,626 'codebas':62,118,257,469,534,543,545,557,569,580,589,598,608 'command':290 'compil':74,127,385,577,635,646 'complet':425 'complex':328 'comprehens':20 'configur':617 'convent':69,172,186 'coordin':30,90,104,531 'copilot':5,629 'coverag':59,169,189,433,510 'creat':63,115,312,554 'criteria':339 'defin':337 'depend':288,330,670 'descript':225 'detect':262,674 'determin':142 'discov':185,291 'edg':442,520 'editfil':535,546,558,570,599 'empti':444 'ensur':430 'entir':52,241 'error':133,409,449,596,647 'etc':269,279 'exampl':480,481,497,507 'except':455 'execut':355 'exist':61,285 'expect':440,652,664 'express':163 'extens':630 'fail':656 'featur':81 'fetch':548 'file':56,65,284,318,336,362,370,466,500,567 'fix':129,400,595 'fixer':125,406,594,640 'focus':518 'folder':465 'follow':67,230,371 'format':130,422,605 'framework':261,271,619,673,678 'full':106,483 'generat':11,19,47,103,204,212,217,219,237,486,502,530,683 'github':8,628 'go':266,277 'goal':170,190 'group':317 'guidelin':175,234 'handl':454 'happi':435 'identifi':272 'implement':98,113,315,346,353,474,564 'improv':57 'increment':431 'initi':681 'input':438,452 'instal':622,624 'instruct':139 'invalid':451 'invok':201 'java':268 'jest':275,684 'languag':27,196,260 'language-specif':195 'lint':412 'linter':126,418,604 'logic':320 'make':146 'manag':109,239,457 'map':282 'may':667 'mock':669 'modul':516 'mstest':273 'multi':32 'multi-ag':31 'multipl':91 'must':612 'need':45 'new':80 'next':428 'null':453 'occur':410 'option':479 'output':299,342,441,660 'overview':101 'parameter':187 'pass':76,398 'path':223,436 'pattern':198,373 'per':120,340 'phase':119,121,247,304,321,324,341,347,357,424,473 'pipelin':34,99,100,107,242,459,532 'plan':97,122,303,316,475,556 'planner':112,310,553 'polyglot':1,9,210,251,308,351,379,391,404,416,528,539,551,562,574,583,592,602,638 'polyglot-test-build':378,573 'polyglot-test-fix':403,591,637 'polyglot-test-gener':209,527 'polyglot-test-implement':350,561 'polyglot-test-lint':415,601 'polyglot-test-plann':307,550 'polyglot-test-research':250,538 'polyglot-test-test':390,582 'power':16 'practic':183 'prefer':677 'priorit':326 'produc':439 'program':26 'progress':432,477 'project':53,68,280,298,372,484,492,611 'prompt':180 'provid':181 'purpos':467,525 'pytest':276 'python':265 'read':360 'refer':523 'request':145,218,682 'requir':165,610,668 'research':96,111,246,253,541 'resolv':645 'result':471 'review':657 'run':128,586 'runcommand':533,544,568,579,588,597,607 'runsubag':537,549,560,572 'rust':267 'scope':157 'search':536,547,559,571,581,590,600,609 'sequenti':358 'skill':6,12,17,39,42,89 'sourc':173,283,361 'source-github' 'special':92,447 'specif':55,197,499 'specifi':331,675 'src':495 'src/services/userservice.ts':506 'start':205 'state':110,456,460 'step':136,138,140,199,244,301,344 'step-by-step':135 'store':462 'strategi':188 'strong':164 'structur':281,314,654 'style':168 'subag':382,394,407,419 'success':338 'sure':147 'system':616 'target':509 'test':2,10,23,49,58,64,71,78,102,117,132,167,203,211,216,221,229,236,252,270,278,286,296,309,332,352,369,380,387,392,397,405,417,485,488,501,504,512,529,540,552,555,563,566,575,584,587,593,603,618,632,639,653,655,659,663,666,672,685 'testag':464 'testagent/plan.md':343,472,649 'testagent/research.md':300,468 'testagent/status.md':476 'tester':124,393,585 'tool':526 'track':478 'troubleshoot':631 'type':434 'typescript':264 'typic':325 'understand':149,259,364 'unit':22,48,220,487,503 'unit-test-generation.prompt.md':177,178,232,233 'untest':83 'use':28,37,40,376,388,401,413 'user':144,151,160 'valid':437 'valu':445 'verifi':384,396 'vs':625 'work':87 'workabl':21 'write':70,116,368,565 'wrong':671 'xunit':274","prices":[{"id":"5dd956dc-08df-4d5f-8861-b9c1e601f6a5","listingId":"baf15c45-5758-4091-a641-32d999d00afb","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"github","category":"awesome-copilot","install_from":"skills.sh"},"createdAt":"2026-04-18T20:25:59.491Z"}],"sources":[{"listingId":"baf15c45-5758-4091-a641-32d999d00afb","source":"github","sourceId":"github/awesome-copilot/polyglot-test-agent","sourceUrl":"https://github.com/github/awesome-copilot/tree/main/skills/polyglot-test-agent","isPrimary":false,"firstSeenAt":"2026-04-18T21:50:32.513Z","lastSeenAt":"2026-04-22T06:52:27.557Z"},{"listingId":"baf15c45-5758-4091-a641-32d999d00afb","source":"skills_sh","sourceId":"github/awesome-copilot/polyglot-test-agent","sourceUrl":"https://skills.sh/github/awesome-copilot/polyglot-test-agent","isPrimary":true,"firstSeenAt":"2026-04-18T20:25:59.491Z","lastSeenAt":"2026-04-22T11:40:19.622Z"}],"details":{"listingId":"baf15c45-5758-4091-a641-32d999d00afb","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"github","slug":"polyglot-test-agent","source":"skills_sh","category":"awesome-copilot","skills_sh_url":"https://skills.sh/github/awesome-copilot/polyglot-test-agent"},"updatedAt":"2026-04-22T11:40:19.622Z"}}