Anti-Flood - Claude Code Plugin
Prevent unnecessary file creation in Claude Code projects with modular SKILLs.
Anti-Flood - Claude Code Plugin
Stop Claude from flooding your codebase with unnecessary files. Modular SKILLs for resource economy and contextual analysis.
⚠️ Beta Release: This plugin is in beta testing phase. Version 0.0.1-beta is fully functional but undergoing refinement based on real-world usage. External contributions are not accepted during beta - please open issues for discussion.
Quick Links
Installation • Features • How it Works • Documentation • Contributing
What is Anti-Flood?
A Claude Code plugin that prevents Claude from creating unnecessary files by enforcing smart file creation policies through modular SKILLs. Works automatically across all your projects with zero configuration.
Key Features:
- 🛡️ Smart File Prevention - Blocks creation of documentation files unless explicitly requested
- 💬 Chat-First Responses - Analysis and reviews delivered inline, not as files
- 🎯 Contextual Analysis - Understands when files ARE needed (functional code, configs)
- 🔧 Modular SKILLs - Three specialized optimizers (Skills, Agents, Commands)
- ⚡ Zero Config - Install and it works everywhere automatically
Examples
Without anti-flood:
You: "Analyze this code"
Claude: *creates ANALYSIS.md, SUMMARY.md, REVIEW.md* (3 unnecessary files)
With anti-flood:
You: "Analyze this code"
Claude: *provides analysis in chat*
Claude: "Would you like me to save this analysis to a file?"
🎯 Problems Solved
Claude Code frequently:
- ✗ Creates too many files (README.md, ANALYSIS.md, unsolicited examples)
- ✗ Generates exaggerated and verbose descriptions
- ✗ Returns to the same problems after refactoring
- ✗ Implements "what could be" instead of what was requested
This SKILL corrects these behaviors through clear and self-applicable principles.
🚀 Installation
This plugin is available through the Claude Code Marketplace.
Via Marketplace (Recommended)
# Add marketplace (one time setup)
/plugin marketplace add angeloticiano/claude-marketplace
# Install anti-flood plugin
/plugin install anti-flood
Done! The plugin is now active in all your Claude Code projects.
Alternative: Direct Installation
# Install directly from GitHub
/plugin marketplace add angeloticiano/claude-anti-flood@main
/plugin install anti-flood
For Contributors: Manual Global Installation
If you want to modify the plugin or contribute:
# Clone and install globally
git clone https://github.com/angeloticiano/claude-anti-flood.git ~/.claude-anti-flood
cd ~/.claude-anti-flood
# Build SKILLs from principles/
./build-skill.sh # Compiles principles/ → skills/*/SKILL.md
# Install to global Claude directory
./install-global.sh # Copies to ~/.claude/skills/
The SKILL will be active in ALL your Claude Code projects. See CONTRIBUTING.md for details.
🔄 Updates
Plugin Installation
# Update to latest version
/plugin update anti-flood
Manual Installation
cd ~/.claude-anti-flood
git pull && ./build-skill.sh && ./install-global.sh
📋 Applied Principles
For SKILLs
- Composition without Duplication - Reuse via reference
- Resource Economy - Minimize tokens, files, iterations
- Activation Clarity - Define when to activate with precision
For Sub-Agents
- Single Specialization - One responsibility per sub-agent
- Contractual Interface - Well-defined input/output
- Lazy Invocation - Only call when necessary
- Stateless - No state between calls
- Graceful Errors - Never crash
For Slash Commands
- Separation of Responsibilities
- Tell, Don't Teach
- Simplify SubAgents
- Focused Scope
📁 Plugin Structure
anti-flood/
├── .claude-plugin/
│ └── plugin.json # Plugin manifest
├── principles/ # Source principles (edit here)
│ ├── base.md
│ ├── prevent-skill-bloat.md
│ ├── prevent-agent-bloat.md
│ ├── prevent-command-bloat.md
│ └── prevent-file-floods.md
├── skills/ # Compiled SKILLs
│ ├── prevent-file-floods/
│ ├── prevent-skill-bloat/
│ ├── prevent-agent-bloat/
│ └── prevent-command-bloat/
├── examples/ # Usage examples
│ ├── code-review.md
│ ├── feature-implementation.md
│ └── debugging.md
├── build-skill.sh # Compiles SKILLs
├── install-global.sh # Installs to ~/.claude/skills/
├── CHANGELOG.md # Version history
├── CONTRIBUTING.md # Developer guide
├── LICENSE # MIT license
└── CLAUDE.md # Technical documentation
🛠️ How It Works
- Principles in
principles/define behaviors - build-skill.sh compiles everything into a single SKILL.md
- install-global.sh copies to
~/.claude/skills/anti-flood/ - Claude Code automatically loads from
~/.claude/skills/in ALL projects
✅ Validation
SKILL self-validates before creating resources:
- Violating any principle?
- Creating more than requested?
- Being unnecessarily verbose?
- Adding possibilities to deterministic cases?
Warns: ⚠️ "This may violate [principle X] - confirm?"
🔍 Standard Workflow
Code Analysis
- Analysis in chat (not in file)
- Improved code in blocks
- Ask: "Create file with improved version?"
Implementation
- Plan in chat
- Create only functional files
- Ask: "Additional documentation?"
Debug
- Identify in chat
- Explain in chat
- Show correction
- Ask: "Create corrected file?"
📖 Complete Documentation
See CLAUDE.md for:
- Detailed architecture
- Decision keywords
- Usage examples
- Troubleshooting
🤝 Contributing
Contributions are welcome! See CONTRIBUTING.md for:
- How to modify principles and rebuild SKILLs
- Testing locally before submitting PRs
- Code style and conventions
- Release process
📄 License
MIT