This is a submission for the GitHub Copilot CLI Challenge
What I Built
π‘ Project Background
We can't deny that using "vibe coding" and AI tools makes our process of creating new programs and software much more efficient. However, one major issue I've encountered is that we can sometimes lose visibility into what's actually being builtβor even forget what we did in previous commits.
That's why I decided to build a CLI tool powered by GitHub Copilot to solve this problem!
DocWeave is a command-line tool that analyzes your git repository and generates organized documentation using GitHub Copilot CLI. It transforms your commit history into markdown docs, Mermaid diagrams, and AI-powered insights.
DocWeave extends AI to post-coding tasks. It turns rapid development into professional, well-documented outputs, making developers and teams more efficient.
Problem Solved
Developers often face "documentation debt" where code evolves faster than docs, leading to:
- Onboarding delays for new team members
- Bugs from misunderstandings
- Reduced productivity (20-50% of dev hours on docs per Gartner reports)
DocWeave automates documentation creation, saving time and improving project maintainability.
β¨ Features
- π€ AI-Powered Analysis: Uses GitHub Copilot CLI to understand code changes and provide context
- π Visual Diagrams: Generates Mermaid diagrams (timelines, file relationships, importance charts)
- π Auto-Documentation: Creates organized markdown files in
DocweaveDocs/folder - π― Next Steps: Suggests actionable next steps based on code analysis
- β‘ Simple CLI: Just run
docweave analyzein any git repository - π Graceful Fallback: Works even without Copilot CLI using intelligent heuristics
π Example Use Cases
- Solo Developer: After a coding session, analyze commits and generate documentation
- Team Collaboration: Generate changelogs and architecture diagrams for team reviews
- Code Review: Auto-document PR changes with AI-powered context
- Onboarding: Create up-to-date documentation for new team members
- Project Handoff: Generate comprehensive documentation before transferring a project
Demo
Repo:https://github.com/Juls95/DocWeave/tree/main
π Usage
Basic Usage
# Navigate to any git repository
cd /path/to/your/repo
# Analyze last 5 commits (default)
docweave analyze
# Analyze only the last commit (quick)
docweave analyze --last
Options
# Analyze last commit only (quick analysis)
docweave analyze --last
# Analyze last 5 commits (default)
docweave analyze
# Analyze specific number of commits
docweave analyze --limit 20
# Analyze specific repository
docweave analyze --path /path/to/repo
# or short: docweave analyze -p /path/to/repo
# Analyze commits from last 7 days only
docweave analyze --days 7
# or short: docweave analyze -d 7
# Combine options
docweave analyze --path ./my-repo --limit 15 --days 30
π Generated Documentation
DocWeave creates a DocweaveDocs/ folder in your repository with:
ποΈ Architecture
src/docweave/
βββ cli.py # CLI entrypoint and command handling
βββ components/ # Reusable components
β βββ copilot_integration.py # GitHub Copilot CLI integration
β βββ doc_generator.py # Documentation generation
βββ features/ # Business logic
β βββ commit_analysis.py # Git commit analysis
βββ lib/ # Utilities
β βββ copilot_check.py # Copilot CLI availability check
β βββ repo_utils.py # Repository path utilities
β βββ utils.py # General utilities
βββ types/ # Type definitions
βββ models.py # Data models
My Experience with GitHub Copilot CLI
Before Copilot CLI, I had to constantly ask LLMs or IDEs to explain what they understood, request a specific format, provide templates for generating documentation, and ensure everything was correct. Now, with GitHub Copilot, I can be confident thatβas a n*ative GitHub development* toolβit fully analyzes all the information available in the repo and generates content strictly following the specified templates.
GitHub Copilot CLI provides AI-powered analysis that:
- Understands code context and intent
- Provides deeper insights into why changes were made
- Suggests more relevant next steps
- Generates better summaries



Top comments (0)