agentleFS
mystilleefmystilleef/spae-framework/skills/troubleshoot/SKILL.md

troubleshoot

Skill2 starsChanged 15 days agoMITView on GitHub

- Invoke for failures, regressions, unclear errors, flaky behavior, broken tests, build issues, runtime faults, or unexpected output. - Execute immediately upon invocation. Don't wait for confirmation. - Observe real behavior, test one hypothesis at a time, fix proven root causes, and verify the result. - Identify the root cause with evidence. - Apply the smallest safe fix. - Prove the fix through targeted tests and the strongest relevant check. Determine input by one of the following: - Issue, symptom,…

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 3 projects that use this

  • KirchliveSkill

    skill-routing

    Decides which of the installed skills a task needs and loads them before the work starts. This skill should be used at the beginning of any multi-step task — build, fix, refactor, migrate, review, plan, release, research, write, design, video — and again at every phase change, after context compaction, and when work moves into a different part of the codebase. Use it for requests like "let's build X", "fix this bug", "refactor Y", "plan the migration", "review this", and also when the user asks which skill applies, why a skill did not fire, or asks to check what is available.

    Also in 5 projects that use this

  • sublimotionSkill

    agent-runtime

    Launch and manage detached agent runs on EKS via the agent-runner CLI. Use when the user says "launch an agent run", "agent runtime", "agent-runner", "run this spec on the cluster", "check run status", "agent run logs", or "stop a run". Do NOT use for writing the agent-runner code itself (edit the sibling ../agent-runner repo), Terraform of the foundation (use terraform-automation), or GPU serving deployments (use infra-deployer).

    Also in 5 projects that use this

  • +6 more from naman10parikh

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 0 are common, 14 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the targeted check; on rejection, return to PLAN.

    line 59
  2. Distinctive:

    After 3 rejections, trace data flow from entry point.

    line 60
  3. Very specific:

    Read references/testing-guide.md.

    line 61
  4. Distinctive:

    Don't fix until the test confirms the hypothesis.

    line 81
  5. Distinctive:

    After 3 failed hypotheses, stop generating new ones and trace data flow from the entry point.

    line 82
  6. Distinctive:

    When coexisting issues or expensive reproduction arise, assess severity and scope before observing.

    line 84
  7. Distinctive:

    Prefer evidence from real failures over inference.

    line 87
  8. Distinctive:

    No Confirmation Halts: Never halt to request user confirmation mid-investigation.

    line 93
  9. Distinctive:

    Don't broaden scope beyond the failure under investigation.

    line 96
  10. Distinctive:

    Don't mask failures, weaken tests, or remove coverage to pass checks.

    line 97
  11. Distinctive:

    Don't leave speculative changes after a hypothesis fails.

    line 98
  12. Very specific:

    No violations of DRY and SOLID software principles.

    line 99
  13. Distinctive:

    No workarounds, hacks, or shortcuts.

    line 100
  14. Very specific:

    Never edit build or tool configuration files.

    line 103
  15. Very specific:

    Never suppress or disable compiler or linter diagnostics.

    line 106
  16. Very specific:

    Never weaken type contracts to silence errors.

    line 108
  17. Distinctive:

    All test suites pass without any issues.

    line 113
  18. Very specific:

    No self-introduced cleanup violation remains per references/cleanup-guide.md.

    line 118
  19. Distinctive:

    Keep prose terse while ensuring clarity.

    line 125
  20. Distinctive:

    Use lists and sub-lists for long sentences and dense paragraphs.

    line 128

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “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

Troubleshoot

When to use

  • Invoke for failures, regressions, unclear errors, flaky behavior, broken tests, build issues, runtime faults, or unexpected output.
  • Execute immediately upon invocation. Don't wait for confirmation.

Goal

  • Observe real behavior, test one hypothesis at a time, fix proven root causes, and verify the result.
  • Identify the root cause with evidence.
  • Apply the smallest safe fix.
  • Prove the fix through targeted tests and the strongest relevant check.

Input

Determine input by one of the following:

  • Issue, symptom, error, failing command, stack trace, or test failure provided by the user.
  • Current repository state and failing verification when the user gives only a broad troubleshooting request.

Testing

See references/testing-guide.md for test structure, isolation, mocking, assertion, and performance standards.

Shell commands

See references/shell-command-guide.md for command safety, timeouts, redirects, and non-interactive environment directives.

Cleanup

See references/cleanup-guide.md for the self-introduced-artifact checklist and diff-only audit scope.

Workflow

  1. GATE—Require an actionable symptom: error, failure, trace, or incorrect output. Halt with a diagnostic if none exists.
  2. ORIENT—Name the failure and scope in one sentence. State what won't change.
  3. PLAN—Read references/shell-command-guide.md. State one likely root cause and one targeted check to confirm or reject it.
  4. ACT—Execute:
    • Reproduce the failure.
    • Run the targeted check; on rejection, return to PLAN.
    • After 3 rejections, trace data flow from entry point.
    • Read references/testing-guide.md. Write a failing test reproducing the root cause, when practical.
    • Apply the smallest safe fix after evidence confirms.
  5. VERIFY—Loop over every criterion declared in PLAN:
    • Audit the task's own git diff/git status against the Self-cleanup checklist in references/cleanup-guide.md; remove every self-introduced artifact before proceeding.
    • For each unmet criterion: revert the fix, return to ACT, execute, then re-enter VERIFY.
    • Exit only when all criteria pass.
    • Halt only for out-of-scope blockers (missing external services, credentials, or hardware dependencies).
  6. PERSIST—Write all fix artifacts once, atomically, after VERIFY passes. Never precedes VERIFY. Never partial.
  7. REPORT—Emit the result following the result directives and using the result template.

Directives

  • Work one hypothesis at a time.
  • Don't fix until the test confirms the hypothesis.
  • After 3 failed hypotheses, stop generating new ones and trace data flow from the entry point.
  • When coexisting issues or expensive reproduction arise, assess severity and scope before observing.
  • Fix root causes, not symptoms.
  • Prefer evidence from real failures over inference.
  • State missing evidence plainly. If you didn't run a check, say so.
  • Fix contract mismatches and unhandled failure paths explicitly.

Constraints

  • No Confirmation Halts: Never halt to request user confirmation mid-investigation; fix proven root causes autonomously or report diagnostic findings.
  • Don't broaden scope beyond the failure under investigation.
  • Don't mask failures, weaken tests, or remove coverage to pass checks.
  • Don't leave speculative changes after a hypothesis fails.
  • No violations of DRY and SOLID software principles.
  • No workarounds, hacks, or shortcuts.
  • Forbid laziness; fix issues properly, correctly, and idiomatically; for example, don't add lint ignore comments.
  • Never edit build or tool configuration files; for example, tsconfig.json, .eslintrc.*, webpack.config.*, vite.config.*, jest.config.*, Makefile, pyproject.toml, Cargo.toml.
  • Never suppress or disable compiler or linter diagnostics; for example, @ts-ignore, eslint-disable, @SuppressWarnings, # type: ignore.
  • Never weaken type contracts to silence errors; for example, as any, ! non-null assertions, or broadening union types.

Verification

  • All test suites pass without any issues.
  • Reproduced the failure before the fix when practical.
  • Root cause identified with evidence.
  • Fix covered by a test when practical.
  • Strongest relevant checks pass.
  • No self-introduced cleanup violation remains per references/cleanup-guide.md.
  • Report remaining risks or skipped checks plainly.

Result directives

  • Minimum words. Maximum signal.
  • Keep prose terse while ensuring clarity.
  • Optimize prose for agent, token, and context efficiency.
  • Split actions, findings, and summaries into terse bullet points.
  • Use lists and sub-lists for long sentences and dense paragraphs.
  • Emit the result template as live markdown—never in a code fence.
  • Output nothing outside the template.

Result template

<!-- prettier-ignore-start -->
### Execution Summary

- **Actions**:
  - [Terse list of actions taken]
- **Files**:
  - [Terse list of affected files]
- **Findings**:
  - [Terse list of notable findings]
- **Summary**:
  - [Terse list of summary of changes]

> **Troubleshoot Status** • `[scope]`
> **Result**: [Fixed | No Action | Failed]
> **Impact**: [Terse impact statement]
<!-- prettier-ignore-end -->

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.