Actual-sync: Command for Claude Code

.claude/commands/gate-ticket.md

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

A command that checks whether a GitHub issue is ready to be implemented. It has specialist checks for the API, testing, and release requirements, and reports whether the issue passes.

In plain words
What is it for?
It helps review issue acceptance criteria, test coverage and error cases, API correctness, pull-request scope, commit conventions, and versioning.
Why use it?
It finds missing details in a ticket before development starts, reducing unclear requirements and rework.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions subagents.

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/gate-ticket.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 gate-ticket

README.md
[![agentmods](https://agentmods.dev/badge/commands/agigante80/actual-sync/gate-ticket.svg)](https://agentmods.dev/commands/agigante80/actual-sync/gate-ticket)
Your own site
<a href="https://agentmods.dev/commands/agigante80/actual-sync/gate-ticket"><img src="https://agentmods.dev/badge/commands/agigante80/actual-sync/gate-ticket.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 646 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.00646
Opus 5 $0.00000 $0.00323
Sonnet 5 $0.00000 $0.00129
Haiku 4.5 $0.00000 $0.00065

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

Security

Grade A, and why

gate-ticket 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 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.

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/gate-ticket.md · 62 lines

How it starts

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

Gate a GitHub ticket for readiness

Run the ticket readiness gate on a GitHub issue before implementation begins.

Formerly /review-ticket — renamed to /gate-ticket to match the forge-kit convention used across the other projects. Update any muscle memory; the old name no longer resolves.

Usage

/gate-ticket <issue-number>

Argument: GitHub issue number (required). Example: /gate-ticket 44

What this does

Invokes the ticket-gate agent, which validates the issue through 3 sequential domain specialist agents. (This project runs a deliberately lean 3-agent panel rather than forge-kit's 5 core agents — see the agent file's "Scope" section for why, and for what manual review to add when a ticket touches security/privacy.)

  1. actual-api — verifies correct @actual-app/api lifecycle, method names, field names, and known quirks
  2. qa — verifies test cases are specific and cover error paths, shutdown assertions, and coverage thresholds
  3. release-manager — verifies PR scope, commit convention, version bump, and measurable acceptance criteria

Each agent scores the issue 1–10. All three must score 10/10 for the issue to PASS.

Output

The gate posts a scorecard as a GitHub comment on the issue and reports:

  • PASS — implementation may begin
  • BLOCKED — exact list of required changes; re-run after addressing them

Steps

Use the Agent tool with subagent_type: ticket-gate, passing the following prompt:

Run the ticket readiness gate on GitHub issue #<issue-number> in agigante80/Actual-sync.

Follow all steps in the ticket-gate agent instructions:
1. Fetch the issue with gh issue view
2. Load CLAUDE.md, src/syncService.js (API call sequence), and src/__tests__/helpers/testHelpers.js
3. Thin-ticket pre-check (with CLAUDE.md context loaded — conventions the docs answer are
   not gaps); if 3+ material unanswered questions remain, post them as a comment and halt
   BLOCKED without scoring
4. Run complexity research (if triggered) and the codebase-exploration sub-agent (only when
   2+ complexity signals fire or the area is unfamiliar; skip for simple tickets)
5. Run actual-api agent — wait for result — then qa agent — wait for result — then release-manager agent.
   IMPORTANT: one agent per message, strictly sequential, never in parallel.
6. Compile the scorecard (include Research performed / Codebase context sections)
7. Post it as a GitHub comment
8. Report PASS, or on any score < 10 auto-remediate: write the updated body to a file and
   apply it with `gh issue edit --body-file` (never `--body "..."`), replacing rather than
   duplicating any prior "Required additions" section per agent; report BLOCKED

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

Subscribe to this mod's changes

gate-ticket is a command published in the GitHub repository agigante80/Actual-sync (12 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 646 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-09-04.