Sniff sniff-fix
Scan the project and auto-fix safe issues (remove debugger statements, console.log calls, and other auto-fixable problems).
install
source · Clone the upstream repo
git clone https://github.com/Aboudjem/sniff
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Aboudjem/sniff "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/sniff-fix" ~/.claude/skills/aboudjem-sniff-sniff-fix && rm -rf "$T"
manifest:
skills/sniff-fix/SKILL.mdsource content
/sniff-fix - Scan and fix issues
Scan the project, then automatically fix safe issues.
What to do
-
Use
MCP tool with the project'ssniff_scan
to get all findingsrootDir -
For each finding, fix it if safe:
: Remove thedebug-debugger
linedebugger;
: Removedebug-console-log
linesconsole.log/debug/info
: Flag to user (needs manual replacement)placeholder-lorem
: Suggest environment variablehardcoded-localhost
: Remove the secret and suggest env varapi-hardcoded-secret
-
Do NOT auto-fix without telling the user what you're changing
-
After fixing, re-run
to verify issues are resolvedsniff_scan
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).