/garage:fintech-ledgerfrom garage
Guides double-entry ledger operations for fintech systems: post, hold, capture, refund, reconcile. Supports Blnk, pgledger, and custom PostgreSQL ledgers with invariant enforcement.
Ships in garage. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Builds or changes ledger operations (post, hold, capture, void, reverse, reconcile) on Blnk, upstream pgledger, or a service-owned PostgreSQL ledger. Ledger bugs do not self-correct: they compound into balance mismatches that need a manual audit, so the gates below are not optional.
Detect from dependencies, config, and migrations, then read the matching reference before writing code. Ask when the signals conflict or are absent.
references/blnk-api-contract.md.pgledger_* functions and views from pgr0ss/pgledger): read
references/pgledger-invariants.md. Use its functions; never patch its tables with house migrations.ledger_accounts / ledger_postings style tables, sometimes
also called pgledger locally): read references/pgledger-invariants.md, and read
references/service-ledger-scaffold.md when creating the schema or the posting service.Keep local wrapper tables (operation records, idempotency, outbox) separate from upstream pgledger or provider objects, and verify names against the installed revision, not this skill.
<domain>:<operation>:<business-id>),
reused on every retry. A duplicate key is success only after the original operation is fetched and
its accounts, amount, currency, and operation type match; any difference is an idempotency
conflict that fails closed and alerts.PENDING_RECONCILIATION.
Reconcile by reference before retrying, compensating, or telling the caller it failed. Never retry
with a new key.ORDER BY id FOR UPDATE before reading balances. Provider-backed ledgers use the provider's
concurrency contract.BigDecimal in Java with scale from the currency or asset contract, NUMERIC in
SQL, integer minor units only where the provider's API requires them. Never double or float.Never hold a database transaction open across a provider HTTP call: persist the operation record, commit, dispatch, then record the outcome.
PENDING_RECONCILIATION.Schema changes to ledger tables also follow db-migration (append-only trigger stays, no
destructive operations without confirmation and a restore story).
produces:
- type: "code"
format: "java"
paths:
- "src/main/java/.../ledger/{Service}.java"
- "src/main/java/.../ledger/{Repository}.java"
- "src/main/java/.../ledger/events/*.java" # domain events
- "src/main/java/.../ledger/dto/*.java" # commands + DTOs
- type: "migration"
format: "sql"
paths:
- "src/main/resources/db/changelog/changes/sql/ledger-NNN-description.sql" # service-owned schema only
- type: "test"
format: "java"
paths:
- "src/test-integration/java/.../ledger/{Service}IntegrationTest.java" # Testcontainers
- type: "doc"
format: "markdown"
path: "docs/ledger/{operation}.md"
handoff: "Write claudedocs/handoff-fintech-ledger-<timestamp>.yaml - suggest: temporal-workflow (if compensation needed), verify-impl, monitoring-plan"
db-migration writes the ledger changeset; temporal-workflow owns multi-step orchestration and
compensation around ledger calls; this skill owns posting semantics and reconciliation.WHERE id = ANY(...) FOR UPDATE without ORDER BY).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub omexit/claude-skills-pack --plugin garage48 skills in this plugin
/adrUse when the user wants to record an architecture decision, write an ADR or decision record, or explain why a technology, data model, boundary, or pattern was chosen over alternatives./api-designUse when the user is designing, reviewing, or changing an API contract (REST, GraphQL, or RPC): endpoint shape, naming, errors, versioning, pagination, or developer experience, before or apart from implementing it./api-firstUse when the user wants to scaffold or implement a REST endpoint or resource in a Spring Boot project, especially from an OpenAPI snippet or spec: create endpoint, add API, add CRUD, generate controller, or implement POST/GET/PUT/PATCH/DELETE on a resource./arch-reviewUse when the user asks for an architecture review of existing Java or Spring Boot code: clean or hexagonal architecture boundaries, module boundaries, dependency direction, domain leakage, transaction boundaries, or business logic in controllers./code-auditUse when existing implementation code needs a rigorous review: code audit, code review, code quality, code smells, SOLID or duplication concerns, security or performance of a module, production readiness, or a second opinion on code that already exists./competitive-analysisUse when the user asks for a competitive analysis, competitor review, market landscape, feature comparison against rivals, or who else solves this problem.Other plugins' skills for the same job