branch-pr
Create Gentle AI pull requests with issue-first checks. Trigger: creating, opening, or preparing PRs for review.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- branch-pr
- triggers
- pull request, create PR, open PR, branch naming, PR creation, review PR, github pull request
- changelog
- docs/ciclos/cycle28-20260815.md
- description
- Create Gentle AI pull requests with issue-first checks. Trigger: creating, opening, or preparing PRs for review.
- token_budget
- 2200
03 SKILL.md 正文
Rules
- PR MUST link approved issue —
Closes/Fixes/Resolves #<N>, issuestatus:approved. No link→CI rejects. - Exactly one
type:*label - ≤400 changed lines OR
size:exception - No
Co-Authored-Bytrailers - No force-push to main/master
Workflow
gh issue view <N> --repo Gentleman-Programming/gentle-ai→ confirmstatus:approved- Branch:
^(feat|fix|chore|docs|style|refactor|perf|test|build|ci|revert)\/[a-z0-9._-]+$ - Implement, test locally (
go test ./...,cd e2e && ./docker-test.sh) - Commit
<type>(<scope>)!: <desc>(conventional commits) gh pr create --repo Gentleman-Programming/gentle-ai --title "<type>(<scope>): <desc>" --body-file body.md- ONE label:
type:bug|feature|docs|refactor|chore|breaking-change - Wait for CI: check-pr-size, check-issue-ref, check-issue-approved, check-type-label, unit, e2e
Breaking Changes
Add ! after type/scope. BREAKING CHANGE: in footer. Maps to type:breaking-change.
Anti-Rationalization
| Rationalization | Red Flag | Verification |
|---|---|---|
| "PR sin issue-first" | No Closes/Fixes #N or issue not approved | gh issue view + body Closes #N + CI check |
| "commit mixto" | Mixed work units or >400 lines | 1 commit=1 work unit + ≤400 lines |
| "branch sin regex" | Branch doesn't match pattern | Regex + exactly one type:* label |
Red Flags
- Same rationalization 2× → force RED
Verification
gh pr view <N> --json labels,closingIssuesReferenceshows exactly onetype:*label + linked approved issuegit diff --stat≤400L orsize:exceptionlabel present
→ docs/skills/branch-pr/reference.md · Cross-Refs: chained-pr | issue-creation | work-unit-commits | commit-crafter
04 同仓库更多 Skills
web-quality-audit
Comprehensive web audit: performance, a11y, SEO, responsive, animation, design tokens.
ui-engine
UI system — Grid/Flexbox/@layer/:has(), container queries, compositor-only animation, OKLCH tokens, component patterns
baseline-ui
Anti-slop UI — layout, typography, responsive, animation, tokens. Use for cleanup or polish.
skill-creator
Create new AI agent skills following Agent Skills spec -- auto-bootstrap unknown tasks, define structure, register in AGENTS.md
senior-engineer
Apply senior engineering competencies — system design, trade-off analysis, delegation, mentoring, and tech debt strategy
prompt-engineering
Design effective prompts using SPEARS framework — scope, principles, examples, assertions, refinements, with ReAct and multi-agent patterns