publish

publish is a skill for Claude Code from davila7/claude-with-skills. It costs 38 tokens per session (479 once invoked), scanned A, original, MIT.

A release helper that pushes the current Git branch and tags to the shared repository, then creates a GitHub release from the newest tag and its change log.

In plain words
What is it for?
Use it after creating a version tag to publish the branch, tags, and release notes on GitHub.
Why use it?
It gathers the required release information and stops early when a tag or push is missing.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it after creating a version tag to publish the branch, tags, and release notes on GitHub.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davila7/claude-with-skills/publish
About the project

Claude With Skills is a progressive course that teaches developers to create reusable, portable Agent Skills for Claude Code, from basic SKILL.md files to advanced automation and plugin packaging. It is intended for developers who want repeatable instructions and workflows instead of repeatedly pasting the same guidance. The catalogue contains the course's skills, agents, and instruction.

davila7/claude-with-skills · 12 stars · on GitHub · claude-with-skills.vercel.app

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 davila7/claude-with-skills --skill publish
Clone the repo
git clone --depth 1 https://github.com/davila7/claude-with-skills

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 publish

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/davila7/claude-with-skills/publish"><img src="https://agentmods.dev/badge/skills/davila7/claude-with-skills/publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 479 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.00038 $0.00479
Opus 5 $0.00019 $0.00239
Sonnet 5 $0.00008 $0.00096
Haiku 4.5 $0.00004 $0.00048

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

Security

Grade A, and why

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 11d 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.

src/content/docs/03-advanced/lesson-05-skills-orchestrating-skills/examples/release-flow/.claude/skills/publish/SKILL.md · 58 lines

What it actually says

Push the current branch and tags to origin, then create the GitHub release.

Pre-flight

Check that a tag exists to publish: !git describe --tags --abbrev=0 2>/dev/null || echo "no tags found"

If "no tags found" is shown above, stop and tell the user: "No tags found. Run /tag-version first to create a tag before publishing."

Step 1: Push the current branch

git push origin HEAD

If this fails, report the error. Common causes: no remote configured, no upstream branch set. Do not continue if push fails.

Step 2: Push all tags

git push origin --tags

Step 3: Get the latest tag

git describe --tags --abbrev=0

Store this value as $TAG for the next steps.

Step 4: Extract the changelog entry

Read CHANGELOG.md if it exists. Find the section for $TAG — look for a heading matching ## [$TAG] or ## [v$TAG] (versions may or may not include the v prefix in the changelog). Extract the text between that heading and the next ## [ heading. This is the release notes body.

If CHANGELOG.md does not exist or the version section is not found, use the git log since the previous tag as release notes:

git log $(git describe --tags --abbrev=0 $TAG^)..HEAD --oneline --no-merges

Step 5: Create the GitHub release

gh release create "$TAG" --title "Release $TAG" --notes "$CHANGELOG_CONTENT"

Step 6: Report the result

Print the release URL returned by gh release create. Tell the user: "Release $TAG is live at [URL]."

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. 11d ago First seen · 58 lines · 38 tokens per session scan A 435b024cb282

Subscribe to this mod's changes

publish is a skill published in the GitHub repository davila7/claude-with-skills (12 stars, last pushed 3mo ago), licensed MIT. It adds 38 tokens to every session and 479 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-30.