Skip to content

babe051/aimd

Repository files navigation

AIMD - AI Markdown Generator

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!

πŸš€ Quick Installation

Prerequisites

  • Python 3.6 or higher
  • Google AI Studio API key (Get yours here)
  • Internet connection

Windows

git clone https://github.com/babe051/aimd.git
cd aimd
# Run as Administrator
setup-windows.bat

Linux/macOS

git clone https://github.com/babe051/aimd.git
cd aimd
chmod +x setup-unix.sh
sudo ./setup-unix.sh

πŸ“– Usage

After 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/"

πŸ› οΈ Command Options

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"

βš™οΈ Features

  • πŸ€– AI-Powered: Uses Google Gemini AI for intelligent documentation
  • πŸ“‚ Smart Analysis: Automatically detects project structure and tech stack
  • 🚫 Intelligent Filtering: Respects .gitignore and 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

πŸ“ What Gets Analyzed

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/ directory
  • node_modules/ directory
  • __pycache__/ directory
  • Binary files and images
  • Large files (>5MB)
  • Files matching .gitignore patterns

πŸ“Š Example Output

$ 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.md

πŸ—‚οΈ Installation File Structure

Windows

C:\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)

Linux/macOS

/usr/local/lib/aimd/
β”œβ”€β”€ aimd.py          # Main script
β”œβ”€β”€ generator.py     # Generation logic
└── utils.py         # Utilities

/usr/local/bin/
└── aimd             # Global command script

πŸ—‘οΈ Uninstallation

Windows

# Run as Administrator
uninstall-windows.bat

Linux/macOS

sudo ./uninstall-unix.sh

Manual Uninstall

Windows:

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

πŸ”§ Troubleshooting

Common Issues

"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-files limit

"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

🀝 Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ›‘οΈ Security

  • 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

πŸ”„ Version History

  • 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

πŸ‘₯ Contributors

Made with ❀️ for developers who love good documentation! πŸš€πŸ“

About

AIMD is a README file generator

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors