# Release Patterns

> PR creation, CI/CD validation, and release coordination patterns. Use when creating pull requests, running pre-PR validation, checking CI status, or coordinating merges.

- Skill: `majiayu000/release-patterns` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/release-patterns`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/release-patterns/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/release-patterns

---


# Release Patterns Skill

## Purpose

Ensure consistent PR creation, CI/CD validation, and release coordination following rebase-first workflow.

## When This Skill Applies

- Creating pull requests
- Running pre-PR validation
- Checking CI/CD status
- Coordinating merge timing

## Pre-PR Checklist (MANDATORY)

Before creating any PR:

- [ ] Branch name: `{TICKET_PREFIX}-{number}-{description}`
- [ ] Commits follow: `type(scope): description [{TICKET_PREFIX}-XXX]`
- [ ] Rebased on latest main: `git fetch origin && git rebase origin/{MAIN_BRANCH}`
- [ ] CI passes locally: `{CI_VALIDATE_COMMAND}`

## PR Creation

```bash
gh pr create \
  --title "feat(scope): description [{TICKET_PREFIX}-XXX]" \
  --body "## Summary
Implements feature as specified in {TICKET_PREFIX}-XXX.

## Changes
- Change 1
- Change 2

## Testing
- CI passes
- Manual testing completed"
```

## Merge Strategy

**ONLY use rebase merge:**

```bash
# CORRECT
gh pr merge --rebase --delete-branch

# NEVER
gh pr merge --squash   # Loses history
gh pr merge --merge    # Creates merge commits
```

## Reference

- **PR Template**: `.github/pull_request_template.md`
- **Workflow Guide**: `CONTRIBUTING.md`

