Pytest triage

From Goldziher/ai-rulez · View interactive version

Pytest triage is an AI agent skill from the GitHub repository Goldziher/ai-rulez. Diagnoses failing pytest runs from the output the user pastes or the last local run. Use when tests fail and the cause is unclear; not for writing new tests.

How to use this skill

Skill file

Pytest triage

  1. Run pytest -x -q --tb=short unless the user pasted output.
  2. Find the first failing test and read the test and the code it calls.
  3. Match the failure against references/common-failures.md.
  4. Report the likely cause in two sentences and propose a fix. Do not edit files unless the user asks.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.