Borrowing it
Nothing to install: this file belongs to markmhendrickson/foundation. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/markmhendrickson/foundation/main/.cursor/skills/publish/SKILL.mdgit clone --depth 1 https://github.com/markmhendrickson/foundationWrote 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.
[](https://agentmods.dev/skills/markmhendrickson/foundation/publish)<a href="https://agentmods.dev/skills/markmhendrickson/foundation/publish"><img src="https://agentmods.dev/badge/skills/markmhendrickson/foundation/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.
<a href="https://agentmods.dev/skills/markmhendrickson/foundation/publish"><img src="https://agentmods.dev/badge/skills/markmhendrickson/foundation/publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00009 | $0.04295 |
| Opus 5.5 | $0.00004 | $0.01718 |
| Sonnet 5.5 | $0.00002 | $0.00859 |
| Haiku 4.5 | $0.00001 | $0.00430 |
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 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.
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.
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:
- No parameter (default): Publish main repository
- 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_releasecommand with full workflow - Control major and minor version numbers
Incremental Releases (Continuous Deployments):
- Use semantic versioning as patches:
vX.Y.Zwhere Z increments - Examples: If last planned release is
v1.1.0, incremental releases arev1.1.1,v1.1.2 - Auto-generated via
/publishcommand - 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):
- Change to submodule directory:
cd "$PARAM" || { echo "❌ Failed to change to submodule directory: $PARAM" exit 1 }
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.
- 1mo ago First seen · 555 lines · 9 tokens per session scan A 929a6a8d8dd8
publish is a skill published in the GitHub repository markmhendrickson/foundation (2 stars, last pushed 2mo ago), licensed MIT. It adds 9 tokens to every session and 4,295 once invoked, about $0.0000 per session on Opus 5.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.
Other skills, from other repositories
factory-ship
Experimental workflow for publishing and completing configured software delivery work. Use when the user or an enabled factory policy asks to ship.
gitlab-devops
GitLab DevOps operations — issues, merge requests, CI/CD pipelines, repository browsing, labels, milestones, releases, and wiki management. Use when querying GitLab project status, monitoring pipeline executions, browsing repository files, creating issues for network findings, opening merge requests for config…
seed-snapshot-release
An automated workflow for creating and tracking a snapshot release of the pull request on the current branch. A snapshot release is a temporary package build used for testing a branch before a normal release.
release-engineering
Plan and verify software releases with versioning, changelogs, release branches, feature flags, canaries, migration gates, rollback, deployment checks, and release readiness. Use when preparing a release, shipping a risky PR, coordinating app/backend/database rollout, recovering from a bad deploy, or defining release…
cmux-release
Prefer the /release command. It determines the new version (minor by default), gathers the Changelog line from each PR merged since the last stable tag, updates CHANGELOG.md, runs ./scripts/bump-version.sh, commits, runs ./scripts/release-pretag-guard.sh, then tags and pushes.
ct-release-orchestrator
Orchestrates the canonical 4-verb release pipeline introduced by SPEC-T9345: cleo release plan, then cleo release open, then PR + GHA tag workflow, then cleo release reconcile. The deprecated cleo release ship monolith was deleted in T10103 — do not invoke it. Use ship-e2e-smoke to validate the full pipeline…