publish-essay

publish-essay is a command for Claude Code from eddiebelaval/squire. It costs 0 tokens per session (811 once invoked), scanned A, original, MIT.

A command that creates an essay file, commits it to a content repository, pushes it to the main branch, and starts a website deployment. MDX is a document format that can include Markdown and interactive code components.

In plain words
What is it for?
Use it to publish an essay from text or an existing file, set its title and category, choose a URL slug, and return the published page address.
Why use it?
It removes the repeated file, Git, and deployment steps involved in publishing an essay.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/eddiebelaval/Development/id8labs-hub/core/content/essays/.

Good fit Use it to publish an essay from text or an existing file, set its title and category, choose a URL slug, and return the published page address.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/eddiebelaval/squire/publish-essay.svg)](https://agentmods.dev/commands/eddiebelaval/squire/publish-essay)
Your own site
<a href="https://agentmods.dev/commands/eddiebelaval/squire/publish-essay"><img src="https://agentmods.dev/badge/commands/eddiebelaval/squire/publish-essay.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 811 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.00000 $0.00811
Opus 5 $0.00000 $0.00405
Sonnet 5 $0.00000 $0.00162
Haiku 4.5 $0.00000 $0.00081

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

Security

Grade A, and why

publish-essay 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.

commands/publish-essay.md · 115 lines

How it starts

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

/publish-essay - Publish Essay to id8labs.app

Create MDX file, commit to id8labs-hub repo, and trigger Vercel deploy.

Usage

/publish-essay "<title>" --content <mdx-content>
/publish-essay --from-file <path>  # Publish from existing MDX file
/publish-essay --slug custom-slug  # Override auto-generated slug

Process

  1. Validate Content

    • Ensure frontmatter is complete (title, date, category required)
    • Verify content is in proper MDX format
    • Check that category is one of: essay, research, release
    • Generate slug from title if not provided (kebab-case)
  2. Create MDX File

    • Location: /Users/eddiebelaval/Development/id8labs-hub/core/content/essays/
    • Filename: {slug}.mdx
    • Add/verify all required frontmatter fields
  3. Git Operations

    cd /Users/eddiebelaval/Development/id8labs-hub
    git checkout main
    git pull origin main
    git add core/content/essays/{slug}.mdx
    git commit -m "content: add essay - {title}"
    git push origin main
    
  4. Trigger Deploy

    • Push to main triggers Vercel auto-deploy
    • Monitor deploy status with vercel inspect
    • Wait for production deploy completion
  5. Return Essay URL

    • Format: https://id8labs.app/essays/{slug}
    • Verify URL is accessible (may take 1-2 minutes)

MDX Frontmatter Reference

---
title: "Required - Essay title"
subtitle: "Optional - Supporting tagline"
date: "YYYY-MM-DD"              # Required
author: "Eddie Belaval"          # Optional, defaults to Eddie
category: "essay|research|release"  # Required
tags: ["tag1", "tag2"]           # Optional
featured: true|false             # Optional
heroImage: "/path/to/image.webp" # Optional
---

Content Guidelines

  • Use standard Markdown syntax
  • Code blocks with language identifiers
  • No JSX components (pure Markdown)
  • Images should be in /public/ or external URLs
  • Estimated read time calculated automatically (~200 wpm)

Example

/publish-essay "The 70% Problem" --content "---
title: \"The 70% Problem\"
subtitle: \"Why AI tools get us most of the way, then leave us stranded\"
date: \"2025-12-30\"
author: \"Eddie Belaval\"
category: \"research\"
tags: [\"research\", \"ai\", \"productivity\"]
---

I've been tracking something for the past six months...

[Full essay content]
"

Read the full file on GitHub · 115 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. 4d ago First seen · 115 lines · 0 tokens per session scan A ebb52fef2dbf

Subscribe to this mod's changes

publish-essay is a command published in the GitHub repository eddiebelaval/squire (21 stars, last pushed 23d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 811 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-09-03.