agentleFS
AboudjemAboudjem/sniff/skills/sniff-fix/SKILL.md

sniff-fix

Skill4 starsChanged 6 months agoApache-2.0View on GitHub

Scan the project and auto-fix safe issues (remove debugger statements, console.log calls, and other auto-fixable problems).

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Use the unified sniff MCP tool with mode: "scan" and the project's rootDir to get all findings.

    line 15
  2. Distinctive:

    Do NOT auto-fix without telling the user what you're changing

    line 24
  3. Very specific:

    After fixing, re-run unified sniff with mode: "scan" to verify issues are resolved

    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

/sniff-fix - Scan and fix issues

Scan the project, then automatically fix safe issues.

This skill is invoked by the sniff skill's own flow, not on its own. The user-invocable: false frontmatter key is honored by Claude Code only, so in other agents this file may show up as a standalone command; treat it as a step inside a sniff run rather than an entry point.

What to do

  1. Use the unified sniff MCP tool with mode: "scan" and the project's rootDir to get all findings. If the unified tool is not available, use legacy sniff_scan.
  2. For each finding, fix it if safe:
    • debug-debugger: Remove the debugger; line
    • debug-console-log: Remove console.log/debug/info lines
    • placeholder-lorem: Flag to user (needs manual replacement)
    • hardcoded-localhost: Suggest environment variable
    • api-hardcoded-secret: Remove the secret and suggest env var
  3. Do NOT auto-fix without telling the user what you're changing
  4. After fixing, re-run unified sniff with mode: "scan" to verify issues are resolved

Example

User: /sniff-fix
You: I'll scan and fix what I can.

Found 8 issues. Auto-fixing 4:

- Removed `debugger` from src/handler.ts:42
- Removed `console.log` from src/api.ts:8
- Removed `console.log` from src/api.ts:15
- Removed `console.debug` from src/utils.ts:3

4 issues need manual attention:
- src/config.ts:8 - Hardcoded localhost URL (replace with env var)
- README.md:28 - Broken link to ./missing-guide.md
- ...

Re-scanning... 4 issues remaining (down from 8).

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.