gss-pr

gss-pr is a command for Claude Code from sfc-gh-eraigosa/dotfiles. It costs 13 tokens per session (618 once invoked), scanned A, original, Apache-2.0.

A command workflow that creates a Git feature branch, uploads the changes to GitHub, and opens a pull request, which is a request for code review and merging.

In plain words
What is it for?
It is for preparing code changes for review on GitHub, including summarizing the changes, committing them, creating an approval token, and opening the pull request.
Why use it?
It prevents accidental publishing by requiring confirmation before the pull-request command runs. It also checks the working state and ensures pending changes are committed first.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It is for preparing code changes for review on GitHub, including summarizing the changes, committing them, creating an approval token, and opening the pull request.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sfc-gh-eraigosa/dotfiles/gss-pr
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.

Clone the repo
git clone --depth 1 https://github.com/sfc-gh-eraigosa/dotfiles

Made for: Claude Code.

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 gss-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/sfc-gh-eraigosa/dotfiles/gss-pr/github.svg)](https://agentmods.dev/commands/sfc-gh-eraigosa/dotfiles/gss-pr)
Your own site
<a href="https://agentmods.dev/commands/sfc-gh-eraigosa/dotfiles/gss-pr"><img src="https://agentmods.dev/badge/commands/sfc-gh-eraigosa/dotfiles/gss-pr/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 gss-pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/sfc-gh-eraigosa/dotfiles/gss-pr"><img src="https://agentmods.dev/badge/commands/sfc-gh-eraigosa/dotfiles/gss-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 618 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.00013 $0.00618
Opus 5 $0.00006 $0.00309
Sonnet 5 $0.00003 $0.00124
Haiku 4.5 $0.00001 $0.00062

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

Security

Grade A, and why

gss-pr 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 9d 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.

ai/claude/commands/gss-pr.md · 29 lines

How it starts

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

You are about to run the gss pr workflow (creates a feature branch, pushes, opens a PR on GitHub).

Current state

!gss status

Pending diff

!git diff --stat


Arguments (PR title hint, optional): $ARGUMENTS

Follow the git-safe-sync skill rules strictly:

  1. Summarize what would be pushed and what the PR will contain.
  2. STOP. Do NOT execute gss pr until the user explicitly confirms in a follow-up turn.
  3. On confirmation, commit any pending changes first, then run the token + gss pr pair. gss pr never commits — with uncommitted changes and nothing ahead of origin/main it now fails fast with "nothing to PR" (and on older binaries it pushed an empty branch and died on gh pr create). Sequence, as separate Bash calls (chaining them with && is intentionally blocked by safety_guard.sh):
    • Call 1 (only if the diff above shows pending changes): stage by explicit file name (never git add -A) and commit with a HEREDOC message.
    • Call 2: mkdir -p ~/.config/gss && git rev-parse HEAD > ~/.config/gss/approval.token (the token is HEAD-bound — always generate it AFTER the commit)
    • Call 3: gss pr --title "<subject>" --body "<markdown body>" Per the skill's PR Hygiene rule you MUST pass a real --body (What/Why/Impact/Testing); gss pr does not infer one, so omitting it ships an empty description. (gss pr has no --draft flag; classic PRs are created ready-for-review.)
    • Updating an existing PR: if the branch already has an open PR and you are pushing more commits, gss pr/gss push will NOT refresh the body — you MUST update it yourself with gh pr edit <number> --title/--body so the description reflects every commit now on the PR. Never leave a stale description behind a push.
  4. After execution, surface the PR URL prominently. If you updated an existing PR, confirm its description was refreshed to match. Then ask whether to open it via the open-url <url> helper (opt/scripts/misc/open-url) — it picks the right opener per platform (macOS open, WSL wslview/explorer.exe, Linux xdg-open).

Read the full file on GitHub · 29 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. 9d ago First seen · 29 lines · 13 tokens per session scan A f011c9f2bc59

Subscribe to this mod's changes

gss-pr is a command published in the GitHub repository sfc-gh-eraigosa/dotfiles (46 stars, last pushed today), licensed Apache-2.0. It adds 13 tokens to every session and 618 once invoked, about $0.0001 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-30.