publish-draft

publish-draft is a command for Claude Code from seite-sh/seite. It costs 0 tokens per session (301 once invoked), scanned A, original, MIT.

A command for publishing an article marked as a draft in a seite static website, where pages are built from files rather than managed by a service such as WordPress.

In plain words
What is it for?
It is for publishing one article from the content directory, checking its title, URL, and word count, and optionally deploying the rebuilt site.
Why use it?
It checks that the file is a real draft, removes its draft status, checks for common AI-generated writing patterns, and verifies that the site still builds before deployment.

Command for Claude Code

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 commands/seite-sh/seite/publish-draft
Clone the repo
git clone --depth 1 https://github.com/seite-sh/seite

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-draft

README.md
[![agentmods](https://agentmods.dev/badge/commands/seite-sh/seite/publish-draft.svg)](https://agentmods.dev/commands/seite-sh/seite/publish-draft)
Your own site
<a href="https://agentmods.dev/commands/seite-sh/seite/publish-draft"><img src="https://agentmods.dev/badge/commands/seite-sh/seite/publish-draft.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 301 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.00000 $0.00301
Opus 5 $0.00000 $0.00151
Sonnet 5 $0.00000 $0.00060
Haiku 4.5 $0.00000 $0.00030

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

Security

Grade A, and why

publish-draft 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 4d 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.

seite-sh/.claude/commands/publish-draft.md · 26 lines

What it actually says

Publish Draft — seite Edition

Publish a draft article from content/ by removing the draft: true flag, building the site, and optionally deploying.

Usage

/publish-draft <file-path>

Example: /publish-draft content/posts/2026-03-12-rust-error-handling.md

Workflow

  1. Read the specified file and verify it exists and has draft: true in frontmatter
  2. Run the content scrubber — check for AI watermarks and telltale patterns (same as SEOMachine's /scrub). Fix any issues found
  3. Remove draft: true from the YAML frontmatter (or set it to draft: false)
  4. Run seite build to verify the site builds successfully with the new content
  5. Report the result — show the article title, URL it will be published at, and word count
  6. Ask if user wants to deploy — if yes, run seite deploy

Important

  • Do NOT use WordPress or any external CMS — this is a seite static site
  • The article stays in its current location in content/ — seite serves it from there
  • After publishing, the article will appear at its URL (e.g., /posts/rust-error-handling)
  • Run seite serve if the user wants to preview before deploying
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. 4d ago First seen · 26 lines · 0 tokens per session scan A dde718945f08

Subscribe to this mod's changes

publish-draft is a command published in the GitHub repository seite-sh/seite (20 stars, last pushed 19d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 301 tokens. 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.