pull-request-expert
Skill28 starsChanged 3 months agoApache-2.0View on GitHub
Guidelines, conventional commits specifications, templates, and script validators to verify branches and pull request descriptions across languages.
In this repository34 other files it gives its agents.
- bigquery-query-optimizationSkill
- build-and-ci-gatesSkill
- cdc-scd-patternsSkill
- code-implementerSkill
- code-smells-expertSkill
- commit-expertSkill
- compliance-verifierSkill
- context-captureSkill
- context-restoreSkill
- database-migration-expertSkill
- design-spec-expertSkill
- documentation-expertSkill
- flutter-architecture-decisionsSkill
- flutter-performance-profilingSkill
- flutter-release-engineeringSkill
- flutter-review-checklistSkill
- flutter-senior-orchestrationSkill
- flutter-test-strategySkill
- flutter-upgrade-migrationSkill
- gcp-data-engineeringSkill
- guidelines-karpathySkill
- loop-engineeringSkill
- performance-scalabilitySkill
- product-analystSkill
- python-expertSkill
- qa-testerSkill
- refactoring-code-expertSkill
- repo-researchSkill
- security-auditSkill
- senior-architect-engineeringSkill
- senior-dev-orchestratorSkill
- sql-query-optimizationSkill
- test-driven-developmentSkill
- testing-expertSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Ensure the branch delivers exactly one cohesive capability.
- Very specific: line 60
Claude Code: Run validate_pr_content.py via bash, then generate the PR summary markdown.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pull Request Expert Skill
Overview
This skill guides the preparation, partitioning, description authoring, and quality verification of Pull Requests (PRs). It acts as a Lead Release Engineer and Git Coordinator, ensuring that branches adhere to naming standards, changes remain atomic and reviewable (<200-400 lines), commit histories conform to Conventional Commits, and PR descriptions provide complete context with testing proof.
When to Use
Trigger Scenarios
- Preparing a feature, fix, or chore branch for pull request submission.
- Auditing local branch names and recent commit history against project conventions.
- Generating comprehensive Pull Request descriptions using standard markdown templates.
- Conducting pre-submission self-reviews to verify test results and eliminate stray debug code.
When NOT to Use
- Formatting a single local commit message: Route to
commit-expert. - Configuring CI/CD pipelines or pre-commit hooks: Route to
build-and-ci-gates. - Conducting formal security release compliance: Route to
compliance-verifier.
Process
Phase 1: PR Scope Partitioning & Branch Naming
- Ensure the branch delivers exactly one cohesive capability. Keep total diffs under 200–400 lines whenever possible to facilitate thorough human review.
- Adhere to structured branch naming:
feat/<issue-id>-<short-description>fix/<issue-id>-<short-description>refactor/<short-description>chore/<short-description>
Phase 2: Automated Branch & History Audit
Scan the active branch and recent commits to verify compliance:
python3 ./skills/pull-request-expert/scripts/validate_pr_content.pyThe script validates branch naming patterns and ensures that commits on the branch adhere to Conventional Commits specifications.
Phase 3: Self-Review & PR Description Authoring
- Review the full
git diffto identify left-over debug statements, temporary comments, or unformatted files. - Generate the PR description using the template:
- Summary: Concise explanation of why the change is needed and what was implemented.
- Key Changes: Bulleted list of architectural and functional edits.
- Verification & Testing: Exact commands run and empirical test outcomes.
- Checklist: Self-review confirmation (tests added, docs updated, linter clean).
Usage
Commands & Automation Scripts
# Audit active branch name and recent commit history
python3 ./skills/pull-request-expert/scripts/validate_pr_content.pyExample Prompts
- "Audit this branch and its commit history before I open a pull request."
- "Draft a pull request description for our new payment webhook implementation."
- "Help me split this large 800-line change into two smaller, reviewable pull requests."
Host Execution Instructions
- Claude Code: Run
validate_pr_content.pyvia bash, then generate the PR summary markdown. - Antigravity: Validate branch state before generating PR documentation.
Red Flags
- Opening massive (>500 lines) PRs combining unrelated features, refactorings, and dependency updates.
- Branch names like
temp,fix1, orworkthat obscure context. - Empty or single-sentence PR descriptions ("Fixed bug") without test evidence.
- Submitting PRs with failing unit tests, linter warnings, or left-over
console.log/printdebug statements.
Verification
- Branch naming conforms to standard convention (
feat/...,fix/..., etc.). - Automated validation script passes:
python3 ./skills/pull-request-expert/scripts/validate_pr_content.py - Full diff reviewed; zero stray debug statements or unformatted code.
- PR description includes summary, testing evidence, and verified checklist.
References
- Pull Request & Commit Best Practices
- PULL_REQUEST_TEMPLATE.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

