kavo: Command for Claude Code

.claude/commands/publish.md

publish is a command for Claude Code from kavo-labs/kavo. It costs 14 tokens per session (1,606 once invoked), scanned A, original, MIT.

A command for publishing a brand-new scoped npm package for the first time. Scoped packages are npm packages whose names begin with an owner or organization, such as @kavo.

In plain words
What is it for?
Use it to bootstrap an unpublished @kavo package; routine versions are handled through the project's regular release process.
Why use it?
It handles the special first-publish case before automated publishing can be configured for the package.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

This is kavo-labs/kavo's own configuration. It tells Claude Code how to work on kavo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kavo configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kavo-labs/kavo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kavo-labs/kavo/main/.claude/commands/publish.md
Clone the repo
git clone --depth 1 https://github.com/kavo-labs/kavo

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/commands/kavo-labs/kavo/publish/github.svg)](https://agentmods.dev/commands/kavo-labs/kavo/publish)
Your own site
<a href="https://agentmods.dev/commands/kavo-labs/kavo/publish"><img src="https://agentmods.dev/badge/commands/kavo-labs/kavo/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/commands/kavo-labs/kavo/publish"><img src="https://agentmods.dev/badge/commands/kavo-labs/kavo/publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,606 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.00014 $0.01606
Opus 5 $0.00007 $0.00803
Sonnet 5 $0.00003 $0.00321
Haiku 4.5 $0.00001 $0.00161

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

.claude/commands/publish.md · 123 lines

How it starts

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

Context

  • Branch: !git rev-parse --abbrev-ref HEAD
  • Working tree: !git status --short
  • Current lockstep version: !node -p "require('./packages/core/package.json').version"
  • Remote: !git remote -v | head -1 || echo "NO REMOTE"
  • Package dir argument: $ARGUMENTS

When to use this

Only to bootstrap a package that has never been published — npm view <name> returns nothing. It exists because npm's trusted-publisher settings are per-package and configured on npmjs.com, and a package with zero versions has no settings page to configure, so .github/workflows/publish.yml cannot be the thing that first publishes it.

Routine releases are not this command. They are a merged release-please PR: release-please keeps one release PR open on main with the computed lockstep version bump (every package.json) and the generated CHANGELOG.md; merging it creates the vX.Y.Z tag + GitHub Release, and publish.yml runs on release: published. See docs/internals/adr/0041-releases-are-cut-by-release-please.md and the design doc docs/superpowers/specs/2026-08-29-release-please-design.md. Do not bump versions, commit to main, or push a vX.Y.Z tag from this command — that is release-please's job.

Your task

Bootstrap the first published version of the package in $ARGUMENTS.

  1. Preconditions. Refuse and stop unless: the branch is main and up to date with origin/main; the working tree is clean; $ARGUMENTS is one of the directories listed in PACKAGE_DIRS in .github/workflows/publish.yml; and npm view "<name>" for that package reports no versions (if it has any, this command does not apply — the package is already bootstrapped and goes out through release-please like every other). The package's version in its package.json must already equal the current lockstep version — bootstrapping never bumps versions.

Read the full file on GitHub · 123 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. 7d ago First seen · 123 lines · 14 tokens per session scan A cf533a84ce8c

Subscribe to this mod's changes

publish is a command published in the GitHub repository kavo-labs/kavo (14 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 1,606 once invoked, about $0.0001 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-09-02.