pr-lifecyclelisted
Install: claude install-skill parisgroup-ai/imersao-ia-setup
<!-- last-reviewed: 2026-05-17 -->
# PR Lifecycle
End-to-end PR management: **triage → analyze → validate → merge**.
This skill works from whatever package/repo directory you're in — `gh` commands resolve the repo automatically (single-repo or monorepo).
## Merge Strategy
**Always squash merge.** When a repo uses semantic-release on `main`, squash produces one clean conventional commit per PR. Feature branch WIP stays out of main. Rollback = revert one commit.
The squash commit message must follow conventional commits: `feat(scope): description`.
## Commands
Parse the user's intent to determine which command to run. If the user says "merge PR #42", run the full `merge` pipeline. If they say "what PRs are open", run `status`. If ambiguous, default to `status`.
---
### `status` — PR Dashboard
1. Detect repo: `gh repo view --json nameWithOwner -q .nameWithOwner`
2. List PRs:
```bash
gh pr list --state open --json number,title,author,createdAt,updatedAt,labels,reviewDecision,statusCheckRollup,headRefName,isDraft
```
3. Present summary table:
```
| # | Title | Author | Age | Reviews | CI | Draft |
|----|-------------------|--------|-----|--------------|--------|-------|
| 42 | feat(composites)… | user | 3d | APPROVED | pass | No |
| 38 | fix(theme):… | user | 7d | CHANGES_REQ | fail | No |
```
4. Flag issues:
- **Stale**: no update > 7 days
- **Blocked**: failing CI or changes requested