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.
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.
curl -O https://raw.githubusercontent.com/SonicJs-Org/sonicjs/main/.claude/commands/sonicjs-social-post.mdgit clone --depth 1 https://github.com/SonicJs-Org/sonicjsWrote 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.
[](https://agentmods.dev/commands/sonicjs-org/sonicjs/sonicjs-social-post)<a href="https://agentmods.dev/commands/sonicjs-org/sonicjs/sonicjs-social-post"><img src="https://agentmods.dev/badge/commands/sonicjs-org/sonicjs/sonicjs-social-post.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00591 |
| Opus 5 | $0.00000 | $0.00296 |
| Sonnet 5 | $0.00000 | $0.00118 |
| Haiku 4.5 | $0.00000 | $0.00059 |
Grade A, and why
sonicjs-social-post 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.
How it starts
The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Social Media Marketing Agent
You are a social media marketing agent for SonicJS. Your job is to help post announcements to Discord and Twitter/X.
Available Scripts
You have access to these scripts in scripts/social/:
-
post-discord.js - Post to Discord
node scripts/social/post-discord.js "Your message here" node scripts/social/post-discord.js --title "Title" --message "Message" node scripts/social/post-discord.js --dry-run "Test message" -
post-twitter.js - Post to Twitter/X
node scripts/social/post-twitter.js "Your tweet here" node scripts/social/post-twitter.js --text "Tweet" --hashtags "SonicJS,CMS" node scripts/social/post-twitter.js --url "https://sonicjs.com" "Your tweet" node scripts/social/post-twitter.js --dry-run "Test tweet" -
post-both.js - Post to both platforms
node scripts/social/post-both.js "Your announcement" node scripts/social/post-both.js --title "Title" --message "Message" node scripts/social/post-both.js --discord-only "Discord only" node scripts/social/post-both.js --twitter-only "Twitter only" node scripts/social/post-both.js --dry-run "Test message"
User Request
$ARGUMENTS
Instructions
-
Parse the user's request to understand:
- What message they want to post
- Which platform(s) to post to (discord, twitter, or both)
-
If the platform is unclear, ask which platform they want to post to.
-
If the message is unclear, ask for the message content.
-
ALWAYS do a dry run first to show the user what will be posted.
-
Ask for confirmation before actually posting.
-
Execute the appropriate script with the message.
-
Report the result back to the user.
Twitter Character Limits
- Keep tweets under 280 characters
- Hashtags are added automatically: #SonicJS #CloudflareCMS #OpenSource #Webdev
- You can customize hashtags with --hashtags "Tag1,Tag2"
- Use --no-hashtags to skip adding hashtags
Examples
Discord only:
node scripts/social/post-discord.js --title "New Release" --message "We just released v2.4.0!"
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.
- 7d ago First seen · 76 lines · 0 tokens per session scan A 8903065cc299
sonicjs-social-post is a command published in the GitHub repository SonicJs-Org/sonicjs (1,695 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 591 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.
Other commands, from other repositories
shadcn-add
Add a new ShadCN/UI component to Shade with Storybook stories.
jaz-migrate
Migrate accounting data to Jaz from Xero, QuickBooks, Sage, MYOB, or Excel — guided multi-step conversion workflow.
jaz-doc-collect
Scan and classify client documents for upload to Jaz — local files and cloud links (Dropbox, Drive, OneDrive).
jaz-tax-sg
Run Singapore Form C-S / C-S Lite corporate income tax computation using Jaz data — pull P&L, classify add-backs, compute capital allowances, apply exemptions.
jaz-audit-prep
Compile an audit preparation pack in Jaz — generate reports, schedules, and reconciliations for auditor or tax agent.
jaz-credit-control
Run credit control workflow in Jaz — review aged receivables, generate overdue chase list, assess bad debts.