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

troubleshoot

Skill1 starsChanged 4 months 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,…

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup and frontend-design.

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.
  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 3 projects that use this

  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. 0 are common, 15 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 15

    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 80
  5. Distinctive:

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

    line 81
  6. Distinctive:

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

    line 83
  7. Distinctive:

    Prefer evidence from real failures over inference.

    line 86
  8. Distinctive:

    Don't broaden scope beyond the failure under investigation.

    line 92
  9. Distinctive:

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

    line 93
  10. Distinctive:

    Don't leave speculative changes after a hypothesis fails.

    line 94
  11. Distinctive:

    Don't skip clarification when no actionable symptom exists.

    line 95
  12. Very specific:

    No violations of DRY and SOLID software principles.

    line 96
  13. Distinctive:

    No workarounds, hacks, or shortcuts.

    line 97
  14. Very specific:

    Never edit build or tool configuration files.

    line 100
  15. Very specific:

    Never suppress or disable compiler or linter diagnostics.

    line 103
  16. Very specific:

    Never weaken type contracts to silence errors.

    line 105
  17. Distinctive:

    All test suites pass without any issues.

    line 110
  18. Very specific:

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

    line 115
  19. Distinctive:

    If verification fails, revert the fix and return to step 2.

    line 117
  20. Distinctive:

    Keep prose terse while ensuring clarity.

    line 123
  21. Distinctive:

    Use lists and sub-lists over paragraphs and long sentences.

    line 126

“Common” is measured: kept by at least 6 in 10 of the 14 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 and ask 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.
  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

  • 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.
  • Don't skip clarification when no actionable symptom exists.
  • 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.
  • If verification fails, revert the fix and return to step 2.
  • 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 over paragraphs and long sentences.
  • 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.