Automatically generate README.md
and CONTRIBUTING.md
files for any project using the power of Google's Gemini AI. A must-have CLI tool for developers.
Doc Autobot π€ is a powerful Command Line Interface (CLI) tool designed to eliminate the tedious task of writing boilerplate documentation. This developer tool automatically generates essential markdown files for your project.
Its main purpose is to create:
README.md
β A professional, context-aware introduction to your project.CONTRIBUTING.md
β Clear, standardized guidelines for anyone wanting to contribute.
Instead of writing docs from scratch, Doc Autobot uses Google Gemini AI to analyze your project, understand its context (from files like package.json
), and instantly generate high-quality, ready-to-use documentation.
We all know this struggle:
- Writing good documentation is boring and time-consuming.
- A missing or poor README makes a project look unprofessional and hard to use.
- Every successful open-source project needs clear contribution guides.
π Doc Autobot is the solution. It removes friction by providing instant, intelligent, and consistent automatic documentation, letting you focus on coding.
- Save Hours of Manual Work: Stop writing repetitive docs and generate them in seconds.
- Look Professional: Instantly give your project a polished, professional appearance.
- Standardize Documentation: Keep your docs consistent across all your repositories.
- Perfect for Everyone: Ideal for open-source maintainers, developers in hackathons, students, and anyone who wants to automate their workflow.
- AI-Powered README Generation: Automatically creates a detailed
README.md
by analyzing your project's files and metadata. - Automatic
CONTRIBUTING.md
Generation: Quickly generates a standard, comprehensiveCONTRIBUTING.md
file. - Interactive Wizard: A user-friendly wizard guides you through the options if you run the tool without commands.
- Simple Commands: Offers dedicated commands (
readme
,contributing
,both
) for specific file generation. - Project Context Awareness: Intelligently fetches details from
package.json
to create context-aware documentation. - Works with Any Tech Stack: A versatile developer tool for any project (Node.js, Python, Go, Rust, etc.).
- BEFORE

To use this Node.js CLI tool, you need Node.js (v18 or higher) installed.
Install the tool globally to use it in any project on your system.
npm install -g doc-autobot
You can also run the tool directly without a global installation using npx
.
npx doc-autobot
To enable AI-powered README.md
generation, you must provide a Google Gemini API key.
- Obtain your key from Google AI Studio.
- Create a
.env
file in the directory where you run thedoc-autobot
command. - Add your API key to the
.env
file:
GEMINI_API_KEY=YOUR_GEMINI_API_KEY_HERE
Once installed, you can run the following commands in your project's root directory.
For a guided experience, run the main command without any arguments:
doc-autobot
-
Generate a README file:
doc-autobot readme
-
Generate a Contributing guide:
doc-autobot contributing
-
Generate both files at once:
doc-autobot both
- Node.js: The runtime environment.
- JavaScript (ESM): The programming language used.
- Gemini AI (
@google/generative-ai
): Powers the intelligent documentation generation. - Commander.js: For building the command-line interface.
- Inquirer.js: For creating the interactive wizard.
- Chalk: For colorful console output.
- Dotenv: For managing environment variables.
- FS-Extra: For file system operations.
doc-autobot/
βββ src/ # Source code for the CLI logic
β βββ contributing-generator.js # Logic for generating CONTRIBUTING.md
β βββ readme-generator.js # Logic for generating README.md
β βββ utils/ # Utility functions
βββ .env # Environment variables
βββ index.js # Main entry point for the CLI
βββ package.json # Project metadata and dependencies
βββ LICENSE # Project license
We welcome contributions! Please see our CONTRIBUTING.md file for detailed guidelines on how to get involved.
Please also adhere to our Code of Conduct to ensure a welcoming and inclusive environment.
This project is licensed under the MIT License - see the LICENSE file for details.
Give a βοΈ if you find this project useful!
Hemant Patel
- GitHub: hemantpatel011
- LinkedIn: Hemant Patel
Note: This README was generated by
doc-autobot
!
Thanks to the developers of the open-source libraries that made this project possible.