publish

publish is a command for Claude Code from reggiechan74/cc-plugins. It costs 10 tokens per session (1,355 once invoked), scanned A, original, MIT.

A command that builds a generated website and publishes it to GitHub Pages, a hosting service connected to GitHub repositories. It can also build the site without publishing it, producing static files that can be uploaded to another web host.

In plain words
What is it for?
Use it to build Vite or Next.js sites, publish them to GitHub Pages, or create the finished HTML, CSS, and JavaScript files for other hosting services.
Why use it?
It removes the need to work out the build output and deployment steps for supported projects. It can also keep future deployments tied to pushes to the repository.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the report-to-web plugin — 2 skills, 2 commands, 1 agent shipped together

Good fit Use it to build Vite or Next.js sites, publish them to GitHub Pages, or create the finished HTML, CSS, and JavaScript files for other hosting services.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/reggiechan74/cc-plugins/publish
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.

Clone the repo
git clone --depth 1 https://github.com/reggiechan74/cc-plugins

Made for: Claude Code.

Or install report-to-web, the plugin that ships this one along with the rest of its 2 skills, 2 commands, 1 agent.

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/reggiechan74/cc-plugins/publish/github.svg)](https://agentmods.dev/commands/reggiechan74/cc-plugins/publish)
Your own site
<a href="https://agentmods.dev/commands/reggiechan74/cc-plugins/publish"><img src="https://agentmods.dev/badge/commands/reggiechan74/cc-plugins/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/reggiechan74/cc-plugins/publish"><img src="https://agentmods.dev/badge/commands/reggiechan74/cc-plugins/publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 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,355 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.00010 $0.01355
Opus 5.5 $0.00004 $0.00542
Sonnet 5.5 $0.00002 $0.00271
Haiku 4.5 $0.00001 $0.00136

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

report-to-web/commands/publish.md · 172 lines

How it starts

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

Publish Site to GitHub Pages

Build a generated report site and publish it to GitHub Pages.

Workflow

Step 1: Locate the Site

If a path was provided in the arguments, use it. Otherwise, ask the user:

  • "What is the path to the generated site directory?"

Verify it's a valid site project by checking for package.json in the directory.

Step 2: Detect Project Type

Read package.json to determine the framework:

  • Vite (has vite in devDependencies): build output goes to dist/
  • Next.js (has next in dependencies): build output goes to out/ (requires output: "export" in next.config.ts)

Step 3: Ask Publish Method

Use AskUserQuestion to ask:

"How do you want to publish?" with options:

  1. GitHub Pages (Recommended) — Create a GitHub repo, push the code, and enable GitHub Pages with automatic deployments. Every future git push will redeploy.
  2. Build only — Just run the build. You'll get a folder (dist/ or out/) with static HTML/CSS/JS files you can upload anywhere (Netlify, Vercel, any web host).

Step 4: Build the Site

Run the build:

cd <site-directory>
npm install   # only if node_modules/ doesn't exist
npm run build

Verify the build succeeds and the output directory (dist/ or out/) exists.

If the build fails, diagnose and fix the error, then retry.

Step 5a: GitHub Pages Publish

If the user chose GitHub Pages:

  1. Ask for repo name — Use AskUserQuestion: "What should the GitHub repository be called?" with options:

    • The site directory name (e.g., ontario-tax-valuation-site)
    • Custom name
  2. Set base path — The site will be hosted at https://<username>.github.io/<repo-name>/, so asset paths need the repo name as a prefix:

    • Vite sites: Update base in vite.config.js to '/<repo-name>/'
    • Next.js sites: Add basePath: '/<repo-name>' in next.config.ts (or next.config.mjs)

    After updating the config, rebuild so the output reflects the new base path.

Read the full file on GitHub · 172 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. 5d ago First seen · 172 lines · 10 tokens per session scan A 77039393fb51

Subscribe to this mod's changes

publish is a command published in the GitHub repository reggiechan74/cc-plugins (7 stars, last pushed 6d ago), licensed MIT. It adds 10 tokens to every session and 1,355 once invoked, about $0.0000 per session on Opus 5.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-11-01.

Related

publish compared with commands from other repositories

publish next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
publishreggiechan74/cc-pluginsCommand76d agoMITA10Claude Code
frankx-ai-deployfrankxai/agentic-creator-osCommand12yesterdayApache-2.0A14Claude Code
spec-releaseHabib0x0/spec-driven-pluginCommand105d agoMITA13Claude Code
yecl-deploymentyecllsl/trae-agent-skillsCommand22d agoMITA0Claude Code
shipEmbassy-of-the-Free-Mind/sourcelibrary-v2Command25todayAGPL-3.0A0Claude Code
pushdatabayt/hogwartsCommand183d agononeA13Claude Code
legion:ship9thLevelSoftware/legionCommand821mo agononeA20Claude Code