pr-lifecycle

pr-lifecycle is a skill for Claude Code from jl-cmd/claude-dev-env. It costs 19 tokens per session (5,813 once invoked), scanned A, original, MIT.

A workflow guide for GitHub pull requests, which are proposed code changes reviewed before merging. It covers commits, pushes, review threads, merges, release automation, and dependent changes.

In plain words
What is it for?
Use it to prepare commits, open and update pull requests, handle review discussions, merge changes, and organise dependent work.
Why use it?
It gives agents consistent rules for moving changes through review and avoids mistakes that can disrupt automated releases. It also explains when related work should use separate or stacked pull requests.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python packages/claude-dev-env/scripts/cde_lint.py --base <the revision that printed>.

Part of the claude-dev-env plugin — 71 skills, 4 commands, 1 agent, 9 hooks shipped together

Good fit Use it to prepare commits, open and update pull requests, handle review discussions, merge changes, and organise dependent work.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jl-cmd/claude-dev-env
agentmods
npx agentmods add skills/jl-cmd/claude-dev-env/pr-lifecycle

Made for: Claude Code.

Or install claude-dev-env, the plugin that ships this one along with the rest of its 71 skills, 4 commands, 1 agent, 9 hooks.

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/jl-cmd/claude-dev-env/pr-lifecycle/github.svg)](https://agentmods.dev/skills/jl-cmd/claude-dev-env/pr-lifecycle)
Your own site
<a href="https://agentmods.dev/skills/jl-cmd/claude-dev-env/pr-lifecycle"><img src="https://agentmods.dev/badge/skills/jl-cmd/claude-dev-env/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/jl-cmd/claude-dev-env/pr-lifecycle"><img src="https://agentmods.dev/badge/skills/jl-cmd/claude-dev-env/pr-lifecycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,813 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.00019 $0.05813
Opus 5.5 $0.00008 $0.02325
Sonnet 5.5 $0.00004 $0.01163
Haiku 4.5 $0.00002 $0.00581

Measured 14d ago against content hash dc297db980be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 14d 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.

packages/claude-dev-env/.agents/skills/pr-lifecycle/SKILL.md · 471 lines

How it starts

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

Pull request lifecycle

Git workflow

User-level rule: applies to every git repo that uses GitHub with gh. Small or non-primary repos follow the same rule unless the user says otherwise in the session.

Workflow decision tree

When to use stacked PRs: Feature B depends on Feature A's implementation

When to extract shared infrastructure first: Multiple features need same utilities/helpers

Extract Shared Infrastructure Pattern:

  1. Create infrastructure PR with only shared code
  2. Get reviewed and MERGE infrastructure first
  3. Launch parallel feature PRs that use merged infrastructure

Pull request submission rules

Open every pull request ready for review. Pass --draft only when the owner asks for a draft.

A release bot's PR body is machine input. Leave it alone. Release automation reads back the body of its own merged pull request to decide it owns that merge. Rewriting the body, or trimming its header or footer, makes the bot treat the merge as somebody else's work: it cuts no tag, the publish job skips, and it opens one more release pull request on the next run. The merge stays in the repository. No tag is cut and the package never publishes.

Spot one by its head branch, which starts release-please--branches--, or by a body that opens with the bot's own marker line. The description rules in this file, the pstack:poteto-agent writing brief, and the house wording style all step aside for it. The failure signature in the release job log reads could not parse pull request body as a release PR.

pstack:poteto-agent writes a title and body from the diff when you want one. Publish the title and body file through ~/.agents/skills/pull-request/scripts/pull_request.py. That path is under the agents home. A worktree holds no .agents/ copy.

Resolve the active managed root (CLAUDE_CONFIG_DIR when set, ~/.claude otherwise), then run <managed-root>/scripts/durable_post_lint.py before any pull request, issue, or GitHub MCP post. The linter checks the action-specific title, body, and volatile-path rules before credential lookup or network access.

Read the full file on GitHub · 471 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. 14d ago First seen · 471 lines · 19 tokens per session scan A dc297db980be

Subscribe to this mod's changes

pr-lifecycle is a skill published in the GitHub repository jl-cmd/claude-dev-env (6 stars, last pushed 13d ago), licensed MIT. It adds 19 tokens to every session and 5,813 once invoked, about $0.0001 per session on Opus 5.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-10-04.

Related

Other skills, from other repositories

github-automation

GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.

ruvnet/ruflo · 61 tokens

plate

Turn finished local work into a commit, an ordinary pull request, or a pull request stack. Use this skill to commit changes or to publish a branch. Use it to open or update a pull request. Use it to create, sync, restack, or submit a pull request stack. You can also run /plate. This skill owns all staging, commits…

paulnsorensen/easy-cheese · 116 tokens

git-iris

Use this skill when generating commit messages, pull request descriptions, release notes, changelogs, or code reviews in a repository where git-iris is available. Activates on requests like "commit this", "write a commit message", "draft a PR", "generate release notes", "write a changelog", or "review my changes" when…

hyperb1iss/git-iris · 81 tokens

git-authoring

Authors and executes git work end to end — Conventional Commits messages, pull-request content, release notes, and pull-request review, plus the repository operations an engineer runs daily: branching, rebasing, squashing, cherry-picking, reverting, merge-conflict resolution, stashes, tags, remotes, and recovery…

n-shadloo/git-authoring · 225 tokens

mx-pr

Draft a pull request from the feature spec and git log, then publish to GitHub or GitLab (Bitbucket experimental) — or hand off. Use when a feature branch is ready for PR, standalone or from mx-flow. Usage: /mx-pr [name].

maxence2997/mx-harness · 57 tokens

github

GitHub-centric templates — pull requests, issue triage, repo automation.

conectlens/lenserfight · 17 tokens