update-github

update-github is a command for Claude Code from Galaxy-Dawn/claude-scholar. It costs 15 tokens per session (590 once invoked), scanned A, original, MIT.

A command for committing local code changes and sending them to a GitHub repository. It uses Conventional Commits, a standard format for describing changes such as fixes, features, and documentation updates.

In plain words
What is it for?
Use it after reviewing your changes when you want to stage, commit, push, and verify the current branch.
Why use it?
It turns a set of uncommitted changes into a traceable commit and keeps the remote repository up to date.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the claude-scholar plugin — 45 skills, 34 commands, 6 agents, 5 hooks shipped together

Good fit Use it after reviewing your changes when you want to stage, commit, push, and verify the current branch.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/galaxy-dawn/claude-scholar/update-github
About the project

Claude Scholar is a semi-automated research assistant for academic research and software development, supporting literature review, coding, experiments, reporting, writing, and project knowledge management. Computer science and AI researchers use it across the research workflow with several coding-agent platforms; the catalogue contains its skills, commands, agents, hooks, plugin, and instruction.

Galaxy-Dawn/claude-scholar · 5,867 stars · on GitHub

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/Galaxy-Dawn/claude-scholar

Made for: Claude Code.

Or install claude-scholar, the plugin that ships this one along with the rest of its 45 skills, 34 commands, 6 agents, 5 hooks.

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 update-github

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/galaxy-dawn/claude-scholar/update-github"><img src="https://agentmods.dev/badge/commands/galaxy-dawn/claude-scholar/update-github.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 590 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.00015 $0.00590
Opus 5.5 $0.00006 $0.00236
Sonnet 5.5 $0.00003 $0.00118
Haiku 4.5 $0.00002 $0.00059

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

Security

Grade A, and why

update-github 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 1mo 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.

commands/update-github.md · 101 lines

How it starts

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

Update GitHub

Commit uncommitted changes and push to remote GitHub repository.

Instructions

  1. Check Git Status

    • Run git status
    • Show all uncommitted changes
  2. Analyze Changes

    • Review changed files
    • Determine commit type (feat/fix/docs/refactor/test/chore)
    • Determine scope (affected module/component)
  3. Create Commit Message Follow Conventional Commits format:

    <type>(<scope>): <subject>
    
    <body>
    
    <footer>
    

    Types:

    • feat: 新功能
    • fix: Bug 修复
    • docs: 文档更新
    • refactor: 代码重构
    • perf: 性能优化
    • test: 测试相关
    • chore: 其他修改
  4. Stage and Commit

    • Run git add for affected files
    • Create commit with formatted message
    • Do not include Co-Authored-By footers unless the user explicitly asks for them
  5. Push to Remote

    • Run git push
    • If rejected, pull with rebase first:
      git pull --rebase origin $(git branch --show-current)
      git push
      
  6. Verify Success

    • Show commit SHA
    • Show remote branch status

Example Usage

User: /update-github

1. Checking git status...
   Modified: src/utils/helpers.py
   Modified: README.md

2. Analyzing changes...
   - src/utils/helpers.py: Refactored helper functions
   - README.md: Updated documentation

3. Proposed commit:
   docs(readme): 更新项目文档

   - 添加使用示例
   - 更新依赖说明

4. Proceed? (yes/no/modify)

5. Staging files...
   git add src/utils/helpers.py README.md

6. Creating commit...
   [main abc1234] docs(readme): 更新项目文档

7. Pushing to remote...
   git push
   To github.com:user/repo.git
      abc1234..def5678  main -> main

✅ Successfully pushed to GitHub!

Arguments

$ARGUMENTS can be:

  • --amend - Amend last commit instead of creating new one
  • --no-verify - Skip pre-commit hooks
  • <type>(<scope>): <message> - Use custom commit message

Integration

This command uses the same Conventional Commits format as the /commit skill but focuses on the complete flow: stage → commit → push.

Read the full file on GitHub · 101 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. 1mo ago First seen · 101 lines · 15 tokens per session scan A 4b68f687041d

Subscribe to this mod's changes

update-github is a command published in the GitHub repository Galaxy-Dawn/claude-scholar (5,867 stars, last pushed 2d ago), licensed MIT. It adds 15 tokens to every session and 590 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.