fix-test-failures

Diagnose test failures from dependency updates and apply targeted fixes.

Updated Dec 15, 2025
One-click install
npx skills add https://github.com/VectorInstitute/aieng-bot-maintain --skill fix-test-failures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-test-failures
Source: https://github.com/VectorInstitute/aieng-bot-maintain/tree/main/.claude/skills/fix-test-failures
Command: npx skills add https://github.com/VectorInstitute/aieng-bot-maintain --skill fix-test-failures

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill systematically analyzes test failures and applies targeted fixes to unit, integration, and frontend tests, reducing debugging time and keeping test suites green.

Core Features & Use Cases

  • Failure Analysis: parse test failure logs to identify root causes
  • Frontend Tests: adjust component APIs, mocks, and snapshots for updated dependencies
  • Backend Tests: update fixtures, data structures, and expectations in pytest/unittest setups
  • Integration Tests: verify API contracts and timing-related adjustments
  • Use Case: A repository sees flaky or failing tests after a dependency upgrade; this Skill patches tests to reflect new behavior and re-aligns expectations.

Quick Start

Apply fix-test-failures to a PR with failing tests; the Skill will analyze failure logs, apply minimal, targeted test fixes, and re-run tests to confirm the fix.

Frequently Asked Questions about fix-test-failures

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix test failures after updating dependencies?

Test failures after dependency updates often stem from API changes, mock incompatibilities, or fixture misalignments. This Skill analyzes failure logs, identifies root causes across Jest, React Testing Library, pytest, and unittest tests, then applies minimal, targeted patches to restore green test suites while preserving test intent.

Can I use this to fix failing Jest and React Testing Library tests?

Yes. This Skill handles frontend test failures by adjusting component APIs, updating mocks, and aligning snapshots with new dependency behavior. It works with Jest and React Testing Library test suites to diagnose and patch component-level breakages.

How do I update backend tests when pytest or unittest break?

Backend test failures from dependency changes require fixture updates and data structure alignment. This Skill parses pytest and unittest failure logs, updates fixtures and expectations, and validates fixes by running the full test suite to confirm corrections.

What does this Skill do with integration test failures?

Integration tests often fail due to API contract shifts or timing changes after dependency updates. This Skill verifies API contract compliance, adjusts timing-related assertions, and applies targeted fixes to keep integration test suites passing.

Do I need to manually diagnose every test failure?

No. This Skill automates diagnosis by parsing failure logs to identify root causes, then applies AI-assisted patches to unit, integration, and frontend tests. You provide the PR context and logs; the Skill generates minimal fixes and re-validates them.

Will this Skill preserve the original intent of my tests?

Yes. This Skill applies minimal, targeted code changes and updates tests only where necessary to reflect new dependency behavior, keeping test assertions and coverage intact while fixing breakages.