agentleFS
valorisavalorisa/Claude-Skills/skills/find-bugs/SKILL.md

find-bugs

Skill15 starsChanged 5 months agoMITView on GitHub

Analyze a file to detect bugs and propose fixes. Slash command: /find-bugs Auto-detection: "find bugs", "debug this file", "what bugs in", "analyze this file for errors", "bug hunt", "cherche les bugs", "quels bugs dans", "analyse ce fichier pour les erreurs". A numbered list of bugs with explanation and fix, followed by a proposal to apply the corrections after user agreement.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use conversation-memory, gcp-cloud-run and 4 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.
  • xfstudioSkill

    conversation-memory

    Persistent memory systems for LLM conversations including short-term, long-term, and entity-based memory Use when: conversation memory, remember, memory persistence, long-term memory, chat history.

    Also in 3 projects that use this

  • xfstudioSkill

    gcp-cloud-run

    Specialized skill for building production-ready serverless applications on GCP. Covers Cloud Run services (containerized), Cloud Run Functions (event-driven), cold start optimization, and event-driven architecture with Pub/Sub.

    Also in 3 projects that use this

  • rohunvoraSkill

    context-optimization

    Apply optimization techniques to extend effective context capacity. Use when context limits constrain agent performance, when optimizing for cost or latency, or when implementing long-running agent systems.

    Also in 3 projects that use this

  • silvainfmSkill

    page-cro

    When the user wants to optimize, improve, or increase conversions on any marketing page — including homepage, landing pages, pricing pages, feature pages, or blog posts. Also use when the user says "CRO," "conversion rate optimization," "this page isn't converting," "improve conversions," or "why isn't this page working." For signup/registration flows, see signup-flow-cro. For post-signup activation, see onboarding-cro. For forms outside of signup, see form-cro. For popups/modals, see popup-cro.

    Also in 3 projects that use this

  • OpenAISkill

    executing-plans

    Use when you have a written implementation plan to execute in a separate session with review checkpoints

    Also in 4 projects that use this

  • +1 more from xfstudio

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the file with Read.

    line 14
  2. Distinctive:

    If relevant, run available static analysis tools (linter, type-checker, compiler) via Bash to collect additional signals.

    line 15
  3. Distinctive:

    Ask the user: "Do you want me to apply these fixes?

    line 22
  4. Distinctive:

    Never modify the file without explicit user confirmation.

    line 27
  5. Distinctive:

    If no bugs are found, say so clearly rather than inventing problems.

    line 30

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

Find Bugs

Analyze a file to detect bugs and propose fixes.

Trigger

Slash command: /find-bugs

Auto-detection: "find bugs", "debug this file", "what bugs in", "analyze this file for errors", "bug hunt", "cherche les bugs", "quels bugs dans", "analyse ce fichier pour les erreurs".

Process

  1. Identify the target file. If the user doesn't specify, ask which file to analyze.
  2. Read the file with Read.
  3. If relevant, run available static analysis tools (linter, type-checker, compiler) via Bash to collect additional signals.
  4. Analyze the code to detect bugs: logical errors, off-by-one, unhandled null/undefined, race conditions, resource leaks, poor error handling, security vulnerabilities.
  5. Present results as a numbered list. For each bug:
    • Line(s): affected line number(s)
    • Issue: clear description of the bug
    • Impact: what can go wrong
    • Proposed fix: the correction as a diff or snippet
  6. Ask the user: "Do you want me to apply these fixes? (all / some / none)"
  7. Apply only the confirmed fixes via Edit.

Constraints

  • Never modify the file without explicit user confirmation.
  • Focus on real bugs — no refactoring, no stylistic suggestions, no performance optimizations unless they cause a bug.
  • One file at a time. If the user requests multiple files, process sequentially asking confirmation for each.
  • If no bugs are found, say so clearly rather than inventing problems.

Output

A numbered list of bugs with explanation and fix, followed by a proposal to apply the corrections after user agreement.

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.