Enterprise-grade AI-powered tool to transform GitHub README files into comprehensive project backlogs optimized for Claude Flow SPARC agents
Project description
GitHub Backlog Generator 🐷✨
Enterprise-Grade AI-Powered GitHub Backlog Generation
Transform any GitHub README into a comprehensive project backlog optimized for Claude Flow SPARC agents.
Part of the Flying Pig Labs Innovation Stack
🚀 Overview
A powerful Python CLI tool that takes a GitHub repository URL, analyzes its README with AI, and automatically creates a complete project backlog including milestones, epics, and detailed task issues - all formatted for autonomous AI agent execution.
Features
- GitHub URL Input: Takes any GitHub repository URL as a CLI argument
- Interactive Phase Selection: Choose which phase (1-8) to generate
- Single AI Call: Efficiently generates phase, epic, and tasks in one LLM request
- Complete Backlog Creation: Automatically generates:
- GitHub Milestone for the phase (with due date)
- Epic issue (labeled "[Epic]") containing team composition and task checklist
- Individual task issues linked to the epic with role assignments
- Smart Analysis: Extracts project domain, complexity, tech stack from README
- Retry Logic: Automatically retries if AI response format is incorrect
- Dry Run Mode: Preview phase before creating GitHub content
- JSON Export: Save generated phase for later use
Installation
# Clone the repository
git clone <your-repo-url>
cd github-backlog-generator
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
Configuration
-
Copy
.env.exampleto.env:cp .env.example .env
-
Add your API keys:
ANTHROPIC_API_KEY=your_anthropic_api_key_here GITHUB_TOKEN=your_github_token_hereNote: GitHub token must have
reposcope to create milestones.
Usage
Basic Usage
# Run the tool - it will prompt you to select a phase
python run.py https://github.com/owner/repo
# Or use shorthand format
python run.py owner/repo
The tool will:
- Fetch and analyze the README
- Show project information
- List all 8 phases
- Prompt you to enter a number (1-8) to select a phase
- Generate the phase with AI
- Create a milestone in GitHub
- Generate an epic with 5-10 tasks
- Create an epic issue with task checklist
- Create individual task issues linked to the epic
Command Options
python run.py [OPTIONS] REPO_URL
Arguments:
REPO_URL GitHub repository URL (e.g., https://github.com/owner/repo)
Options:
--api-key TEXT Anthropic API key (or use ANTHROPIC_API_KEY env var)
--github-token TEXT GitHub token (or use GITHUB_TOKEN env var)
--dry-run Generate phases without creating milestones
-o, --output PATH Save phases to JSON file
--help Show this message and exit
Examples
# Dry run to preview phase without creating milestone
python run.py https://github.com/facebook/react --dry-run
# Then select phase number when prompted
# Create milestone and save phase to file
python run.py owner/repo --output phase.json
# Use different API keys
python run.py owner/repo --api-key sk-ant-... --github-token ghp_...
Interactive Selection Example
Select a phase to generate:
1. Discovery & Requirements
2. Technical Planning & Architecture
3. UI/UX Design & Prototyping
4. Core Development
5. System Integration & Testing
6. Quality Assurance & Testing
7. Deployment & Distribution
8. Launch & Documentation
Enter phase number (1-8): 1
Workflow
- Parse URL: Extracts owner and repository name from GitHub URL
- Validate Access: Checks that your token has write access to the repo
- Sparse Checkout: Fetches only the README file from the repository
- Analyze README: Extracts project information:
- Title and description
- Technology stack
- Project domain (web, mobile, AI, etc.)
- Complexity assessment
- Generate Phases: AI creates 8 SDLC phases with:
- Unique IDs
- Descriptive titles
- Detailed descriptions
- Suggested roles
- Due dates (14 days apart)
- Interactive Selection: User selects which phase to generate
- Create Milestone: Pushes single milestone directly to GitHub
Generated Phases
The tool creates 8 standard SDLC phases, customized for your project:
- Discovery & Requirements - Initial analysis and planning
- Technical Planning & Architecture - System design and tech selection
- UI/UX Design & Prototyping - User interface and experience design
- Core Development - Main feature implementation
- System Integration & Testing - Integration and API testing
- Quality Assurance & Testing - Comprehensive testing and fixes
- Deployment & Distribution - Packaging and deployment setup
- Launch & Documentation - Documentation and go-to-market
Output Format
Milestones are created with:
- Title: "Phase N: Phase Title"
- Description: Detailed phase description
- Due Date: Calculated 14 days apart
- State: Open
JSON output includes:
{
"repository": "owner/repo",
"project": {
"title": "Project Name",
"domain": "web",
"complexity": "moderate"
},
"phases": [
{
"id": "discovery",
"title": "Discovery & Requirements",
"description": "...",
"suggestedRoles": ["Product Owner", "UX Researcher"],
"dueDate": "2025-08-04"
}
]
}
Requirements
- Python 3.8+
- Git (for sparse checkout)
- Anthropic API key
- GitHub personal access token with
reposcope
Error Handling
- Validates repository access before attempting to create milestones
- Handles various GitHub URL formats
- Checks for existing milestones to avoid duplicates
- Provides clear error messages for common issues
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file github_backlog_generator-1.0.0.tar.gz.
File metadata
- Download URL: github_backlog_generator-1.0.0.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6deadb431e51bb66dda3512f96912b922b160fba4f087eb4eba82d84c01e74ca
|
|
| MD5 |
744ee304e8fcde213da7233f3c8962fa
|
|
| BLAKE2b-256 |
b472d4e3df5f80624874be8fa5deea2a0e3f8d84f635f65524de820740c5539e
|
File details
Details for the file github_backlog_generator-1.0.0-py3-none-any.whl.
File metadata
- Download URL: github_backlog_generator-1.0.0-py3-none-any.whl
- Upload date:
- Size: 34.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c61199c95e1d36c3443b0aa4944feb06c96a4e7a53c2c1891a2f0f4acaddbfe
|
|
| MD5 |
d8d09777375e684ba556ad21edd4d01e
|
|
| BLAKE2b-256 |
79d2730ec23ae563da4da3079766da52ad1d30ba714a5a54e3a11d1af14cef94
|