readme-ai-genie
v1.0.1
Published
An AI-powered CLI that scans your project and automatically generates a stunning, professional README.md using Google Gemini.
Maintainers
Readme
🧞♂️ readme-ai-genie 🔮✨
Your project’s personal AI stylist for killer documentation. > 🪄 From skeleton code to storybook-ready—let our AI genie craft and style your README like a pro, powered by Google Gemini.
📚 Table of Contents
🤔 What is This?
readme-ai-genie is a smart CLI tool that acts as your co-creator for documentation. It scans your project's codebase, understands its structure and dependencies, and then uses a powerful two-step AI pipeline with Google Gemini to generate a beautiful, professional, and personality-driven README.md file, which you can then approve or edit section-by-section.
💡 How It Works
This genie runs a two‑step AI symphony to ensure your README is both accurate and stylish:
- The Architect 🏗️ It first scans your project files (smartly ignoring junk), then summons Gemini to draft a factually precise, well‑structured README.
- The Stylist 💅 It then takes that blueprint back to Gemini with a “glow‑up” prompt—injecting tone, emojis, and flair—so your README goes from bland to brand.
graph TD
A[Scan Files] --> B[Generate Factual Draft w/ Gemini]
B --> C[Enhance with Style w/ Gemini]
C --> D[Interactive User Review]
D --> E[Write README.md]✨ Features
- 🤖 Dual AI Pipeline: Uses Google Gemini for both a structured first draft and a creative final polish.
- 🎨 Selectable Personalities: Give your README a unique voice! Choose from a curated list of AI personalities to match your project's vibe.
- 🕵️ Smart File Scanning: Intelligently scans your project, respecting your
.gitignorefor a clean and relevant context. - ✍️ Interactive Review: You're the director. Approve, edit, or discard each AI-generated section on the fly for ultimate control.
- 🔐 Effortless First-Time Setup: The "Royal Concierge" flow helps new users get and save their API key automatically.
- 🚀 Pro CLI UX: Comes with standard flags like
--help,--version, and--outputfor a seamless developer experience.
🚀 Installation & Setup
Install the Tool: The recommended way is to use
npx, which runs the package without a permanent install. No setup is needed beyond having Node.js (v18+) installed.API Key Configuration: The very first time you run
readme-ai-genie, it will detect that you don't have a Google Gemini API key.- It will automatically open your browser to the Google AI Studio page.
- It will then prompt you to paste the key directly into your terminal.
- It will create a
.envfile in your project root and securely save the key for all future uses.

💻 Usage & Commands
All commands are run via npx from the root of your project.
The Main Spell
This is the core command to generate a README with the default personality.
npx readme-ai-genie --auto
Command Variations
Get Help
Displays the list of all available commands and options.
npx readme-ai-genie --helpCheck Version
Shows the currently installed version of the tool.
npx readme-ai-genie --versionList Available Styles
Displays the "fashion mood board" of all available AI personalities you can use.
npx readme-ai-genie --styles
Generate with a Specific Vibe
Use the --style flag to command the genie to write with a different personality.
npx readme-ai-genie --auto --style radiantCI/CD & Automation (Auto-Approve)
Use the --yes flag to skip the entire interactive review process. The AI's first draft will be saved directly. Perfect for automated workflows.
npx readme-ai-genie --auto --yesCustom Output Path
Use the -o or --output flag to save the final README.md to a specific file or folder.
npx readme-ai-genie --auto -o docs/PROJECT_README.md🛠️ Tech Stack
- Runtime: Node.js (v18+)
- AI:
@google/generative-ai(Google Gemini) - CLI Prompts:
inquirer - Styling:
chalk - File Globbing:
fast-glob+ignore - Env Management:
dotenv - Browser Opener:
open
🤝 Contributing
Your ideas make this genie even more magical! ✨ Contributions are welcome. Fork the repo, create a branch, and open a PR. Please review our (soon-to-be-written) CONTRIBUTING.md and CODE_OF_CONDUCT.md.
📜 License
MIT License © 2025 Shivadeepak
🧠 Dev Quote
“First, solve the problem. Then, write the code. Finally, let the genie write the README.”
