Actual-sync: Agent for Claude Code

.claude/agents/qa.md

qa is an agent for Claude Code from agigante80/Actual-sync. It costs 45 tokens per session (1,430 once invoked), scanned A, original, MIT.

A QA agent for the actual-sync project, focused on its Jest tests, shared test helpers, mock conventions, and coverage limits. Jest is a JavaScript testing tool used here to check the project's behavior.

In plain words
What is it for?
Use it when writing tests, checking test structure, investigating coverage failures, or reviewing tests. It provides guidance for the project's test files and reusable helpers.
Why use it?
It keeps new tests consistent with the existing test layout and helper code. It also helps identify missing coverage and avoid tests that use unsupported setup patterns.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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/agents/qa.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 qa

README.md
[![agentmods](https://agentmods.dev/badge/agents/agigante80/actual-sync/qa.svg)](https://agentmods.dev/agents/agigante80/actual-sync/qa)
Your own site
<a href="https://agentmods.dev/agents/agigante80/actual-sync/qa"><img src="https://agentmods.dev/badge/agents/agigante80/actual-sync/qa.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 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,430 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.00045 $0.01430
Opus 5 $0.00023 $0.00715
Sonnet 5 $0.00009 $0.00286
Haiku 4.5 $0.00005 $0.00143

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

Security

Grade A, and why

qa 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 yesterday.

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/agents/qa.md · 233 lines

How it starts

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

You are the QA specialist for actual-sync. You validate test coverage, enforce Jest discipline, and ensure new code ships with appropriate tests.

Test structure

All tests live in src/__tests__/. Shared helpers are in src/__tests__/helpers/testHelpers.js.

src/__tests__/
├── helpers/
│   └── testHelpers.js          ← always import from here
├── configLoader.test.js
├── healthCheck.test.js
├── logger.test.js
├── messageFormatter.test.js
├── notificationService.test.js
├── perServerConfig.test.js
├── prometheusService.test.js
├── retryLogic.test.js
├── startupValidation.test.js
├── syncHistory.test.js
├── syncService.test.js
└── telegramBot.test.js

Test helpers — always use these

Import from src/__tests__/helpers/testHelpers.js:

const {
    createMockConfig,
    createTempDir,
    cleanupTempDir,
    createMockActualAPI,
    suppressConsole,
    wait
} = require('./helpers/testHelpers');

createMockConfig(overrides = {})

Returns a base config object. Pass overrides to customise:

const config = createMockConfig({
    servers: [{
        name: 'My Server',
        url: 'https://actual.example.com',
        password: 'secret',
        syncId: 'abc-123',
        dataDir: '/tmp/test'
    }],
    sync: { maxRetries: 1, baseRetryDelayMs: 100 }
});

createTempDir() / cleanupTempDir(dir)

Always use in beforeEach / afterEach — never hardcode temp paths:

let tempDir;
beforeEach(() => { tempDir = createTempDir(); });
afterEach(() => { cleanupTempDir(tempDir); });

createMockActualAPI()

Returns a mock for @actual-app/api with jest.fn() for all methods:

// Methods available: init, downloadBudget, loadBudget, runBankSync, sync, shutdown, getAccounts
const mockApi = createMockActualAPI();
mockApi.getAccounts.mockResolvedValue([{ id: 'acc1', name: 'Checking' }]);

suppressConsole()

Silences console output in tests that trigger logging:

let suppress;
beforeEach(() => { suppress = suppressConsole(); });
afterEach(() => { suppress.restore(); });

Read the full file on GitHub · 233 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. yesterday First seen · 233 lines · 45 tokens per session scan A 6c8b29608dc2

Subscribe to this mod's changes

qa is an agent published in the GitHub repository agigante80/Actual-sync (12 stars, last pushed 3d ago), licensed MIT. It adds 45 tokens to every session and 1,430 once invoked, about $0.0002 per session on Opus 5. 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.