Skip to main content

An AI-powered CLI to generate professional README.md files.

Project description

mkaireadme

Python Version License: MIT Platform

An AI-powered CLI tool that generates professional README.md files by analyzing your project structure and code.

✨ Features

  • 🤖 AI Integration: Powered by OpenRouter's diverse model ecosystem (Google Gemini, Anthropic Claude, Mistral, Llama, GPT)
  • 📁 Smart Analysis: Intelligently examines your project directory respecting .gitignore and custom exclusions
  • ⚙️ Configuration-Driven: Use .mkaireadme.yml to provide project goals and custom instructions
  • 🔄 Smart Updates: Intelligently preserves existing content when updating READMEs
  • 🎨 Rich Output: Beautiful terminal UI with progress indicators and formatted output
  • 🔄 Cross-Platform: Works seamlessly on Windows, macOS, and Linux

🛠️ Tech Stack

  • Core: Python 3.9+
  • CLI Framework: Typer
  • UI Library: Rich
  • AI Client: OpenAI (for OpenRouter API)
  • Configuration: PyYAML, python-dotenv
  • File Handling: pathspec
  • Deployment: Setuptools, Twine

📦 Installation

Prerequisites

  • Python 3.9 or higher
  • OpenRouter API key (get one at openrouter.ai)

Install from PyPI

pip install mkaireadme

Install from Source

git clone https://github.com/gemini-cli/mkaireadme.git
cd mkaireadme
pip install -e .

🚀 Usage

1. Set Your API Key

mkaireadme set-key YOUR_OPENROUTER_API_KEY

2. Initialize Configuration (Optional)

Creates a .mkaireadme.yml file to guide AI generation:

mkaireadme init

Edit .mkaireadme.yml to add:

project_goals: "Build a cross-platform task automation tool"
custom_instructions: "Focus on security features and Windows compatibility"
exclude:
  - "*.log"
  - "tests/"

3. Generate README

Generate a new README or update an existing one:

# Basic generation with recommended model
mkaireadme gen --model google/gemini-flash-1.5

# Force overwrite existing README
mkaireadme gen --model meta-llama/llama-3-8b-instruct --force-overwrite

# Enable debug mode
mkaireadme gen --model mistralai/mistral-7b-instruct --debug

4. Browse Available Models

List recommended models or search for specific ones:

# Show recommended models
mkaireadme models

# Search for specific models
mkaireadme models llama
mkaireadme models claude

📋 Command Reference

Command Description
set-key Save your OpenRouter API key securely
init Create .mkaireadme.yml configuration file
gen Generate/update README.md
models List/search available models on OpenRouter

gen Options

Option Description Default
--model Model ID to use for generation Required
--force-overwrite Overwrite existing README without autogen markers False
--debug Enable debug output and detailed analysis False

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details on:

  • Setting up your development environment
  • Submitting pull requests
  • Reporting bugs

📄 License

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

🙏 Acknowledgments

  • Built with Typer for the CLI interface
  • Terminal UI powered by Rich
  • AI capabilities provided by OpenRouter
  • Inspired by the need for better project documentation automation

mkaireadme - Because great documentation shouldn't be hard to write.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkaireadme-0.2.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkaireadme-0.2.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file mkaireadme-0.2.1.tar.gz.

File metadata

  • Download URL: mkaireadme-0.2.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mkaireadme-0.2.1.tar.gz
Algorithm Hash digest
SHA256 feb9a2b8e5d7457fd9122f9ddba05940a3806a6e46b93d03bb855c9682bd8901
MD5 8c75ff3923a11404016612a518aa71fb
BLAKE2b-256 a76c9072c1e361a1e8c80b881122fef9839db15f0f63918bc935d10e90741645

See more details on using hashes here.

File details

Details for the file mkaireadme-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mkaireadme-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mkaireadme-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0a4567de55377dad5ad6ba7d91f00300b456032e135ed8c6bc07ac54fe0604b
MD5 43393ab09a8d590d942e87273b15ded5
BLAKE2b-256 96302a641b0c158019c4c22a3f72135bb5fa5035b0444bfbca58cc8eb865a910

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page