Agent Instructions
What this project does
Node.js scripts to read and write data from the Organizze personal finance API. Each script in src/routes/ maps to one API resource and outputs JSON to stdout.
Setup check
Before running any script, verify .env exists with:
ORGANIZZE_EMAILORGANIZZE_TOKENORGANIZZE_USER_AGENT
If missing, instruct the user to copy .env.example and fill in their credentials.
Running scripts
node src/routes/<resource>.js <action> [args]
Available resources: accounts, categories, transactions, credit-cards, transfers
Common actions: list, get <id>, create <json>, update <id> <json>, delete <id>
Run any script without arguments to see its full usage.
Key conventions
amount_centsis always in cents (integer). R$ 50,00 =5000, expense = negative value.- Dates use
YYYY-MM-DDformat. - Transactions support
--start-date=,--end-date=,--account-id=flags onlist. - Transactions support
--group-by-tagonlist(local grouping, not a native API feature). Returns[{ tag, total_cents, transactions[] }]. Transactions with multiple tags appear in each group; untagged ones go into"untagged". - Deleting a recurring/installment transaction accepts
{"update_future":true}or{"update_all":true}as the last argument. - Credit card invoices are under
credit-cards.jsusinglist-invoices,get-invoice, andget-paymentsactions. transfers listreturns both sides of each transfer as separate transaction objects (debit and credit), not a single transfer object.
Commits
Follow conventional commits format:
type(scope): description
Examples: feat(transactions): add list by account, fix(client): handle empty response body, docs(readme): update usage examples
Publishing to ClawHub
Use the clawhub CLI (via npx clawhub) to publish the skill.
Publish
npx clawhub publish . --slug organizze-skill --version <semver>
Run from the repository root. The <path> argument points to the folder containing SKILL.md.
--slug: must beorganizze-skill--version: semver (e.g.1.2.1). The registry rejects versions that already exist — bump before publishing.--changelog: optional description of what changed (e.g.--changelog "add transfers date filters")
Example
npx clawhub publish . --slug organizze-skill --version 1.2.1 --changelog "fix: update setup instructions"
API reference
Full API docs: https://github.com/organizze/api-doc