issue-pr-lifecycle-agent

issue-pr-lifecycle-agent is a skill for Claude Code, Codex from richfrem/agent-plugins-skills. It costs 81 tokens per session (608 once invoked), scanned A, original, MIT.

A workflow tool for taking a GitHub Issue through an isolated worktree, pull request, issue closure, and cleanup.

In plain words
What is it for?
Use it to orchestrate pull-request work that resolves a specific GitHub Issue from start to finish.
Why use it?
It keeps the steps of issue-based development connected and supports dry runs before making changes on GitHub.

Skill for Claude CodeCodex

Part of the dev-utils plugin — 17 skills, 2 agents shipped together

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.

agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/issue-pr-lifecycle-agent
Any agent
npx skills add richfrem/agent-plugins-skills --skill issue-pr-lifecycle-agent
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code, Codex.

Or install dev-utils, the plugin that ships this one along with the rest of its 17 skills, 2 agents.

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 issue-pr-lifecycle-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/issue-pr-lifecycle-agent.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/issue-pr-lifecycle-agent)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/issue-pr-lifecycle-agent"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/issue-pr-lifecycle-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 608 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00081 $0.00608
Opus 5 $0.00041 $0.00304
Sonnet 5 $0.00016 $0.00122
Haiku 4.5 $0.00008 $0.00061

Measured yesterday against content hash 42bbce90d85a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

issue-pr-lifecycle-agent 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 yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/issue_pr_orchestrate.py, tests/test_issue_pr_orchestrate.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/dev-utils/skills/issue-pr-lifecycle-agent/SKILL.md · 64 lines

How it starts

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

Issue PR Lifecycle Agent (issue-pr-lifecycle-agent)

Routing Directive: USE ONLY when orchestrating or dry-running the full lifecycle flow (Issue -> Worktree -> PR -> Close resolution). DO NOT USE for individual isolated worktree setup (use issue-worktree-agent instead), task scratchpads (use task-agent instead), or friction logging (use github-issue-agent instead).

The issue-pr-lifecycle-agent skill connects git worktree execution with GitHub CLI operations (gh pr create, gh issue close) into a single, verifiable workflow pipeline.


Safety & Security Contracts

  1. Dry-Run by Default: Execution defaults to dry-run payload generation (--execute flag required for live changes).
  2. Linked Resolution: Automatically appends Closes #NNN to PR bodies to enforce automatic resolution tracking.
  3. Structured Flow: Sequence: Worktree Creation -> PR Submission -> Issue Closure -> Worktree Cleanup.

Usage catalog

Orchestrate End-to-End Lifecycle

  • Helper Script: plugins/dev-utils/skills/issue-pr-lifecycle-agent/scripts/issue_pr_orchestrate.py
  • CLI Usage:
    # Dry-run payload generation for Issue #42:
    python3 plugins/dev-utils/skills/issue-pr-lifecycle-agent/scripts/issue_pr_orchestrate.py --issue 42 --title "Fix login bug" --body "Resolves crash on empty password"
    
    # Live execution of end-to-end lifecycle:
    python3 plugins/dev-utils/skills/issue-pr-lifecycle-agent/scripts/issue_pr_orchestrate.py --issue 42 --title "Fix login bug" --body "Resolves crash on empty password" --execute
    

Python API Interface

from plugins.dev_utils.skills.issue_pr_lifecycle_agent.scripts.issue_pr_orchestrate import (
    orchestrate_lifecycle,
    generate_lifecycle_payload,
)

# Generate dry-run payload
payload = generate_lifecycle_payload(issue_number=42, title="Fix bug", body="Fixes #42")

# Orchestrate lifecycle
res = orchestrate_lifecycle(issue_number=42, title="Fix bug", body="Fixes #42", dry_run=False)

Read the full file on GitHub · 64 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 64 lines · 81 tokens per session scan A 42bbce90d85a

Subscribe to this mod's changes

issue-pr-lifecycle-agent is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed yesterday), licensed MIT. It adds 81 tokens to every session and 608 once invoked, about $0.0004 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-09-03.