AgentSkillsCN

pr-conventions

遵循拉取请求规范,以实现全面的提交分析与测试计划。在创建或审查拉取请求时使用此功能。

SKILL.md
--- frontmatter
name: pr-conventions
description: Pull request conventions for comprehensive commit analysis and test planning. Use when creating or reviewing pull requests.
trigger: always_on

PR Conventions

Full Commit History Analysis

When creating a pull request, always analyse the full commit history — not just the latest commit.

  1. Use git diff [base-branch]...HEAD to see all changes since the branch diverged
  2. Use git log [base-branch]..HEAD to review every commit message
  3. Draft a comprehensive PR summary that covers ALL commits, not just the most recent one

Test Plan Requirement

Every PR must include a Test plan section with a bulleted TODO checklist:

markdown
## Test plan
- [ ] Unit tests pass for new functionality
- [ ] Integration tests cover the critical path
- [ ] Manual verification of [specific behaviour]
- [ ] Edge cases tested: [list them]

Branch Push Convention

When pushing a new branch for the first time, always use the -u flag:

bash
git push -u origin <branch-name>