Doclify is an intelligent command-line tool that automates the process of documenting your AI/ML software projects. By leveraging the power of Advanced LLMs, Doclify scans your codebase, understands the context of each file, and generates a comprehensive, professional README.md file.
Doclify is designed to be intuitive. Follow these two simple steps to document your project:
Run the init command to scan your directory. Doclify will automatically detect your source files and create a doclify.yaml configuration file.
doclify init- Supported Files: Python, Markdown, Text Files
- What happens? Doclify respects your
.gitignoreand creates a manifest of files to be analyzed. - Customization: You can edit
doclify.yamlto include or exclude specific files before moving to the next step.
Once initialized, run the run command to start the AI analysis and generate your README.
doclify run- AI Analysis: Doclify sends file contexts to the AI model for summarization.
- Incremental Progress: You'll see beautiful progress bars and spinners as it works.
- Backup Security: Doclify automatically saves your existing
README.mdtoREADME-prev.mdso you never lose your manual edits.
Result: A fully documented README.md appears in your project root!
Doclify provides a set of powerful commands to manage your documentation lifecycle.
Initializes a new Doclify project in the current directory.
- Description: Scans the project structure, applies
.gitignorefiltering, and generates adoclify.yamlfile. - Example:
doclify init
- When to use: Run this first to define which files Doclify should consider for documentation.
Generates or regenerates the project-wide documentation.
- Description: Processes all files listed in
doclify.yamlusing AI models to create a comprehensiveREADME.md. - Example:
doclify run
- When to use: Run this after
initor whenever you want to update your entire README based on the latest code changes.
Updates documentation for a specific file or directory.
- Description: Target a specific subset of your codebase for faster, incremental updates.
- Arguments:
<path>: Path to the file or directory you want to re-analyze.
- Example:
doclify update src/utils.py
- When to use: Use this when you've modified specific files and want to refresh their summaries in the overall project context without regenerating everything.
- 🚀 Two-Stage Generation: High-level project summary built from granular file-level analysis.
- 🤖 Powered by AI: Uses the latest AI SDKs for state-of-the-art code understanding.
- ⚡ Smart Scanning: Built-in
.gitignoreawareness keeps your documentation clean. - 🎨 Polished CLI: Interactive interface using
richwith spinners and clear status logs. - 🛡️ Safety First: Automatic backups of existing README files.
- ⚙️ Configurable: Fine-tune the process via
doclify.yaml.
Doclify requires a Google API Key. Set it in your terminal environment:
| Platform | Command |
|---|---|
| Windows (CMD) | set GOOGLE_API_KEY=your_api_key_here |
| Windows (PS) | $env:GOOGLE_API_KEY="your_api_key_here" |
| Linux/macOS | export GOOGLE_API_KEY=your_api_key_here |
Contributions make the open-source community an amazing place! Feel free to fork, branch, and PR.
This project is licensed under the MIT License. See the LICENSE file for details.
