cmd/generate_changelog/PRD.md
The Changelog Generator is a high-performance Go tool that automatically generates comprehensive changelogs from git history and GitHub pull requests.
cmd/generate_changelog/
├── main.go # CLI entry point with cobra
├── internal/
│ ├── git/ # Git operations (go-git)
│ ├── github/ # GitHub API client (go-github)
│ ├── cache/ # SQLite caching layer
│ ├── changelog/ # Core generation logic
│ └── config/ # Configuration management
└── changelog.db # SQLite cache (generated)
GITHUB_TOKEN: GitHub API authentication token--repo, -r: Repository path (default: current directory)--output, -o: Output file (default: stdout)--limit, -l: Version limit (default: all)--version, -v: Target specific version--save-data: Export debug JSON--cache: Cache file location--no-cache: Disable caching--rebuild-cache: Force cache rebuild--token: GitHub token overrideThis Go implementation provides a modern, efficient, and feature-rich changelog generator.