AIMD is a powerful command-line tool that automatically generates professional README.md files for your projects using Google's Gemini AI. Simply point it at any project directory and watch it create comprehensive documentation in seconds!
- Python 3.6 or higher
- Google AI Studio API key (Get yours here)
- Internet connection
git clone https://github.com/babe051/aimd.git
cd aimd
# Run as Administrator
setup-windows.batgit clone https://github.com/babe051/aimd.git
cd aimd
chmod +x setup-unix.sh
sudo ./setup-unix.shAfter installation, use aimd from any directory:
# Generate README for current directory
aimd .
# Generate README for specific project
aimd /path/to/project
# Windows example
aimd C:\Users\username\projects\myapp
# Ignore specific files/directories
aimd . -i node_modules "*.log" temp/
# Custom output filename and file limit
aimd . --output DOCUMENTATION.md --max-files 100
# Multiple ignore patterns
aimd . -i "*.pyc" "__pycache__/" ".env*" "logs/"| Option | Description | Example |
|---|---|---|
path |
Project directory to analyze | aimd /projects/webapp |
--output |
Output filename (default: README.md) | --output DOCS.md |
--max-files |
Maximum files to process (default: 50) | --max-files 100 |
-i, --ignore |
Additional files/dirs to ignore | -i logs/ "*.tmp" |
- π€ AI-Powered: Uses Google Gemini AI for intelligent documentation
- π Smart Analysis: Automatically detects project structure and tech stack
- π« Intelligent Filtering: Respects
.gitignoreand custom ignore patterns - π― Cross-Platform: Works on Windows, Linux, and macOS
- β‘ Fast Processing: Progress bars and efficient file handling
- π¨ Professional Output: GitHub-ready markdown with emojis and structure
AIMD intelligently processes your project:
β Includes:
- Source code files (
.py,.js,.html,.css, etc.) - Configuration files (
package.json,requirements.txt, etc.) - Documentation files
- Project structure and dependencies
β Automatically Ignores:
.git/directorynode_modules/directory__pycache__/directory- Binary files and images
- Large files (>5MB)
- Files matching
.gitignorepatterns
$ aimd .
π Starting AIMD - AI Markdown Generator
π Target path: /home/user/myproject
π Output file: /home/user/myproject/README.md (in target directory)
--------------------------------------------------
π Analyzing: /home/user/myproject...
π README will be saved to: /home/user/myproject/README.md
π Processing files |ββββββββββββ| 25/50 [00:02<00:01]
π README generated successfully!
β
README.md generated successfully at /home/user/myproject/README.md
--------------------------------------------------
π All done! Your README.md has been generated successfully.
π Location: /home/user/myproject/README.mdC:\Windows\System32\aimd\
βββ aimd.py # Main script
βββ generator.py # Generation logic
βββ utils.py # Utilities
βββ aimd.bat # Local command script
C:\Windows\System32\
βββ aimd.bat # Global command (calls local script)
/usr/local/lib/aimd/
βββ aimd.py # Main script
βββ generator.py # Generation logic
βββ utils.py # Utilities
/usr/local/bin/
βββ aimd # Global command script
# Run as Administrator
uninstall-windows.batsudo ./uninstall-unix.shWindows:
del "C:\Windows\System32\aimd.bat"
rmdir /s "C:\Windows\System32\aimd"Linux/macOS:
sudo rm /usr/local/bin/aimd
sudo rm -rf /usr/local/lib/aimd"Permission denied" during installation
- Windows: Run setup as Administrator
- Linux/Mac: Use
sudo ./setup-unix.sh
"Command not found: aimd"
- Verify the setup script completed successfully
- Try opening a new terminal window
- Check if the files exist in the installation directories
"No readable files found"
- Ensure the target directory contains source code
- Check if your ignore patterns are too restrictive
- Try increasing
--max-fileslimit
"Failed to connect to Google AI Studio"
- Check your internet connection
- Verify your API key is valid and active
- Ensure the API key has proper permissions
Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- API Key Safety: Never hardcode API keys in source code
- Environment Variables: Always use environment variables for sensitive data
- File Permissions: Setup scripts properly handle file permissions
- Safe Installation: Files are placed in standard system directories
- v1.0.0: Initial release with cross-platform support
- Full AI-powered README generation
- Smart file filtering and gitignore support
- Progress bars and animated feedback
- Global command installation
-

Mohamed Val β @babe051 -

Zeini Cheikh β @Zeini-23025
Made with β€οΈ for developers who love good documentation! ππ