fix-tests
Fix Failing Tests
Use this when you have failing test output. The goal is to fix ALL failing tests, re-run tests, and iterate until everything passes.
Usage
/fix-tests
Use this after you've pasted test failure output into the conversation.
What It Does
-
Understands ALL Failures
- Reads entire test log (pytest / Jest / parallel tests)
- Checks "Test Results" summary for ALL failing tests (looks for
✗orFAILEDmarkers) - Checks "Failed Test Details" for MULTIPLE failing test groups
- Notes ALL test groups that failed (backend, frontend, linting, etc.)
- Creates list of all failures before starting fixes
-
Fixes EACH Failure
- For EACH failing service/group:
- Opens failing test files and implementation files
- Makes smallest, clearest change
- Prefers fixing implementation over changing tests
- Fixes ALL failures before proceeding
- For EACH failing service/group:
-
Re-runs Tests for EACH Fix
- Backend:
pytest(or with-kfor specific tests) - Frontend:
npm run lintornpm run test - Verifies each group passes before moving to next
- Repeats if tests still fail
- Backend:
-
Re-runs Full Test Suite
- CRITICAL: Always re-runs original command used to run tests
- Catches hidden failures or new failures from fixes
- Only stops when full suite passes with zero failures
Important Notes
- Don't stop after fixing one failure - check for multiple failing groups
- Always re-run full test suite after fixes
- Parse entire error output - summary AND detailed sections
Testing Commands
Backend (pytest):
pytest # All unit tests
pytest -k "pattern" # Specific tests
pytest tests/integration/ # Integration tests
Frontend:
npm run lint
npm run test
More from v1-io/v1tamins
interview-me
Use when the user provides an idea, feature request, Linear ticket, or concept that needs fleshing out. Triggers on "interview me about X", "help me spec out Y", "I have an idea for Z", "flesh out this idea".
12complexity
Use when reducing cognitive complexity, flattening nested code, or simplifying functions. Triggers on "reduce complexity", "simplify", "too nested".
10code-review
Use when reviewing a PR or posting code review feedback to GitHub. Triggers on "review this PR", "code review", "check this pull request".
9write-tests
Use when writing unit tests for code changes or new functionality. Triggers on "write tests", "add tests", "test this code".
9address-review
Use when addressing PR review comments from Copilot, bots, or humans. Triggers on "fix review comments", "address Copilot feedback", "respond to PR comments".
8prompt-engineering
Use when writing commands, hooks, skills for agents, or prompts for sub-agents or any other LLM interaction. Triggers on "optimize prompt", "improve LLM output", "prompt template", "write a skill", "system prompt".
8