agentleFS
kaiohenricunhakaiohenricunha/dotbabel/skills/create-inspection/SKILL.md

create-inspection

Skill0 starsChanged 2 months agoMITView on GitHub

Investigate a specific problem and surface viable fix paths with trade-offs, saved to docs/inspections/. Triggers on: "how should I fix", "what are my options", "investigate before I touch".

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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:

    Locate the problem in the codebase: Use Grep, Glob, and Read to find the relevant files, functions, configs, and tests.

    line 36
  2. Distinctive:

    Diagnose root cause: Read enough code to understand _why_ the problem occurs, not just _where_.

    line 38
  3. Very specific:

    Every root-cause claim must be backed by a file:line citation or command output.

    line 103
  4. Distinctive:

    Always provide at least 2 distinct fix options.

    line 104
  5. Distinctive:

    Never implement a fix. Surface options and recommend.

    line 105
  6. Distinctive:

    Do not commit the inspection file.

    line 106
  7. Distinctive:

    If the problem cannot be localized (e.g.

    line 107
  8. Distinctive:

    Keep the document concise.

    line 108

≈ “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

Investigate a specific problem and produce a structured fix-path document saved to the project's docs/inspections/ directory.

Trigger: when the user asks "how should I fix X", "what are my options for Y", "investigate Z before I touch it", or triggers directly via /create-inspection. Also useful before invoking the /fix-with-evidence skill to pre-evaluate approaches.

Arguments: $ARGUMENTS — a description of the problem or subject to inspect (e.g. "auth token refresh race condition", "N+1 queries in /api/dashboard", "flaky E2E login test"). Required — if empty, ask the user.

Purpose

/create-inspection is not an audit (it doesn't enumerate all issues) and not a fix (it doesn't implement anything). Its output is a decision document: here is what is broken, here are the viable paths to fix it, here is a recommended approach with rationale. Sits between the /create-audit skill (find problems) and the /fix-with-evidence skill (implement the fix).

Steps

  1. Parse the subject from $ARGUMENTS. If empty or vague, ask the user to describe the symptom or problem.
  2. Locate the problem in the codebase. Use Grep, Glob, and Read to find the relevant files, functions, configs, and tests. Do not guess — verify every claim with a file:line citation.
  3. Diagnose root cause. Read enough code to understand why the problem occurs, not just where. If there are tests, run them to observe the failure. If the issue is behavioural (performance, flakiness), read logs or run diagnostic commands.
  4. Generate at least 2 fix options. For each option:
    • Describe the approach concisely
    • List the files/components touched
    • State the trade-offs (complexity, blast radius, test surface, reversibility)
    • Estimate effort: low (< 1 hr), medium (1–4 hrs), high (> 4 hrs)
    • Assess risk: low, medium, high
  5. Pick a recommended option and explain why it best balances correctness, risk, and effort. If options are genuinely tied, say so and flag the deciding factor for the user.
  6. Generate the inspection document with this structure:

    # Inspection: <Subject> — <YYYY-MM-DD>
    
    <One-sentence description of the problem and its impact.>
    
    ## Root Cause
    
    <Evidence-backed explanation of why the problem occurs. Include file:line citations.>
    
    ## Scope
    
    Files and components relevant to this problem.
    
    | File / Component | Role in the problem |
    | ---------------- | ------------------- |
    | ...              | ...                 |
    
    ## Fix Options
    
    ### Option 1: <Name>
    
    **Approach:** <description>
    **Files touched:** <list>
    **Effort:** low | medium | high
    **Risk:** low | medium | high
    **Trade-offs:** <pros and cons>
    
    ### Option 2: <Name>
    
    ...
    
    ## Recommendation
    
    **Use Option N: <Name>**
    
    <2-3 sentences explaining why this option is best for the current situation.
    Call out any assumptions (e.g. "assumes test coverage exists for the path").>
    
    ## Next Step
    
    Run `/fix-with-evidence <subject>` using the recommended option,
    or proceed manually using the approach above.
  7. Generate a filename in the format: <topic-slug>-<YYYY-MM-DD>.md (e.g. auth-refresh-race-2026-04-14.md). Use lowercase kebab-case.
  8. Write the file to docs/inspections/<filename>. Create the docs/inspections/ directory if it doesn't exist.
  9. Report to the user: show the file path, the root cause in one sentence, and the recommended option. Do not dump the full document into chat.

Rules

  • Every root-cause claim must be backed by a file:line citation or command output. No assumptions.
  • Always provide at least 2 distinct fix options. Single-option "inspections" are just instructions.
  • Never implement a fix. Surface options and recommend. The user decides.
  • Do not commit the inspection file. Leave it untracked for the user to review.
  • If the problem cannot be localized (e.g. no repro, insufficient context), state that clearly and list what additional information is needed rather than producing a speculative document.
  • Keep the document concise. Tables over prose where possible. No filler.

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.