agentleFS
zhouey314-cloudzhouey314-cloud/ai-agent-skills/skills/failure-analyzer/SKILL.md

failure-analyzer

Skill0 starsChanged 48 days agoMITView on GitHub

Diagnose reproducible failures from logs and state evidence, separating observed facts from hypotheses.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when a test, deployment, retrieval or workflow step fails and evidence is available.

    line 14
  2. Distinctive:

    Run the smallest test, update the diagnosis and preserve failures as regression cases.

    line 29
  3. Distinctive:

    Only then propose a fix and re-run the original failing path.

    line 30
  4. Very specific:

    If the failure cannot be reproduced, mark cause UNKNOWN and specify missing observation.

    line 34
  5. Very specific:

    Run python3 tests/validate.py from the repository root to check this skill's contract and example provenance.

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Failure Analyzer

Purpose

Choose the smallest informative next experiment, not a speculative rewrite.

When to Use

Use when a test, deployment, retrieval or workflow step fails and evidence is available.

Inputs

expected, observed, logs, reproduction_steps, recent_changes.

Outputs

symptom, likely_causes[], evidence[], unknowns[], next_experiment, regression_case.

Workflow

  1. Reproduce the failure and capture exact command, version, environment and symptom.
  2. Separate observed facts from possible causes.
  3. Rank hypotheses by evidence and choose one discriminating read-only or reversible experiment.
  4. Run the smallest test, update the diagnosis and preserve failures as regression cases.
  5. Only then propose a fix and re-run the original failing path.

Failure Handling

If the failure cannot be reproduced, mark cause UNKNOWN and specify missing observation. Do not edit baselines to manufacture a pass.

Example

synthetic_unverified: retrieval returns zero matching chunks; inspect chunking and access filters before prompts.

Tests

Run python3 tests/validate.py from the repository root to check this skill's contract and example provenance. This is a structural test, not model-quality evidence.

Limitations

Logs may omit the causal event; do not claim certainty from correlation alone.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.