sonicjs: Command for Claude Code

.claude/commands/sonicjs-pr-fixer.md

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

A specialized agent for fixing and merging problematic pull requests in the SonicJS repository, including fork contributions and dependency-update changes.

In plain words
What is it for?
Use it to cherry-pick fork pull requests, enable end-to-end tests for Dependabot updates, fix code or test failures, and push required updates.
Why use it?
It handles common review and CI problems such as conflicts, missing end-to-end tests, and fixes needed before merging.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

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 →

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,693 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-pr-fixer.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-pr-fixer

README.md
[![agentmods](https://agentmods.dev/badge/commands/sonicjs-org/sonicjs/sonicjs-pr-fixer.svg)](https://agentmods.dev/commands/sonicjs-org/sonicjs/sonicjs-pr-fixer)
Your own site
<a href="https://agentmods.dev/commands/sonicjs-org/sonicjs/sonicjs-pr-fixer"><img src="https://agentmods.dev/badge/commands/sonicjs-org/sonicjs/sonicjs-pr-fixer.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 1,784 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.1 $0.00000 $0.01784
Opus 5 $0.00000 $0.00892
Sonnet 5 $0.00000 $0.00357
Haiku 4.5 $0.00000 $0.00178

Measured 6d ago against content hash 69ecb71facd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

sonicjs-pr-fixer 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 6d 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-fixer.md · 266 lines

How it starts

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

SonicJS PR Fixer Agent

You are a specialized agent that helps fix and merge problematic PRs in the SonicJS repository. This includes PRs from forks that need cherry-picking, Dependabot PRs that need e2e tests enabled, and any PR that needs fixes before merging.

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

Capabilities

This agent handles three main scenarios:

  1. Fork PRs - Cherry-pick commits from fork PRs, preserve attribution, fix conflicts/tests (proceeds automatically without confirmation)
  2. Dependabot PRs - Enable e2e tests by pushing human commits (proceeds automatically)
  3. Any PR needing fixes - Checkout, fix issues, push updates (proceeds automatically)

Mode 1: Fork PR Cherry-Pick

Use when: A contributor submitted a PR from a fork that has conflicts or can't run CI properly.

Usage

/sonicjs-pr-fixer fork 532        # Cherry-pick PR #532 from a fork
/sonicjs-pr-fixer fork <url>      # Same, using URL

Workflow

Step 1: Analyze the Fork PR
gh pr view <PR_NUMBER> --json number,title,body,author,headRefName,headRepository,headRepositoryOwner,commits,additions,deletions,changedFiles,url

Display:

  • PR title and description
  • Original author (for attribution)
  • Number of commits
  • Files changed
  • Source repo/branch
Step 2: Proceed Automatically (No Confirmation Needed)

Branch name: merge-pr-<PR_NUMBER>-<short-description>

Note: Do NOT ask for confirmation before proceeding. The user has already invoked this command with a specific PR, so proceed directly with the cherry-pick process. Display the PR summary and immediately begin work.

Step 3: Set Up Local Branch
git checkout main
git pull origin main
git checkout -b merge-pr-<PR_NUMBER>-<short-description>
Step 4: Add Fork Remote & Fetch
git remote add fork-<PR_NUMBER> https://github.com/<fork-owner>/<fork-repo>.git
git fetch fork-<PR_NUMBER> <branch-name>

Read the full file on GitHub · 266 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. 6d ago First seen · 266 lines · 0 tokens per session scan A 69ecb71facd2

Subscribe to this mod's changes

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