Fix

Find failing tests, fix them, and commit. Minimize back-and-forth — act autonomously.

verkyyi 5 updated 2mo ago
Claude CodeGeneric
View source ↗
# Fix (mobile-friendly)

Find failing tests, fix them, and commit. Minimize back-and-forth — act autonomously.

## Steps

1. Detect the test framework and run tests:

   ```bash
   if [[ -f package.json ]]; then
     echo "node"
     cat package.json | grep -E '"test"' || echo "no test script"
   elif [[ -f Makefile ]]; then
     echo "make"
     grep -E '^test:' Makefile || echo "no test target"
   elif [[ -f pytest.ini ]] || [[ -f setup.py ]] || [[ -f pyproject.toml ]]; then
     echo "python"
   else
     echo "unknown"
   fi
  1. Run the tests and capture output:

    • Node: npm test 2>&1
    • Python: pytest 2>&1
    • Make: make test 2>&1
    • Other: ask the user what command runs tests
  2. If tests pass, report "All tests passing" and stop.

  3. If tests fail:

    • Identify which tests failed and why
    • Read the relevant source files
    • Fix the issues
    • Re-run the tests to confirm the fix
  4. Once tests pass, stage only the files you changed and commit with a descriptive message explaining what was actually fixed.

  5. Report what was fixed in 1-2 sentences.

Important

  • Run tests first — don't fix what isn't broken
  • Fix and re-run in a loop until tests pass (max 3 attempts)
  • If you can't fix it after 3 attempts, report what's wrong and stop
  • Keep the commit message descriptive of what was actually fixed

Maintain Fix?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[Fix on getagentictools](https://getagentictools.com/loops/verkyyi-fix-mobile-friendly?ref=badge)