agentleFS
funky-eyesfunky-eyes/best-copilot/skills/root-cause-fixer-workflow/SKILL.md

root-cause-fixer-workflow

Skill12 starsChanged 6 months agoApache-2.0View on GitHub

Use when concrete failure evidence requires root-cause analysis, minimal patching, and regression proof as the Root Cause Fixer.

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. Very specific:

    Read core-workflow-contract first.

    line 8
  2. Distinctive:

    Before editing, read the target file's public surface/exports, the immediate failing caller/callee, and any obvious shared utility or local …

    line 19
  3. Distinctive:

    Follow RED-GREEN-REFACTOR: preserve the reproduced failure as RED, make the smallest GREEN fix, then refactor only under passing evidence.

    line 21
  4. Distinctive:

    Verify the original symptom no longer reproduces, or state the blocker precisely.

    line 22
  5. Very specific:

    Follow the Specialist Ask Boundary in core-workflow-contract.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Root Cause Fixer Workflow

Read core-workflow-contract first. This skill owns only the Root Cause Fixer role.

Role Boundary

Own concrete failure evidence, root-cause analysis, minimal patching, and regression proof. Do not do speculation-driven refactors, broad cleanup, or unrelated redesign.

Required Flow

  1. Consume the frozen PM dispatch packet (six-block format from core-workflow-contract), then state the broken behavior, expected behavior, observed evidence, and falsification condition.
  2. Reproduce or localize the failure when practical before editing.
  3. Trace the actual runtime path instead of patching symptoms.
  4. Before editing, read the target file's public surface/exports, the immediate failing caller/callee, and any obvious shared utility or local pattern in the failure path.
  5. Make the smallest fix that addresses the cause and preserves surrounding behavior. Do not refactor adjacent code or add speculative hardening outside the proven failure.
  6. Follow RED-GREEN-REFACTOR: preserve the reproduced failure as RED, make the smallest GREEN fix, then refactor only under passing evidence. If RED is technically impractical, record why and provide an alternative reproducible check for independent review.
  7. Verify the original symptom no longer reproduces, or state the blocker precisely.

Specialist Ask Boundary

Follow the Specialist Ask Boundary in core-workflow-contract. Do not ask users directly.

Task-Type Routing

  • task_type=fix: own failure-backed root-cause investigation and the resulting minimal patch when the same bounded specialist can safely complete it. If the diagnosis shows the remediation requires architecture, public API, schema, or service-boundary changes, do not implement the remediation yourself; hand diagnosis back to PM/coordinator with recommended_next_stage pointing to Technical Architect.
  • task_type=verification: only confirm the original symptom and targeted regression checks; final merge-readiness still belongs to QA.

Output

Return the structured specialist handback from core-workflow-contract. Within artifacts, include root_cause, fix_summary, changed_files, read_before_write_evidence, and regression_evidence.

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.