pr-lifecycle

pr-lifecycle is a skill for Claude Code from parisgroup-ai/imersao-ia-setup. It costs 121 tokens per session (1,913 once invoked), scanned A, original, MIT.

A workflow for managing pull requests from review through validation and merging. A pull request is a proposed code change that needs checking before it enters the main branch.

In plain words
What is it for?
Use it to list and triage open pull requests, inspect reviews and checks, validate readiness, merge approved work, and clean up stale pull requests.
Why use it?
It gathers status, reviews the changes, detects the project’s validation checks, and applies a consistent merge process instead of handling each pull request ad hoc.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the imersao plugin — 51 skills, 7 commands shipped together

Good fit Use it to list and triage open pull requests, inspect reviews and checks, validate readiness, merge approved work, and clean up stale pull requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/parisgroup-ai/imersao-ia-setup/pr-lifecycle
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add parisgroup-ai/imersao-ia-setup --skill pr-lifecycle
Clone the repo
git clone --depth 1 https://github.com/parisgroup-ai/imersao-ia-setup

Made for: Claude Code.

Or install imersao, the plugin that ships this one along with the rest of its 51 skills, 7 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-lifecycle

README.md
[![agentmods](https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/pr-lifecycle/github.svg)](https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/pr-lifecycle)
Your own site
<a href="https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/pr-lifecycle"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/pr-lifecycle/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-lifecycle

Your own site · 80×15
<a href="https://agentmods.dev/skills/parisgroup-ai/imersao-ia-setup/pr-lifecycle"><img src="https://agentmods.dev/badge/skills/parisgroup-ai/imersao-ia-setup/pr-lifecycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,913 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00121 $0.01913
Opus 5 $0.00060 $0.00957
Sonnet 5 $0.00024 $0.00383
Haiku 4.5 $0.00012 $0.00191

Measured 11d ago against content hash 5e1e9543d439, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pr-lifecycle scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/imersao/skills/pr-lifecycle/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:
    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
    • Ready: approved + CI passing → suggest merge

analyze <PR#> — Deep Analysis

Understand what a PR does and whether it's safe.

  1. Fetch PR metadata: gh pr view <PR#> --json title,body,author,state,reviewDecision,statusCheckRollup,mergeable,baseRefName,headRefName,additions,deletions,changedFiles
  2. Fetch diff stats: gh pr diff <PR#> --stat
  3. Identify affected package(s) from file paths
  4. Do a thorough code-review pass on the PR for code analysis
  5. Summarize:
    • Scope: files changed, lines +/-
    • Package(s) affected
    • Review verdict
    • Approval status
    • CI status

Read the full file on GitHub · 216 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 216 lines · 121 tokens per session scan A 5e1e9543d439

Subscribe to this mod's changes

pr-lifecycle is a skill published in the GitHub repository parisgroup-ai/imersao-ia-setup (1 stars, last pushed 28d ago), licensed MIT. It adds 121 tokens to every session and 1,913 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pr-triage

PR triage: audit open PRs, deep review selected ones, draft and post review comments. Args: "all" to review all, PR numbers to focus (e.g. "42 57"), "en"/"fr" for language, no arg = audit only in French.

MDMAtk/TormentNexus · 64 tokens

pr-workflow

Prepares branches and PRs for clean, reviewable merges.

andreaswasita/copilot-agents-dojo · 17 tokens

Independent Review Synthesis

A review tool that combines findings from multiple human or AI code reviews and checks them against the diff, surrounding code, tests, and prior findings.

s977043/river-review · 52 tokens

triage-report

Drain the .review/ report queue. Resolves un-triaged scan/audit reports (producer-agnostic — check-docs-consistency and any other scanner), dispatches the triage-report subagent (Sonnet) one report at a time for per-finding dispositions (promote / patch / dup / needs-investigation / dismiss), then the gateway absorbs…

RockyHong/super-bootstrap · 151 tokens

GitHubレビューコメント対応(修正案つき)

A review workflow for handling comments on a GitHub pull request, which is a proposed code change. It groups comments by importance, records what remains unresolved, and prepares replies and small fix plans.

s977043/river-review · 42 tokens

fresh-eyes-review

This skill should be used as a mandatory final sanity check before git commit, PR creation, or declaring work done. Triggers on "commit", "push", "PR", "pull request", "done", "finished", "complete", "ship", "deploy", "ready to merge". Catches security vulnerabilities, logic errors, and business rule bugs that slip…

2389-research/fresh-eyes-review · 83 tokens