What problem does it solve?
Manually compiling GitHub pull request metadata, diffs, and context into structured prompts for LLM code reviews is time-consuming and error-prone, especially for large PRs with diffs that exceed LLM context limits. This skill automates the entire process end-to-end.
Core Features & Use Cases
- Automated PR Data Fetching: Pulls full PR metadata, commit history, changed files, and diffs directly from GitHub via the GitHub CLI.
- Context-Aware Prompt Generation: Injects optional user story or ticket context into prompts for more relevant, targeted code reviews.
- Diff Chunking for LLM Limits: Automatically splits large PR diffs into approximately 100KB chunks to fit within standard LLM context windows, with clear chunk metadata for each generated prompt.
- Use Case: A software developer needs to conduct a thorough code review of a 300KB PR diff. This skill generates multiple separate, ready-to-use LLM prompts that cover 9 key code review dimensions, saving hours of manual copy-pasting and formatting work.
Quick Start
Use the pr-review skill to generate a structured LLM code review prompt for the GitHub pull request at https://github.com/your-org/your-repo/pull/123, and include the user story from the file feature-456.md for additional context.