gh-publish

gh-publish is a skill for Claude Code, Codex from Starfie1d1272/dsh-github-skills. It costs 47 tokens per session (627 once invoked), scanned A, original, Apache-2.0.

A workflow for publishing task-specific code changes to GitHub through branches, commits, pushes, and pull requests. A pull request is a request for others to review and merge changes.

In plain words
What is it for?
Use it when pushing changes to GitHub or opening a pull request, including contributions made through a fork of another repository.
Why use it?
It helps separate the requested work from unrelated local changes and guides the steps needed to publish it safely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when pushing changes to GitHub or opening a pull request, including contributions made through a fork of another repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/starfie1d1272/dsh-github-skills/gh-publish
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 Starfie1d1272/dsh-github-skills --skill gh-publish
Clone the repo
git clone --depth 1 https://github.com/Starfie1d1272/dsh-github-skills

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 gh-publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/starfie1d1272/dsh-github-skills/gh-publish/github.svg)](https://agentmods.dev/skills/starfie1d1272/dsh-github-skills/gh-publish)
Your own site
<a href="https://agentmods.dev/skills/starfie1d1272/dsh-github-skills/gh-publish"><img src="https://agentmods.dev/badge/skills/starfie1d1272/dsh-github-skills/gh-publish/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 gh-publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/starfie1d1272/dsh-github-skills/gh-publish"><img src="https://agentmods.dev/badge/skills/starfie1d1272/dsh-github-skills/gh-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 627 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.00047 $0.00627
Opus 5 $0.00023 $0.00313
Sonnet 5 $0.00009 $0.00125
Haiku 4.5 $0.00005 $0.00063

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

Security

Grade A, and why

gh-publish 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/publish-preflight.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/gh-publish/SKILL.md · 56 lines

How it starts

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

GitHub Publish

Remote publication is this skill's primary purpose, so the user's requested publish scope defines which remote steps are authorized: push task-scoped changes and, when requested, open a pull request. Pushing does not imply opening a PR. Fork-based external contributions follow the same flow from a checkout of the target repository lineage.

Branching and committing are internal steps here, not entry points: use this skill when the user wants changes pushed or a PR opened.

Workflow

  1. Resolve target checkout. Same repository → the relevant existing checkout. External contribution → create or reuse the user's fork, and work from a checkout/worktree that belongs to the target repository lineage — never continue from an unrelated checkout. Ambiguous target, fork, or base → stop and report.
  2. Confirm scope. Inspect the actual status and diff; use scripts/publish-preflight.mjs when useful. Stage only task-owned changes. Mixed task/unrelated hunks → stage selectively. If scope cannot be separated reliably, stop before publishing.
  3. Branch. Keep a suitable existing feature branch, or create a task branch from the intended base following the repository's convention.
  4. Commit. Confirmed scope only; concise message derived from the actual diff and task intent. Do not bypass hooks.
  5. Verify. Run only the relevant existing checks for the touched area.
  6. Push. Push to the appropriate tracked or fork remote; never assume origin. No force push unless explicitly requested, with the risk stated. If the user's requested publish scope ends at push, verify the pushed branch, report the result, and stop — do not open a PR.
  7. Open PR, when requested. Check for an existing PR first. Use correct target/base/head and fork semantics. Draft is the default unless the user explicitly wants ready-for-review. Prefer a suitable visible PR-create capability; gh fallback. Body from the actual diff, template, and validation.
  8. Verify published result. Verify the remote branch after push. When a PR was opened or updated, also re-read it and verify target/base/head, changed-file scope, and available checks. If the published state differs from the intended scope, report it — do not declare success.
  9. Report. Branch, commit, PR (when applicable), validation/check state, and any uncertainty.

Read the full file on GitHub · 56 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. 12d ago First seen · 56 lines · 47 tokens per session scan A 9aadb0ed958d

Subscribe to this mod's changes

gh-publish is a skill published in the GitHub repository Starfie1d1272/dsh-github-skills (5 stars, last pushed 24d ago), licensed Apache-2.0. It adds 47 tokens to every session and 627 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

github-publish-changes

Publish intentional local changes by confirming scope, creating a branch when needed, staging selected files, committing, pushing, and creating a Draft Pull Request through the connected GitHub service.

Devin-AXIS/iPolloWork · 41 tokens

dsh-git-commit

A Git commit guide for writing standardised commit messages and performing basic checks before committing code. Git commits are saved checkpoints in a project’s history.

hackerFish/awesome-dsh-skills · 30 tokens

market-pre-push-checks

Use before pushing, merging, or claiming a green tree in dsh-agent-plugins-market, to select the smallest checks that cover the outgoing diff instead of reflexively running the full suite.

Sivan757/dsh-agent-plugins-market · 45 tokens

code-review-zh

A Git-based code review workflow that compares changes from a chosen commit, branch, tag, or merge point. It checks both whether the code follows the repository's written standards and whether it implements the requested specification.

gongyijie85/mattpocock-skills-dsh-zh · 109 tokens

git-workflow

Git workflow patterns including branching strategies, commit conventions, merge vs rebase, conflict resolution, and collaborative development best practices for teams of all sizes. Use when choosing a branching strategy, writing commit conventions, deciding merge versus rebase, or resolving conflicts.

gongyijie85/dsh-ecc · 54 tokens

commit

Use when starting implementation work on a task, or when the user asks you to commit changes to the repository.

zprolab/WhaleKit · 23 tokens