Package Exports
- readme-ai-genie
- readme-ai-genie/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (readme-ai-genie) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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?
- How It Works
- Features
- Installation & Setup
- Usage & Commands
- Tech Stack
- Contributing
- License
๐ค 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.
Click to peek under the hood ๐
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
.gitignore
for 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--output
for 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
.env
file 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 --help
Check Version
Shows the currently installed version of the tool.
npx readme-ai-genie --version
List 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 radiant
CI/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 --yes
Custom 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.โ