Skip to content

AI-Powered CLI tool to automatically generate README.md and CONTRIBUTING.md files for any project using Google's Gemini AI.

License

Notifications You must be signed in to change notification settings

hemantpatel011/doc-autobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Doc Autobot πŸ€–: AI-Powered Documentation Generator

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 Logo Version License Made with doc-autobot

πŸ” What is Doc Autobot?

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.

⚑ Why Do You Need It?

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.

🌟 Key Benefits

  • 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.

Features

  • 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, comprehensive CONTRIBUTING.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.).

Demo

1 2 3

  • BEFORE
Before_Mzackybot

Installation

To use this Node.js CLI tool, you need Node.js (v18 or higher) installed.

Global Installation (Recommended)

Install the tool globally to use it in any project on your system.

npm install -g doc-autobot

Run without Installation

You can also run the tool directly without a global installation using npx.

npx doc-autobot

Configuration

To enable AI-powered README.md generation, you must provide a Google Gemini API key.

  1. Obtain your key from Google AI Studio.
  2. Create a .env file in the directory where you run the doc-autobot command.
  3. Add your API key to the .env file:
GEMINI_API_KEY=YOUR_GEMINI_API_KEY_HERE

Usage

Once installed, you can run the following commands in your project's root directory.

Interactive Mode

For a guided experience, run the main command without any arguments:

doc-autobot

Direct Commands

  • Generate a README file:

    doc-autobot readme
  • Generate a Contributing guide:

    doc-autobot contributing
  • Generate both files at once:

    doc-autobot both

Tech Stack

  • 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.

Folder Structure

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

Contribution Guidelines

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.

License

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

🌟 Show your support

Give a ⭐️ if you find this project useful!

Author & Acknowledgements

Hemant Patel

Note: This README was generated by doc-autobot!

Thanks to the developers of the open-source libraries that made this project possible.

Made with doc-autobot