github-pr-workflow

github-pr-workflow is a skill for Claude Code, Codex from AmineDjeghri/personal-os-setup. It costs 20 tokens per session (1,262 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.

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 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,262 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.00020 $0.01262
Opus 5.5 $0.00008 $0.00505
Sonnet 5.5 $0.00004 $0.00252
Haiku 4.5 $0.00002 $0.00126

Measured 18d ago against content hash aeaa391d9a3e, 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 18d 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.

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

How it starts

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

GitHub Pull Request Workflow

Complete guide for managing the PR lifecycle with the gh CLI. On a machine without gh, see references/rest-api-fallback.md.

Prerequisites

  • Authenticated with GitHub (see github-auth skill — ask to install gh if it's missing, that's the default path)
  • Inside a git repository with a GitHub remote
  • gh genuinely can't be installed: references/rest-api-fallback.md (auth detection, token setup, REST calls)

1. Branch Creation

This part is pure git — identical either way:

# Make sure you're up to date
git fetch origin
git checkout main && git pull origin main

# Create and switch to a new branch
git checkout -b feat/add-user-authentication

Branch naming conventions:

  • feat/description — new features
  • fix/description — bug fixes
  • refactor/description — code restructuring
  • docs/description — documentation
  • ci/description — CI/CD changes

2. Making Commits

Use the agent's file tools (write_file, patch) to make changes, then commit:

# Stage specific files
git add src/auth.py src/models/user.py tests/test_auth.py

# Commit with a conventional commit message
git commit -m "feat: add JWT-based user authentication

- Add login/register endpoints
- Add User model with password hashing
- Add auth middleware for protected routes
- Add unit tests for auth flow"

Commit message format (Conventional Commits):

type(scope): short description

Longer explanation if needed. Wrap at 72 characters.

Types: feat, fix, refactor, docs, test, ci, chore, perf

Mandatory pre-push checklist: see the repo-conventions skill (line endings: see the git-line-endings skill).

3. Pushing and Creating a PR

No gh? Install it (see github-auth) — genuine fallback: references/rest-api-fallback.md.

Push the Branch (same either way)

git push -u origin HEAD

Create the PR

With gh:

gh pr create \
  --title "feat: add JWT-based user authentication" \
  --body "## Summary
- Adds login and register API endpoints
- JWT token generation and validation

## Test Plan
- [ ] Unit tests pass

Closes #42"

Read the full file on GitHub · 185 lines

Files

What ships with it

5 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. 18d ago Changed · -234 lines scan D → A aeaa391d9a3e
  2. 27d 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 (654 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 1,262 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-09-19.

Related

Other skills, from other repositories