github-pr-workflow

github-pr-workflow is a skill for Claude Code, Codex from AmineDjeghri/personal-os-setup. It costs 43 tokens per session (2,195 once invoked), scanned A, original, MIT.

A guide to managing a GitHub pull request from start to finish. A pull request is a proposed code change that others review before it is merged into a repository.

In plain words
What is it for?
Use it to create branches, make commits, open pull requests, inspect CI results, and merge changes using GitHub's command-line tools or API.
Why use it?
It avoids having to remember the commands and checks needed to create a branch, commit changes, run CI, and merge safely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to create branches, make commits, open pull requests, inspect CI results, and merge changes using GitHub's command-line tools or API.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aminedjeghri/personal-os-setup/github-pr-workflow
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 AmineDjeghri/personal-os-setup --skill github-pr-workflow
Clone the repo
git clone --depth 1 https://github.com/AmineDjeghri/personal-os-setup

Made for: Claude Code, Codex.

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 github-pr-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/aminedjeghri/personal-os-setup/github-pr-workflow/github.svg)](https://agentmods.dev/skills/aminedjeghri/personal-os-setup/github-pr-workflow)
Your own site
<a href="https://agentmods.dev/skills/aminedjeghri/personal-os-setup/github-pr-workflow"><img src="https://agentmods.dev/badge/skills/aminedjeghri/personal-os-setup/github-pr-workflow/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 github-pr-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/aminedjeghri/personal-os-setup/github-pr-workflow"><img src="https://agentmods.dev/badge/skills/aminedjeghri/personal-os-setup/github-pr-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,195 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.00043 $0.02195
Opus 5.5 $0.00017 $0.00878
Sonnet 5.5 $0.00009 $0.00439
Haiku 4.5 $0.00004 $0.00219

Measured yesterday against content hash 2466e4fa6132, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-pr-workflow 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.

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.

src/personal_os_setup/config/chezmoi/dot_claude/skills/github-pr-workflow/SKILL.md · 123 lines

How it starts

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

GitHub issues → pull requests (lifecycle)

Issue → branch → commits → PR → CI → merge with the gh CLI. No gh? Install it (see github-auth) — fallback: github-auth/references/rest-api-fallback.md. Needs gh auth inside a git repo with a GitHub remote. Reviewing someone else's PR, or answering a code question with no requested change: not this skill (github-code-review).

1. Issues

gh issue list --state open --label "bug"            # also: --assignee @me, --search "auth error" --state all
gh issue list --label "needs-triage" --state open   # untriaged
gh issue view 42 --comments
gh issue create --title "Login redirect ignores ?next=" --body "After login users land on /dashboard; expected /settings." --label "bug,backend" --assignee "username"
gh issue edit 42 --add-label "priority:high,bug"    # --remove-label; --add-assignee @me
gh issue comment 42 --body "Root cause is in auth middleware."
gh issue close 42 --reason "not planned"            # reopen: gh issue reopen 42
gh issue develop 42 --checkout                      # branch from an issue
gh issue list --label "wontfix" --json number --jq '.[].number' | xargs -I {} gh issue close {} --reason "not planned"   # bulk

Closes #42 / Fixes #42 / Resolves #42 in the PR body closes the issue on merge.

2. Carrying an issue to a verified PR

End-to-end discipline — premise validation, duplicate sweeps, class-level fixes, honest CI reporting. Each step ends with a "done when".

  1. Read the live issue — body AND full thread (gh issue view <N> --comments). The body is a filing-time snapshot; the newest comments carry partial fixes already merged, new root causes, maintainer decisions, or questions aimed at you. Also read AGENTS.md/contribution docs. Done when requested behavior, non-goals and unanswered thread questions are known.
  2. Sweep for existing and duplicate work. gh pr list --search "#<N>" --state all plus at least two keyword/synonym variants (gh pr list --search "<subsystem> <symptom>" --state open), and git log --oneline -20 -- <relevant files> for a recent fix. Done when every open PR/recent commit touching it is known, or none exist.
  3. Validate the premise against current code — and design intent. Reproduce on the current default branch with a failing test/fixture and trace the reported path. Then ask whether the "bug" is deliberate: git log -p -S "<symbol>" and read the original commit's intent — a missing link or restriction is often the feature. Challenge stale or flawed issue prose instead of implementing it blindly.
  4. Define acceptance and risk: criteria, interfaces, migrations/state, compatibility, security/privacy, rollout, rollback; map every criterion to a test or explicit verification. Done when review has a finite contract.
  5. Implement the smallest complete change — and fix the class. Isolated branch or worktree; regression tests first (load diagnosing-bugs / tdd when the bug class calls for them). Then search sibling call sites for the same bug shape and fix the whole class in this PR — an incomplete fix leaving known siblings broken is worse than none. Every changed line traces to the issue; no drive-by cleanup. Done when targeted tests pass, the original failure no longer reproduces, and siblings are fixed or ruled out.
  6. Prove the regression test bites (sabotage run). Temporarily restore the old behavior of the function under test, confirm the new test FAILS, restore the fix, confirm it passes. A test that passes with and without the fix proves nothing.
  7. Run the repo's gates, then open the PR immediately. Formatter, lint, typecheck, canonical test entrypoint on affected areas; a self-review of the diff (code-review skill). Push and open the PR right away (CI latency is the long pole) — once the user has approved the push and the PR (coding-workflow § 2). Body: problem, approach, tests, risk, exclusions, issue link. Read the PR back: head SHA, base, title, files. Done when the PR exists with the intended diff and CI is running.
  8. Shepherd CI honestly and close the loop. Inspect live checks and failure logs (§5). Separate failures your diff introduced from baseline/infra failures — reproduce on the default branch when unsure, rerun once only for genuine infra flakes. Never say "green", "merged" or "released" without live evidence of that exact state. When the PR lands, comment on the issue with the PR link and a one-line explanation.

Read the full file on GitHub · 123 lines

Files

What ships with it

1 file 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 Changed · +18 lines · +7 tokens per session 2466e4fa6132
  2. 18d ago Changed 208af178e6c2
  3. 1mo ago Changed · -80 lines · +16 tokens per session 89755eca89e4
  4. 2mo ago Changed · -234 lines scan D → A aeaa391d9a3e
  5. 2mo ago First seen · 419 lines · 20 tokens per session scan D b3269683125d

Subscribe to this mod's changes

github-pr-workflow is a skill published in the GitHub repository AmineDjeghri/personal-os-setup (687 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 2,195 once invoked, about $0.0002 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-09-19.

Related

github-pr-workflow compared with skills from other repositories

github-pr-workflow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github-pr-workflowAmineDjeghri/personal-os-setupSkill687todayMITA43Claude Code, Codex
gitlab-issue-to-mrOpenHands/extensionsSkill189todayMITA62Claude Code, Codex
devops-pipelineluongnv89/skillsSkill1494d agoMITA63Claude Code
commit-and-trackantropos17/AegisSkill1625d agoMITA34Claude Code, Codex
commitjuliusz-cwiakalski/agentic-delivery-osSkill47todayMITA8Claude Code
check-fixjuliusz-cwiakalski/agentic-delivery-osSkill47todayMITA27Claude Code
dependabot-consolidatorvinnie357/claude-skillsSkill301mo agoMITA85Claude Code