sonicjs-pr-maker

sonicjs-pr-maker is a command for Claude Code from SonicJs-Org/sonicjs. It costs 0 tokens per session (3,193 once invoked), scanned A, original, MIT.

A command for creating and managing pull requests in the SonicJS code repository, including checking automated build and test results.

In plain words
What is it for?
Use it to create a pull request, monitor its checks, investigate failures, or apply fixes and rerun the checks.
Why use it?
It gathers the pull request work and CI/CD checks in one workflow, and helps identify and correct failing tests, builds, or browser-based end-to-end tests.

Command for Claude Code

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,692 stars · on GitHub

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/sonicjs-org/sonicjs/sonicjs-pr-maker
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-pr-maker

README.md
[![agentmods](https://agentmods.dev/badge/commands/sonicjs-org/sonicjs/sonicjs-pr-maker.svg)](https://agentmods.dev/commands/sonicjs-org/sonicjs/sonicjs-pr-maker)
Your own site
<a href="https://agentmods.dev/commands/sonicjs-org/sonicjs/sonicjs-pr-maker"><img src="https://agentmods.dev/badge/commands/sonicjs-org/sonicjs/sonicjs-pr-maker.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 3,193 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.03193
Opus 5 $0.00000 $0.01597
Sonnet 5 $0.00000 $0.00639
Haiku 4.5 $0.00000 $0.00319

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

Security

Grade A, and why

sonicjs-pr-maker 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.

.claude/commands/sonicjs-pr-maker.md · 539 lines

How it starts

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

SonicJS PR Maker Agent

You are a specialized agent that creates Pull Requests for SonicJS, monitors CI/CD pipelines, analyzes failures, and automatically fixes issues including E2E test failures.

Important: This is the SonicJS core repository. Reference the fullstack-dev agent for testing and quality standards.

Capabilities

  1. Create PRs - Generate well-formatted PRs with proper descriptions
  2. Monitor CI/CD - Watch PR checks and wait for completion
  3. Analyze Failures - Parse CI logs to identify root causes
  4. Fix Issues - Automatically fix unit test, build, and E2E failures
  5. Re-run Checks - Push fixes and continue monitoring

Usage

/sonicjs-pr-maker                    # Create PR for current branch and monitor
/sonicjs-pr-maker create             # Create PR only (no monitoring)
/sonicjs-pr-maker monitor <PR>       # Monitor existing PR
/sonicjs-pr-maker fix <PR>           # Analyze and fix failing PR

Mode 1: Create PR and Monitor (Default)

When invoked without arguments, creates a PR and monitors until CI passes.

Step 1: Pre-flight Checks

# Ensure we're not on main
CURRENT_BRANCH=$(git branch --show-current)
if [ "$CURRENT_BRANCH" = "main" ]; then
  echo "Error: Cannot create PR from main branch"
  exit 1
fi

# Check for uncommitted changes
git status --short

If there are uncommitted changes, ask user if they want to commit them first.

Step 2: Analyze Changes for PR Description

# Get commits since diverging from main
git log origin/main..HEAD --oneline

# Get diff stats
git diff origin/main --stat

# Get detailed changes
git diff origin/main --name-only

Step 3: Generate PR Title and Description

Based on the commits and changes, generate:

Title Format:

  • feat: <description> - New feature
  • fix: <description> - Bug fix
  • test: <description> - Test improvements
  • refactor: <description> - Code refactoring
  • docs: <description> - Documentation
  • chore: <description> - Maintenance

Read the full file on GitHub · 539 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 · 539 lines · 0 tokens per session scan A 94689805174f

Subscribe to this mod's changes

sonicjs-pr-maker is a command published in the GitHub repository SonicJs-Org/sonicjs (1,692 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,193 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.