NewsBlur: Command for Claude Code

.claude/commands/commit-update-pr.md

commit-update-pr is a command for Claude Code from samuelclay/NewsBlur. It costs 16 tokens per session (1,046 once invoked), scanned A, original, MIT.

A command that finishes a coding change by committing it to Git, uploading it to the remote repository, creating or updating a pull request, and checking its automated tests.

In plain words
What is it for?
Use it after making code changes when you want to stage files, write a commit, push a branch, manage its pull request, and monitor the test results.
Why use it?
It brings several release steps into one workflow, so you do not have to remember each GitHub and CI action separately. It can also respond to failed checks.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

This is samuelclay/NewsBlur's own configuration. It tells Claude Code how to work on NewsBlur itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything NewsBlur configures →

About the project

NewsBlur is a personal RSS news reader and social network that displays stories, the original sites they come from, and tools for filtering and discussing them. Readers use it to follow subscriptions, train story preferences, search and tag articles, share reading, and optionally self-host the service. The catalogue entries provide commands, skills, instructions, hooks, and settings for working with the NewsBlur project.

samuelclay/NewsBlur · 7,680 stars · on GitHub · newsblur.com

Reuse

Borrowing it

Nothing to install: this file belongs to samuelclay/NewsBlur. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/samuelclay/NewsBlur/main/.claude/commands/commit-update-pr.md
Clone the repo
git clone --depth 1 https://github.com/samuelclay/NewsBlur

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 commit-update-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/samuelclay/newsblur/commit-update-pr/github.svg)](https://agentmods.dev/commands/samuelclay/newsblur/commit-update-pr)
Your own site
<a href="https://agentmods.dev/commands/samuelclay/newsblur/commit-update-pr"><img src="https://agentmods.dev/badge/commands/samuelclay/newsblur/commit-update-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 commit-update-pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/samuelclay/newsblur/commit-update-pr"><img src="https://agentmods.dev/badge/commands/samuelclay/newsblur/commit-update-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,046 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.00016 $0.01046
Opus 5.5 $0.00006 $0.00418
Sonnet 5.5 $0.00003 $0.00209
Haiku 4.5 $0.00002 $0.00105

Measured 2mo ago against content hash e981e0f7d7e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

commit-update-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 2mo 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.

.claude/commands/commit-update-pr.md · 102 lines

How it starts

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

Your task

Commit all staged/unstaged changes, push to remote, create or update the PR, then watch CI until it finishes and fix any failures.

Arguments provided: {{ arguments }}

Steps to execute

  1. Check git status to see what changes exist:

    git status
    git diff --stat
    git diff --staged --stat
    
  2. Check for existing PR for the current branch:

    gh pr view --json number,title,url,state 2>/dev/null
    
    • If a PR exists and is OPEN, note its URL and number - we'll update it
    • If no PR exists or it's closed/merged, we'll create a new one
  3. Stage all changes (if there are unstaged changes):

    git add -A
    
  4. Create the commit following the commit message conventions:

    • Run git log --oneline -5 to see recent commit style
    • Run git diff --staged to understand the changes
    • Write a concise commit message summarizing the changes
    • Use the format:
      git commit -m "$(cat <<'EOF'
      <commit message here>
      
      Co-Authored-By: Claude Opus 4.5 <[email protected]>
      EOF
      )"
      
  5. Push to remote:

    git push -u origin HEAD
    
  6. Create or update the PR:

    If a PR already exists:

    • The push already updated the PR
    • Note: "Updated existing PR: "

    If no PR exists:

    • Create a new PR:
      gh pr create --title "<title>" --body "$(cat <<'EOF'
      ## Summary
      <1-3 bullet points summarizing the changes>
      
      ## Test plan
      - [ ] <testing checklist items>
      
      ---
      Generated with [Claude Code](https://claude.com/claude-code)
      EOF
      )"
      
  7. Watch CI and auto-fix failures — do NOT stop after pushing. Monitor the PR's checks until every check has a terminal status (pass, fail, skipped, cancelled), and fix any failures before handing back to the user.

    a. Poll for status. After pushing, wait ~30s for CI to register, then:

    gh pr checks <PR_NUMBER>
    

    The first column is the check name, the second is status (pending, pass, fail, skipping, cancelled). Re-run this periodically. Do not chain sleep commands to wait — prefer run_in_background so you don't block, and poll by calling gh pr checks again on a reasonable cadence (30–60s). Keep going until no check shows pending.

Read the full file on GitHub · 102 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. 2mo ago First seen · 102 lines · 16 tokens per session scan A e981e0f7d7e7

Subscribe to this mod's changes

commit-update-pr is a command published in the GitHub repository samuelclay/NewsBlur (7,680 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 1,046 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-08-30.

Related

commit-update-pr compared with commands from other repositories

commit-update-pr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
commit-update-prsamuelclay/NewsBlurCommand7.7kyesterdayMITA16Claude Code
review-diffChatbotXIO/ChatbotXCommand1.1ktodaynoneA26Claude Code
review-fixesChatbotXIO/ChatbotXCommand1.1ktodaynoneA19Claude Code
copilotkelvinkosbab/AppBootstrapAICommand8todayMITA19Claude Code
audit-claudekelvinkosbab/AppBootstrapAICommand8todayMITA27Claude Code
audit-copilotkelvinkosbab/AppBootstrapAICommand8todayMITA27Claude Code
claudekelvinkosbab/AppBootstrapAICommand8todayMITA19Claude Code