balaka: Instructions file for Claude Code

CLAUDE.md

balaka CLAUDE.md is an instructions file for Claude Code from artivisi/balaka. It costs 3,438 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Balaka, an Indonesian accounting application for small businesses. They describe the application’s technology, completed development phases, important files, and coding guidelines.

In plain words
What is it for?
For developing features in Balaka, including accounting, tax, payroll, inventory, production, banking, analytics, security, and APIs.
Why use it?
They give an agent the project’s current status and working rules, helping it make changes that fit the existing accounting system.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to artivisi/balaka. 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/artivisi/balaka/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/artivisi/balaka

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 balaka CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/artivisi/balaka/claude-md.svg)](https://agentmods.dev/instructions/artivisi/balaka/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/artivisi/balaka/claude-md"><img src="https://agentmods.dev/badge/instructions/artivisi/balaka/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,438 This file is loaded in full into every session.
When invoked 3,438 The same file — it is already loaded in full.
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.03438 $0.03438
Opus 5 $0.01719 $0.01719
Sonnet 5 $0.00688 $0.00688
Haiku 4.5 $0.00344 $0.00344

Measured 8d ago against content hash 90effe2863f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

balaka CLAUDE.md 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 8d 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.md · 211 lines

How it starts

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

Claude Instructions

Project Overview

Indonesian accounting application for small businesses. Spring Boot 4.0 + Thymeleaf + PostgreSQL. Licensed under Apache License 2.0.

Current Status

  • Phase 0: ✅ Complete (project setup, auth, CI/CD)
  • Phase 1: ✅ Complete (Core Accounting MVP)
  • Phase 2: ✅ Complete (Tax Compliance + Cash Flow)
  • Phase 3: ✅ Complete (Payroll + RBAC + Employee Self-Service)
  • Phase 4: ✅ Complete (Fixed Assets)
  • Phase 5: ✅ Complete (Inventory & Production)
    • 5.1 Product Master: ✅ Complete
    • 5.2 Inventory Transactions: ✅ Complete
    • 5.3 Inventory Reports: ✅ Complete
    • 5.4 Simple Production (BOM): ✅ Complete
    • 5.5 Integration with Sales: ✅ Complete
  • Phase 6: ✅ Complete (Security Hardening)
  • Phase 7: ✅ Complete (API Foundation — OAuth 2.0 device auth, 7 API controllers, pagination, device token management UI)
  • Phase 8: ✅ Complete (Bank Reconciliation)
  • Phase 9: ✅ Complete (Analytics & Insights — 9.2 Smart Alerts ✅, 9.3 Transaction Tags ✅)
  • AI Analysis Reports: ✅ Complete (structured report publishing with per-industry KPIs)
  • Phase 10: ✅ Complete (Invoice & Bill Management — invoices, vendor bills, bill API, payment tracking, aging reports, customer/vendor statements)
  • Phase 11: ✅ Complete (Recurring Transactions — templates, scheduling, auto-posting)
  • Phase 12: ✅ Complete (Tax Data Management — 12.1 PPN formula fix, 12.2 tax detail entry UI, 12.3 tax detail & document API, 12.4 auto-populate tax details, 12.5 client management UI, 12.6 fiscal period management, 12.7 tax report enhancements, 12.8 tax deadline updates, 12.9 retrofit 2025 data, 12.10 tax export API, 12.11 PPN docs update)
  • Phase 13: ✅ Complete (OpenAPI Migration — springdoc-openapi 3.0.1, 11 @Tag controllers, x- extensions, Swagger UI)
  • Phase 14: ✅ Complete (Fiscal Adjustments API)
  • Phase 15: ✅ Complete (Payroll API + PPh 21)
  • Bug Fixes: ✅ Complete (BUG-001 PPN rounding, BUG-002 PUT broken DRAFTs, BUG-003 PUT overrides 409, BUG-004 empty journalEntries)
  • Phase 16: ✅ Complete (User Manual Revamp — AI-Operated Lifecycle)
  • Phase 17: ✅ Complete (SPT Tahunan Badan Data Export — L1 rekonsiliasi fiskal, L4 penghasilan final, L9 penyusutan DJP format, transkrip 8A, e-Bupot PPh 21 annual, fiscal loss carryforward, SPT checklist dashboard)
  • Phase 18: ✅ Complete (PPh 21 TER Method — PMK 168/2023, TerCategory enum, monthly TER Jan–Nov, December reconciliation, web calculator)
  • Phase 19: ✅ Complete (Scheduled Payroll — automated monthly payroll run creation, CRUD API, daily scheduler with startup catch-up)
  • Phase 20: ✅ Complete (Free-Form Journal Entry API — POST /api/transactions/journal-entry, arbitrary debit/credit lines, no template required, for closing/adjusting/opening entries)
  • BUG-014: ✅ Complete (Tax export excluded closing journal from P&L via closingEntry boolean)
  • SPT Lampiran Export: ✅ Complete (GET /api/tax-export/spt-tahunan/lampiran?year=, consolidated Coretax-ready data)
  • BUG-016/017/018: ✅ Complete (Transkrip 8A asset mapping, Lampiran I pasal field, accountSlots lineOrder fallback)
  • Period Report: ✅ Complete (/reports/period — fiscal period dropdown, closing-entry-excluded P&L)
  • Sidebar Reorg: ✅ Complete (Master Data separated from Pengaturan)
  • Tax Filing (FR-001–006): ✅ Complete (L1 non-operating expenses fix, L9 depreciation fallback, PKP rounding, excludeClosing API param, financial statements PDF, Coretax SPT export)
  • Service Auth + Retry-Safe Posting (issues #28, #29): ✅ Complete (OAuth2 client_credentials grant — api_clients table, POST /api/oauth/token, Pengaturan → API Klien; Idempotency-Key header on POST /api/transactions with replay semantics)
  • Depreciation Fixes (issues #31, #32): ✅ Complete (schedule-derived periodNumber + uk_asset_period(id_fixed_asset, period_end); scheduler catch-up for late-registered assets; /api/fixed-assets/depreciation endpoints)
  • Fixed Asset API (issue #30): ✅ Complete (/api/fixed-assets CRUD + /categories, scopes assets:read/assets:write, register via funding account → acquisition DRAFT or purchaseTransactionId → link existing posted journal without new draft)
  • Tax Filing Register (issue #35): ✅ Complete (/api/tax-filings CRUD + document attachments, tax_filings/tax_documents tables, scopes tax-filings:read/tax-filings:write, per-masa SPT/BPE/STP/SP2DK records with STP→teguran chains, filing status surfaced on GET /api/analysis/tax-summary)
  • See docs/06-implementation-plan.md for full plan

Read the full file on GitHub · 211 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. 8d ago First seen · 211 lines · 3,438 tokens per session scan A 90effe2863f6

Subscribe to this mod's changes

balaka CLAUDE.md is an instructions file published in the GitHub repository artivisi/balaka (40 stars, last pushed 7d ago), licensed Apache-2.0. It adds 3,438 tokens to every session, about $0.0172 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-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens