Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ssamba1v0.4.0MITIn 1 marketplace
Blocks stray files, backup copies, status-report markdown, bulk git adds and sloppy commit messages before they reach your repo.
Claude hands work to one, or you mention it with @.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Keeps AI coding agents from making a mess of your repo: stray files, copies, report dumps, odd folders, bloated agent instructions, AI-style commit messages and code habits. It stays quiet unless something is wrong, and anything you ask for by name goes through.
Rules in CLAUDE.md get ignored; Anthropic's docs say anything that must happen every time belongs in a hook. no-git-slop is a Claude Code plugin that checks every file write, shell command and commit before it lands, and tells the agent where things go instead.
| Problem | Example | Default |
|---|---|---|
| Status-report docs | IMPLEMENTATION_SUMMARY.md, FIX_NOTES.md | block |
| Copies instead of edits | parser_fixed.py, api_v2.py next to api.py, *.bak, NuclearFix/, a 90% copy of utils.py | block |
| Throwaway scripts and junk | debug_auth.py, root test_login.py, .DS_Store, *.log | block |
| Odd layout | a new top-level analysis/ folder, src/test_parser.py when tests/ exists | warn |
| Agent leftovers in git | aider chat history, SpecStory transcripts, CLAUDE.local.md, .claude/settings.local.json | block on commit |
| Bloated or stale agent instructions | CLAUDE.md/AGENTS.md over 200 lines, paths in them that no longer exist | told at session start |
| Bulk staging | git add -A, ., git commit -a | block |
| Bad commits | updated stuff, two changes in one subject, 40-file commits | block |
| AI-style commit messages | em dashes, citeturn and utm_source=chatgpt.com leftovers, "I hope this helps" | block |
| AI-style docs | spaced em dashes, chat phrases, hype words, ", highlighting its importance" | warn |
| AI-style code | // ... rest of the code unchanged (block); comments about the chat, swallowed exceptions, as any, # type: ignore, skipped tests, debug leftovers (warn) | block / warn |
| Turning the guard off | --no-verify, HUSKY=0, core.hooksPath | block |
Editing existing files is never blocked, git-ignored paths are never slop, and writing and code checks only look at the text just written, never at what was already there.
ngs-3fa9c1; reply with it.>ngs allow notes/*.md allows a pattern; >ngs off / >ngs on pauses the checks.Only text you type counts. The agent's own output can't approve anything.
Claude Code (needs Python 3.9+; Windows works through Git Bash):
/plugin marketplace add ssamba1/no-git-slop
/plugin install no-git-slop@no-git-slop
Git hooks and CI, so people and other tools hit the same rules:
pip install "git+https://github.com/ssamba1/no-git-slop"
no-git-slop init --hooks # pre-commit, commit-msg and pre-push hooks
Or copy templates/.pre-commit-config.yaml or templates/github-workflow.yml.
Codex CLI, Gemini CLI and Cursor:
no-git-slop init --agent codex # writes .codex/hooks.json
no-git-slop init --agent gemini # adds hooks to .gemini/settings.json
no-git-slop init --agent cursor # writes .cursor/hooks.json
Codex runs project hooks only after you trust the project and approve each hook in /hooks (Codex hooks). The Codex adapter was tested live; Gemini and Cursor only against their documented formats.
no-git-slop check [--staged | --range A..B] [--deep] [--json] judge new files
no-git-slop commit-msg FILE | commits A..B | push-check commit and push checks
no-git-slop pr --title T --body-file F self-check a PR before opening it
no-git-slop index [dir] list existing functions to reuse
no-git-slop explain [rule] what a rule does and how to change it
no-git-slop doctor what it sees in this repo
ngs is a short alias. Skills: /no-git-slop:tidy (end-of-task cleanup), /no-git-slop:commit (split work into small commits), /no-git-slop:learn (tune the config). Agents: slop-minimizer (strip what the task didn't need) and slop-reviewer (read-only review).
Optional .no-git-slop.json at the repo root (full example):
npx claudepluginhub ssamba1/no-git-slop --plugin no-git-slopBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground