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).
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- sniff-reportSkill
- sniffSkill
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
- Very specific: line 15
Use the unified sniff MCP tool with mode: "scan" and the project's rootDir to get all findings.
- Distinctive: line 24
Do NOT auto-fix without telling the user what you're changing
- Very specific: line 26
After fixing, re-run unified sniff with mode: "scan" to verify issues are resolved
≈ “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.
Files
/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
- Use the unified
sniffMCP tool withmode: "scan"and the project'srootDirto get all findings. If the unified tool is not available, use legacysniff_scan. - For each finding, fix it if safe:
debug-debugger: Remove thedebugger;linedebug-console-log: Removeconsole.log/debug/infolinesplaceholder-lorem: Flag to user (needs manual replacement)hardcoded-localhost: Suggest environment variableapi-hardcoded-secret: Remove the secret and suggest env var
- Do NOT auto-fix without telling the user what you're changing
- After fixing, re-run unified
sniffwithmode: "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).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
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.

