Actual-sync: Command for Claude Code

.claude/commands/pr-enhance.md

pr-enhance is a command for Claude Code from agigante80/Actual-sync. It costs 0 tokens per session (5,896 once invoked), scanned A, original, MIT.

A guide for preparing pull requests, which are proposed code changes sent for review, in the Actual-sync Node.js project.

In plain words
What is it for?
It helps write or improve pull-request descriptions, check test coverage, and follow this repository's branch, tool, and project conventions.
Why use it?
It helps authors provide the context, documentation, test information, and scope that reviewers need to assess a change efficiently.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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

Reuse

Borrowing it

Nothing to install: this file belongs to agigante80/Actual-sync. 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/agigante80/Actual-sync/main/.claude/commands/pr-enhance.md
Clone the repo
git clone --depth 1 https://github.com/agigante80/Actual-sync

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 pr-enhance

README.md
[![agentmods](https://agentmods.dev/badge/commands/agigante80/actual-sync/pr-enhance.svg)](https://agentmods.dev/commands/agigante80/actual-sync/pr-enhance)
Your own site
<a href="https://agentmods.dev/commands/agigante80/actual-sync/pr-enhance"><img src="https://agentmods.dev/badge/commands/agigante80/actual-sync/pr-enhance.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 5,896 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.05896
Opus 5 $0.00000 $0.02948
Sonnet 5 $0.00000 $0.01179
Haiku 4.5 $0.00000 $0.00590

Measured 2d ago against content hash 6993b67be7b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

pr-enhance scanned grade A with 1 finding 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 2d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(cmd.split(), capture_output=True, text=True)
.claude/commands/pr-enhance.md · 756 lines

How it starts

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

Pull Request Enhancement

You are a PR optimization expert specializing in creating high-quality pull requests that facilitate efficient code reviews. Generate comprehensive PR descriptions, automate review processes, and ensure PRs follow best practices for clarity, size, and reviewability — tailored to the Actual-sync repository.

Context

The user needs to create or improve pull requests with detailed descriptions, proper documentation, test coverage analysis, and review facilitation. Focus on making PRs that are easy to review, well-documented, and include all necessary context.

Repository Context (Actual-sync)

Ground every recommendation in this repo's real setup:

  • Host: GitHub — the gh CLI works here. Repo slug: agigante80/Actual-sync.
  • Stack: a single plain Node.js service (Express, better-sqlite3, @actual-app/api). No TypeScript, no bundler, no build step, and no linter or type-checker. Do not assume React/Spring/Django/Rails, Prisma, or monorepo packages — none exist.
  • Branch model: development is the active integration branch; main holds production-ready releases. Feature work lands on development, so open PRs against development and diff against it.
    • Never push to main directly. Merging developmentmain happens ONLY when the user explicitly asks ("merge to main").
    • Do not run git push unless the user asked for it in that same message.
  • Releases are automated: every successful CI run on main triggers .github/workflows/auto-release.yml, which tags vX.Y.Z and publishes a Release. A routine patch is just merging developmentmain (the bot patch-bumps). For a minor/major, run npm run version:bump -- minor|major on development first, then merge. A manual bump commit must NOT use the chore(release): bump version prefix (that prefix is the bot's recursion guard) — use chore: bump version to X.
  • Validation the PR can claim (run these; there is no lint/typecheck/build to cite):
    • npm test — full Jest suite (includes the doc↔code drift guards and knip-config guard).
    • npm run test:coverage — Jest coverage; thresholds are 61% branches / 70% functions / 70% lines / 70% statements. Note src/syncService.js and index.js are excluded from coverage collection.
    • npm run dead:check — knip dead-code check (blocking; CI runs it in the lint job).
  • CI workflows live in .github/workflows/ (ci-cd.yml, codeql-analysis.yml, dependency-update.yml, and others).
  • Commit style: Conventional Commits, as in the repo history — e.g. feat(dashboard): ..., chore(deps-dev): ..., fix(sync): .... Reference issues with #NN.

Read the full file on GitHub · 756 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. 2d ago First seen · 756 lines · 0 tokens per session scan A 6993b67be7b2

Subscribe to this mod's changes

pr-enhance is a command published in the GitHub repository agigante80/Actual-sync (12 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,896 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.