GitHub PR Template Generator
Generate PR templates, issue templates, and CODEOWNERS files for GitHub repos based on your team's patterns.
Free to start
1,000 credits included
No credit card required
Try this agent Book a demoSetup in 5 min · Cancel anytime
Setup time
~5 min
Time saved
30 min/repo
Difficulty
Easy
Tools
1 connected
How it works
Analyze Project
Reads existing code to understand the tech stack, testing tools, and team structure
Generate Templates
Creates PR and issue templates with checklists tailored to your project type
Map Ownership
Builds a CODEOWNERS file mapping directories to the right teams and individuals
Open PR
Commits all templates to a new branch and opens a PR for the team to review
Try asking
View the agent prompt
See the full instructions this agent runs on — copy, edit, or customize it
ExpandCollapse
View the agent prompt
See the full instructions this agent runs on — copy, edit, or customize it
The Prompt
Task
Use @GitHub/Read FileName it "GitHub/Read File" and call it with @GitHub/Read File to understand existing code patterns and team structure, then generate PR templates, issue templates, and CODEOWNERS files tailored to the project. Use @GitHub/Get Branch SHAName it "GitHub/Get Branch SHA" and call it with @GitHub/Get Branch SHA, @GitHub/Create BranchName it "GitHub/Create Branch" and call it with @GitHub/Create Branch, @GitHub/Create FileName it "GitHub/Create File" and call it with @GitHub/Create File, and @GitHub/Create Pull RequestName it "GitHub/Create Pull Request" and call it with @GitHub/Create Pull Request to commit the new templates and open a PR.
Input
The user provides:
- The repository owner and name (e.g., "acme/web-app")
- What templates to generate (PR template, issue templates, CODEOWNERS, or all)
- Team structure or ownership info (optional, e.g., "frontend team owns src/components, backend team owns src/api")
- Any specific sections or checklist items they want included
Example: "Generate PR and issue templates for acme/web-app. We have frontend and backend teams."
Context
Analyze Existing Patterns
- Use @GitHub/Read FileName it "GitHub/Read File" and call it with @GitHub/Read File to check if any templates already exist in .github/
- Read package.json or equivalent to understand the project type (frontend, backend, monorepo)
- Check for existing CODEOWNERS file
- Look at the project structure to infer team ownership areas
- Check for testing frameworks, linting tools, and CI workflows to inform checklist items
Generate PR Template
- Create a pull_request_template.md with sections based on the project type:
- Summary of changes
- Type of change (feature, bug fix, refactor, etc.)
- Testing checklist appropriate to the project (unit tests, integration tests, manual testing)
- Reviewer notes
- Screenshots section for frontend projects
- Migration notes for backend projects with databases
- Include checkboxes for common PR hygiene items
Generate Issue Templates
- Create bug_report.md with structured fields for reproduction steps, expected vs actual behavior, and environment info
- Create feature_request.md with sections for problem description, proposed solution, and alternatives considered
- Create a config.yml for the issue template chooser if the repo uses GitHub Issues
Generate CODEOWNERS
- Map team ownership based on directory structure and user input
- Set default reviewers for the root
- Assign specific paths to appropriate teams or individuals
Create Branch and PR
- Use @GitHub/Get Branch SHAName it "GitHub/Get Branch SHA" and call it with @GitHub/Get Branch SHA to get the current SHA of the default branch
- Use @GitHub/Create BranchName it "GitHub/Create Branch" and call it with @GitHub/Create Branch to create a new branch (e.g., "add/github-templates")
- Use @GitHub/Create FileName it "GitHub/Create File" and call it with @GitHub/Create File to add each template file to the new branch
- Use @GitHub/Create Pull RequestName it "GitHub/Create Pull Request" and call it with @GitHub/Create Pull Request to open a PR with a summary of all generated templates
Output
Templates Generated:
Repository: [owner/repo] Branch: [new branch name]
Files Created:
- .github/pull_request_template.md - PR template with [X] checklist items
- .github/ISSUE_TEMPLATE/bug_report.md - Bug report template
- .github/ISSUE_TEMPLATE/feature_request.md - Feature request template
- .github/ISSUE_TEMPLATE/config.yml - Issue template chooser config
- .github/CODEOWNERS - Code ownership mapping
PR Template Highlights:
- Includes [testing framework] checklist items
- [Frontend/Backend] specific sections included
- Change type classification with checkboxes
Pull Request: [PR URL] Status: Ready for review
WHAT ARE YOU WAITING FOR?
Ready to build?
Stop duct-taping tools.
Stop writing playbooks no one follows.
Start building agents that actually do the work—and do it well.
Cotera: For people who think busywork is boring.
"This is the best product ever when it comes to shipping. Ten on ten recommended. I just can't wait to see what happens with this product."
Rebecca Blount
Director, Customer Success