publish

A release workflow for merging development changes into the main branch, creating a versioned release, and deploying it to production. It supports planned releases and smaller ongoing deployments using semantic version numbers.

In plain words
What is it for?
Use it to publish the main repository or a named submodule. It creates planned major or minor releases and incremental patch releases according to the project's release process.
Why use it?
It organizes the steps needed to turn completed development work into a production release. It also keeps planned milestone releases separate from automatic patch updates.

Skill for Claude CodeCodexCursor

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/markmhendrickson/foundation/publish
Any agent
npx skills add markmhendrickson/foundation --skill publish
Clone the repo
git clone --depth 1 https://github.com/markmhendrickson/foundation

Made for: Claude Code, Codex, Cursor.

Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,295 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00009 $0.04295
Opus 5 $0.00005 $0.02148
Sonnet 5 $0.00002 $0.00859
Haiku 4.5 $0.00001 $0.00430

Measured 2d ago against content hash 929a6a8d8dd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

Origin

This is a copy

100% identical to publish — 7 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/skills/publish/SKILL.md · 555 lines

How it starts

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

publish

Merge dev commits into main, create a release (planned or incremental), and deploy to production.

PARAMETER MODES:

  1. No parameter (default): Publish main repository
  2. Submodule name parameter (e.g., /publish foundation): Publish that specific submodule only

Release Numbering Strategy

Planned Releases (Milestones):

  • Use semantic versioning: vX.Y.0 (major.minor.0)
  • Examples: v1.0.0, v1.1.0, v2.0.0
  • Created via /create_release command with full workflow
  • Control major and minor version numbers

Incremental Releases (Continuous Deployments):

  • Use semantic versioning as patches: vX.Y.Z where Z increments
  • Examples: If last planned release is v1.1.0, incremental releases are v1.1.1, v1.1.2
  • Auto-generated via /publish command
  • Only patch version increments (never major or minor)

Relationship:

  • Independent purposes: Planned releases are milestones, incremental releases are continuous deployments
  • Example sequence: v1.0.0 (planned) → v1.0.1, v1.0.2 (incremental) → v1.1.0 (planned) → v1.1.1 (incremental)

Parameter Detection and Routing

STEP 1: Detect parameter and route to appropriate workflow:

# Check if parameter provided
if [ -n "$1" ]; then
  PARAM="$1"
  
  # Submodule mode: publish that submodule only
  echo "📦 SUBMODULE MODE: Publishing submodule '$PARAM'"
  # Verify submodule exists
  if ! git submodule status "$PARAM" >/dev/null 2>&1; then
    echo "❌ Submodule not found: $PARAM"
    exit 1
  fi
  # Proceed to submodule publish workflow
else
  # Main repo mode: publish main repository
  echo "📦 MAIN REPO MODE: Publishing main repository"
  # Proceed to main repository publish workflow
fi

Submodule Publish Workflow

When a specific submodule name is provided (e.g., /publish foundation):

  1. Change to submodule directory:
    cd "$PARAM" || {
      echo "❌ Failed to change to submodule directory: $PARAM"
      exit 1
    }
    

Read the full file on GitHub · 555 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 · 555 lines · 9 tokens per session scan A 929a6a8d8dd8

Subscribe to this mod's changes

publish is a skill published in the GitHub repository markmhendrickson/foundation (2 stars, last pushed 1mo ago), licensed MIT. It adds 9 tokens to every session and 4,295 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to publish, differing in 7 lines, and is treated as a copy.

Related

Other skills, from other repositories