{"id":"4cd6b6fa-076a-49ff-a68a-9746fcd0365d","shortId":"qbdqGD","kind":"skill","title":"test-fixing","tagline":"Systematically identify and fix all failing tests using smart grouping strategies. Use when explicitly asks to fix tests (\"fix these tests\", \"make tests pass\"), reports test failures (\"tests are failing\", \"test suite is broken\"), or completes implementation and wants tests passin","description":"# Test Fixing\n\nSystematically identify and fix all failing tests using smart grouping strategies.\n\n## When to Use\n- Explicitly asks to fix tests (\"fix these tests\", \"make tests pass\")\n- Reports test failures (\"tests are failing\", \"test suite is broken\")\n- Completes implementation and wants tests passing\n- Mentions CI/CD failures due to tests\n\n## Systematic Approach\n\n### 1. Initial Test Run\n\nRun `make test` to identify all failing tests.\n\nAnalyze output for:\n\n- Total number of failures\n- Error types and patterns\n- Affected modules/files\n\n### 2. Smart Error Grouping\n\nGroup similar failures by:\n\n- **Error type**: ImportError, AttributeError, AssertionError, etc.\n- **Module/file**: Same file causing multiple test failure\n- **Root cause**: Missing dependencies, API changes, refactoring impacts\n\nPrioritize groups by:\n\n- Number of affected tests (highest impact first)\n- Dependency order (fix infrastructure before functionality)\n\n### 3. Systematic Fixing Process\n\nFor each group (starting with highest impact):\n\n1. **Identify root cause**\n\n   - Read relevant code\n   - Check recent changes with `git diff`\n   - Understand the error pattern\n\n2. **Implement fix**\n\n   - Use Edit tool for code changes\n   - Follow project conventions (see CLAUDE.md)\n   - Make minimal, focused changes\n\n3. **Verify fix**\n\n   - Run subset of tests for this group\n   - Use pytest markers or file patterns:\n     ```bash\n     uv run pytest tests/path/to/test_file.py -v\n     uv run pytest -k \"pattern\" -v\n     ```\n   - Ensure group passes before moving on\n\n4. **Move to next group**\n\n### 4. Fix Order Strategy\n\n**Infrastructure first:**\n\n- Import errors\n- Missing dependencies\n- Configuration issues\n\n**Then API changes:**\n\n- Function signature changes\n- Module reorganization\n- Renamed variables/functions\n\n**Finally, logic issues:**\n\n- Assertion failures\n- Business logic bugs\n- Edge case handling\n\n### 5. Final Verification\n\nAfter all groups fixed:\n\n- Run complete test suite: `make test`\n- Verify no regressions\n- Check test coverage remains intact\n\n## Best Practices\n\n- Fix one group at a time\n- Run focused tests after each fix\n- Use `git diff` to understand recent changes\n- Look for patterns in failures\n- Don't move to next group until current passes\n- Keep changes minimal and focused\n\n## Example Workflow\n\nUser: \"The tests are failing after my refactor\"\n\n1. Run `make test` → 15 failures identified\n2. Group errors:\n   - 8 ImportErrors (module renamed)\n   - 5 AttributeErrors (function signature changed)\n   - 2 AssertionErrors (logic bugs)\n3. Fix ImportErrors first → Run subset → Verify\n4. Fix AttributeErrors → Run subset → Verify\n5. Fix AssertionErrors → Run subset → Verify\n6. Run full suite → All pass ✓\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["test","fixing","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows"],"capabilities":["skill","source-sickn33","skill-test-fixing","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/test-fixing","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34460 github stars · SKILL.md body (3,021 chars)","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-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T06:52:00.597Z","embedding":null,"createdAt":"2026-04-18T21:46:11.531Z","updatedAt":"2026-04-22T06:52:00.597Z","lastSeenAt":"2026-04-22T06:52:00.597Z","tsv":"'1':96,177,355 '15':359 '2':121,194,362,374 '3':166,212,378 '4':246,251,385 '5':284,369,391 '6':397 '8':365 'affect':119,155 'analyz':108 'api':146,264 'approach':95 'ask':18,62,436 'assert':276 'assertionerror':133,375,393 'attributeerror':132,370,387 'bash':228 'best':305 'boundari':444 'broken':37,81 'bug':280,377 'busi':278 'case':282 'caus':138,143,180 'chang':147,186,202,211,265,268,325,341,373 'check':184,300 'ci/cd':89 'clarif':438 'claude.md':207 'clear':411 'code':183,201 'complet':39,82,292 'configur':261 'convent':205 'coverag':302 'criteria':447 'current':338 'depend':145,160,260 'describ':415 'diff':189,321 'due':91 'edg':281 'edit':198 'ensur':240 'environ':427 'environment-specif':426 'error':115,123,129,192,258,364 'etc':134 'exampl':345 'expert':432 'explicit':17,61 'fail':9,33,52,77,106,351 'failur':30,74,90,114,127,141,277,330,360 'file':137,226 'final':273,285 'first':159,256,381 'fix':3,7,20,22,46,50,64,66,162,168,196,214,252,290,307,318,379,386,392 'focus':210,314,344 'follow':203 'full':399 'function':165,266,371 'git':188,320 'group':13,56,124,125,151,172,221,241,250,289,309,336,363 'handl':283 'highest':157,175 'identifi':5,48,104,178,361 'impact':149,158,176 'implement':40,83,195 'import':257 'importerror':131,366,380 'infrastructur':163,255 'initi':97 'input':441 'intact':304 'issu':262,275 'k':237 'keep':340 'limit':403 'logic':274,279,376 'look':326 'make':25,69,101,208,295,357 'marker':224 'match':412 'mention':88 'minim':209,342 'miss':144,259,449 'modul':269,367 'module/file':135 'modules/files':120 'move':244,247,333 'multipl':139 'next':249,335 'number':112,153 'one':308 'order':161,253 'output':109,421 'pass':27,71,87,242,339,402 'passin':44 'pattern':118,193,227,238,328 'permiss':442 'practic':306 'priorit':150 'process':169 'project':204 'pytest':223,231,236 'read':181 'recent':185,324 'refactor':148,354 'regress':299 'relev':182 'remain':303 'renam':271,368 'reorgan':270 'report':28,72 'requir':440 'review':433 'root':142,179 'run':99,100,215,230,235,291,313,356,382,388,394,398 'safeti':443 'scope':414 'see':206 'signatur':267,372 'similar':126 'skill':406 'skill-test-fixing' 'smart':12,55,122 'source-sickn33' 'specif':428 'start':173 'stop':434 'strategi':14,57,254 'subset':216,383,389,395 'substitut':424 'success':446 'suit':35,79,294,400 'systemat':4,47,94,167 'task':410 'test':2,10,21,24,26,29,31,34,43,45,53,65,68,70,73,75,78,86,93,98,102,107,140,156,218,293,296,301,315,349,358,430 'test-fix':1 'tests/path/to/test_file.py':232 'time':312 'tool':199 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'total':111 'treat':419 'type':116,130 'understand':190,323 'use':11,15,54,60,197,222,319,404 'user':347 'uv':229,234 'v':233,239 'valid':429 'variables/functions':272 'verif':286 'verifi':213,297,384,390,396 'want':42,85 'workflow':346","prices":[{"id":"c3051fe6-e35b-4018-b237-c41a2e61601f","listingId":"4cd6b6fa-076a-49ff-a68a-9746fcd0365d","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:46:11.531Z"}],"sources":[{"listingId":"4cd6b6fa-076a-49ff-a68a-9746fcd0365d","source":"github","sourceId":"sickn33/antigravity-awesome-skills/test-fixing","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/test-fixing","isPrimary":false,"firstSeenAt":"2026-04-18T21:46:11.531Z","lastSeenAt":"2026-04-22T06:52:00.597Z"}],"details":{"listingId":"4cd6b6fa-076a-49ff-a68a-9746fcd0365d","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"test-fixing","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34460,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-22T06:40:00Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"cf07a49051f00e9681b7b44a24ba5c3fbdc386b3","skill_md_path":"skills/test-fixing/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/test-fixing"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"test-fixing","description":"Systematically identify and fix all failing tests using smart grouping strategies. Use when explicitly asks to fix tests (\"fix these tests\", \"make tests pass\"), reports test failures (\"tests are failing\", \"test suite is broken\"), or completes implementation and wants tests passing."},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/test-fixing"},"updatedAt":"2026-04-22T06:52:00.597Z"}}