sonicjs: Command for Claude Code

.claude/commands/sonicjs-release-announcement.md

sonicjs-release-announcement is a command for Claude Code from SonicJs-Org/sonicjs. It costs 0 tokens per session (2,288 once invoked), scanned A, original, MIT.

A release-announcement agent for SonicJS, a headless content management system built for Cloudflare Workers. It prepares announcements for several communication channels.

In plain words
What is it for?
Use it to draft Discord announcements, a long-form Twitter/X post, and related changelog or homepage updates for a SonicJS release.
Why use it?
It turns release notes into channel-specific messages, reducing the work needed to explain changes consistently to users and developers.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is SonicJs-Org/sonicjs's own configuration. It tells Claude Code how to work on sonicjs 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 sonicjs configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/notify-discord.js "Custom message here".

About the project

SonicJS is a TypeScript-first headless content-management system that exposes content through REST APIs and an administrative interface, running on Cloudflare Workers or other SQLite-compatible environments. It is for developers building applications that manage and publish structured content, with storage through technologies such as D1 and R2. Catalogue add-ons help coding agents create and work with SonicJS projects and content.

SonicJs-Org/sonicjs · 1,697 stars · on GitHub · sonicjs.com

Reuse

Borrowing it

Nothing to install: this file belongs to SonicJs-Org/sonicjs. 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/SonicJs-Org/sonicjs/main/.claude/commands/sonicjs-release-announcement.md
Clone the repo
git clone --depth 1 https://github.com/SonicJs-Org/sonicjs

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 sonicjs-release-announcement

README.md
[![agentmods](https://agentmods.dev/badge/commands/sonicjs-org/sonicjs/sonicjs-release-announcement/github.svg)](https://agentmods.dev/commands/sonicjs-org/sonicjs/sonicjs-release-announcement)
Your own site
<a href="https://agentmods.dev/commands/sonicjs-org/sonicjs/sonicjs-release-announcement"><img src="https://agentmods.dev/badge/commands/sonicjs-org/sonicjs/sonicjs-release-announcement/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 sonicjs-release-announcement

Your own site · 80×15
<a href="https://agentmods.dev/commands/sonicjs-org/sonicjs/sonicjs-release-announcement"><img src="https://agentmods.dev/badge/commands/sonicjs-org/sonicjs/sonicjs-release-announcement.svg" alt="Reviewed on agentmods" width="80" 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 2,288 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.02288
Opus 5 $0.00000 $0.01144
Sonnet 5 $0.00000 $0.00458
Haiku 4.5 $0.00000 $0.00229

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

Security

Grade A, and why

sonicjs-release-announcement 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 9d 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/sonicjs-release-announcement.md · 286 lines

How it starts

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

Release Announcement Agent

You are a specialized agent that creates compelling release announcements for SonicJS across multiple platforms. Your primary responsibilities are:

  1. Generate release content - Create engaging, platform-specific announcement content
  2. Post to Discord - Send rich embeds to the SonicJS Discord community
  3. Post to Twitter/X - Send a single long-form announcement post with appropriate hashtags
  4. Update website - Prepare changelog and home page updates

Background

SonicJS is an open-source headless CMS built for Cloudflare Workers. Key selling points:

  • 6x faster than traditional Node.js/Express
  • Global edge deployment on Cloudflare Workers
  • SQLite/D1 for data storage
  • Open source and developer-friendly
  • Admin UI out of the box

Target audience: JavaScript/TypeScript developers, Cloudflare users, CMS enthusiasts, JAMstack developers.

Content Generation Guidelines

Discord Content

  • Title: Use emoji + version announcement format
  • Description: 1-2 sentences explaining the release significance
  • Highlights: 3-5 bullet points of key changes (extract from release notes)
  • Tone: Friendly, community-focused, technical

Twitter/X Content

  • Single long-form post (X Premium supports up to 25,000 chars)
  • text is the lead hook (catchy, includes version)
  • Hashtags: #SonicJS #CloudflareWorkers #HeadlessCMS #OpenSource
  • thread array (optional) holds additional sections — features, upgrade steps, stars request — and is concatenated into the same post (one section per blank line). It is not posted as a multi-tweet thread.
  • Include a GitHub stars request as the final section

Website Content

  • Home changelog: Brief one-line summary
  • Full changelog: Structured markdown with all changes

Workflow 1: Generate Release Content

When asked to generate release content, follow these steps:

Step 1: Get Release Information

First, read the current version and recent changes:

# Get current version
grep '"version"' packages/core/package.json

# Check for release notes file or recent commits
git log --oneline -10

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

Subscribe to this mod's changes

sonicjs-release-announcement is a command published in the GitHub repository SonicJs-Org/sonicjs (1,697 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,288 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.