hyper-publish

A guided workflow for saving code changes to Git, sending them to a remote repository, and optionally opening a GitHub pull request. It suggests a commit message from the CHANGELOG and file changes, while asking for approval at each important step.

In plain words
What is it for?
Use it after a coding session to review the planned actions, create a commit, push it, and optionally open a pull request with a drafted description. It also supports a dry run.
Why use it?
It removes the need to type and coordinate several Git commands manually, while keeping you in control before files or repository changes are made.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/tjmustard/hypergraph-coding-agent-framework/hyper-publish
Any agent
npx skills add tjmustard/Hypergraph-Coding-Agent-Framework --skill hyper-publish
Clone the repo
git clone --depth 1 https://github.com/tjmustard/Hypergraph-Coding-Agent-Framework

Made for: Claude Code, Codex.

Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,571 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00051 $0.02571
Opus 5 $0.00026 $0.01286
Sonnet 5 $0.00010 $0.00514
Haiku 4.5 $0.00005 $0.00257

Measured 2d ago against content hash 4bb2bc0a3526, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hyper-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 2d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/generate_commit_message.py, scripts/generate_pr_description.py, scripts/setup_permissions.py), 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.

.agents/skills/hyper-publish/SKILL.md · 368 lines

How it starts

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

Hyper-Publish: Commit, Push, and PR Creation

This enhanced skill automates the full git commit → push → (optional) PR creation workflow with human-in-the-loop (HITL) approval at each critical step.

Key improvements over basic git commit && git push:

  • AI-proposes commit message from CHANGELOG [Unreleased] + git diff (no typing required)
  • Timestamps all file mtimes to post-session time
  • Displays transparency gate before any changes
  • HITL approval gates before each file modification and git command
  • Optionally creates a GitHub PR with auto-drafted description
  • No system-level approval prompts for git/gh commands (pre-approved via settings.json)

When to use this skill

  • After a Claude Code session, when you want to commit changes with an AI-suggested message based on your CHANGELOG
  • When you want to commit, push, and optionally create a PR in one unified workflow
  • Whenever you run /hyper-publish [message] or /hyper-publish --dry-run

How to use it

Step 0 — Initialize Permissions (automatic)

Run python .agents/skills/hyper-publish/scripts/setup_permissions.py to patch .claude/settings.json with pre-approved patterns for Bash(git *) and Bash(gh *). This prevents Claude Code from prompting for shell command approval on every invocation.

If settings.json is already configured, this step skips silently.


Step 1 — Parse Arguments

Read the $ARGUMENTS string.

  • If it starts with --dry-run, set DRY_RUN=true and strip --dry-run from the remaining string.
  • If the remaining string starts with --skip-pr, set SKIP_PR=true and strip it.
  • If remaining string is non-empty, use it as COMMIT_MESSAGE (skip Step 3 and proceed to Step 4).
  • If remaining string is empty, proceed to Step 3 (generate message suggestion).

Examples:

  • /hyper-publish → Suggest message, offer PR
  • /hyper-publish "Update README" → Use provided message, offer PR
  • /hyper-publish --dry-run → Dry-run mode, suggest message
  • /hyper-publish --skip-pr "Release v1.0" → Use provided message, skip PR step

Read the full file on GitHub · 368 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. 2d ago First seen · 368 lines · 51 tokens per session scan A 4bb2bc0a3526

Subscribe to this mod's changes

hyper-publish is a skill published in the GitHub repository tjmustard/Hypergraph-Coding-Agent-Framework (2 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 2,571 once invoked, about $0.0003 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.