This document describes the automated workflow for generating GitHub issues from the Piper Morgan backlog and keeping them in sync.
scripts/generate_github_issues.py# Search backlog for highest PM number
grep -o "PM-[0-9]\+" docs/planning/backlog.md | sort -V | uniq | tail -5
Current Result: PM-034 is the highest, so PM-035 is next available.
When creating new issues:
Follow the standard format:
### PM-XXX: Issue Title
**Story**: As a [role], I want [capability] so [benefit]
**Description**: Brief description of the work
**Estimate**: X points | **Status**: Ready | **Dependencies**: None
**Implementation Details**:
- Detail 1
- Detail 2
**Success Criteria**:
- [ ] Criterion 1
- [ ] Criterion 2
Use the automated script to create GitHub issues from backlog:
# Check what issues exist in GitHub
python scripts/generate_github_issues.py --check-existing
# Generate commands for missing issues (dry run)
python scripts/generate_github_issues.py --dry-run
# Generate and execute commands (requires gh auth login)
python scripts/generate_github_issues.py
scripts/generate_github_issues.pyCapabilities:
docs/planning/backlog.md for PM-XXX ticketsgh issue create commands for missing issuesUsage:
# Check existing issues only
python scripts/generate_github_issues.py --check-existing
# Preview commands without executing
python scripts/generate_github_issues.py --dry-run
# Generate and execute commands
python scripts/generate_github_issues.py
# Use custom backlog file
python scripts/generate_github_issues.py --backlog path/to/backlog.md
Requirements:
gh) for checking existing issuesgh auth login) for creating issuesThe script maps backlog format to GitHub issues:
| Backlog Field | GitHub Field | Notes |
|---|---|---|
### PM-XXX: Title |
--title |
Prefixed with PM-XXX |
**Story**: ... |
Body | First line |
**Description**: ... |
Body | Second line |
**Status**: ... |
Body | Included in body |
**Estimate**: ... |
Body | Included in body |
**Dependencies**: ... |
Body | Included in body |
**Implementation Details**: |
Body | Bullet points |
| N/A | --label |
Always “enhancement” |
Created: July 16, 2025 Status: Ready Priority: High (blocks reliable development)
Key Points:
--check-existing to see sync statusGitHub CLI Not Found:
# Install GitHub CLI
brew install gh # macOS
# or visit https://cli.github.com/
Authentication Issues:
# Login to GitHub
gh auth login
Script Errors:
Last Updated: July 16, 2025