jaz-clio 9.4.6 → 9.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,7 +75,7 @@ Cross-check via `clio calc depreciation --frequency annual --json` per asset; au
75
75
 
76
76
  ## Step 5: Process disposals
77
77
 
78
- For each disposal identified in step 2:
78
+ For each disposal identified in step 2, an asset in the register gets its figures from the register itself: `calculate_fixed_asset_disposal(resourceId, depreciationEndDate)` (`fixed_asset_schedules`) before `mark_fixed_asset_sold` or `discard_fixed_asset`. The calculator below is the cross-check, and the route for an asset that is not in the register:
79
79
 
80
80
  ```
81
81
  calculate(type: 'asset-disposal', cost, salvageValue, usefulLifeYears, acquisitionDate, disposalDate, proceeds, method)
@@ -110,6 +110,8 @@ Cross-check: `generate_trial_balance(endDate: '2025-01-31')`. Sum credit movemen
110
110
 
111
111
  ### Step 7: Prepaid expense recognition (finalize this period's draft journal)
112
112
 
113
+ Items kept in the `deferrals` register post their own recognition entries (check them with `get_deferral_totals`); the capsule route below is for items kept manually.
114
+
113
115
  For each existing `Prepaid Expenses` capsule (via `search_capsules(filter: {status: {eq: 'ACTIVE'}})` (capsule type is not filterable; see `building-blocks.md` § Filter limits)):
114
116
 
115
117
  1. **STOP: do not select these with a filter.** Journals cannot be narrowed to one capsule by a filter: `JournalFilter` declares no `capsuleResourceId`, and `GET /capsules/{id}` returns only `totalTransactions`, a count (measured 2026-09-07). A date+status search returns EVERY matching DRAFT in the org, including drafts a practitioner deliberately parked, so passing it to `bulk_update_journals(items: [{resourceId, saveAsDraft: false}])` finalizes unrelated work. `get_journal` (`GET /journals/{id}`) does return the link as `capsule: {resourceId, type, title}` (measured 2026-09-23), so check each candidate journal's `capsule.resourceId` against this capsule, keep only the matches, and confirm the count with the practitioner before finalizing.
@@ -119,7 +121,7 @@ For each existing `Prepaid Expenses` capsule (via `search_capsules(filter: {stat
119
121
 
120
122
  ### Step 8: Deferred revenue recognition
121
123
 
122
- Mirror of step 7. Existing `Deferred Revenue` capsules: find this period's DRAFT journal in each, then `bulk_update_journals(items: [{resourceId, saveAsDraft: false}])`. New deferred setups: `calculate(type: 'deferred-revenue', amount, periods, startDate)`, `create_capsule` (type `Deferred Revenue`), post the invoice (`create_invoice`) and the recognition journals (`create_journal`) with `capsuleResourceId`, then finalize the current period's journal in the same `bulk_update_journals` call.
124
+ Items kept in the `deferrals` register post their own recognition entries (check them with `get_deferral_totals`); the capsule route below is for items kept manually. Mirror of step 7. Existing `Deferred Revenue` capsules: find this period's DRAFT journal in each, then `bulk_update_journals(items: [{resourceId, saveAsDraft: false}])`. New deferred setups: `calculate(type: 'deferred-revenue', amount, periods, startDate)`, `create_capsule` (type `Deferred Revenue`), post the invoice (`create_invoice`) and the recognition journals (`create_journal`) with `capsuleResourceId`, then finalize the current period's journal in the same `bulk_update_journals` call.
123
125
 
124
126
  ### Step 9: Depreciation
125
127
 
@@ -141,6 +143,8 @@ On first month of FY only: `create_capsule` (type `Employee Benefits`), then eit
141
143
 
142
144
  ### Step 11: Loan interest (finalize this period's draft journal)
143
145
 
146
+ Loans kept in the `loans` register post their own interest and repayment entries (check them with `get_loan_totals`); the capsule route below is for loans kept manually.
147
+
144
148
  For each active loan capsule (via `search_capsules(filter: {status: {eq: 'ACTIVE'}})` (capsule type is not filterable; see `building-blocks.md` § Filter limits)):
145
149
 
146
150
  1. **STOP: do not select these with a filter.** Journals cannot be narrowed to one capsule by a filter: `JournalFilter` declares no `capsuleResourceId`, and `GET /capsules/{id}` returns only `totalTransactions`, a count (measured 2026-09-07). A date+status search returns EVERY matching DRAFT in the org, including drafts a practitioner deliberately parked, so passing it to `bulk_update_journals(items: [{resourceId, saveAsDraft: false}])` finalizes unrelated work. `get_journal` (`GET /journals/{id}`) does return the link as `capsule: {resourceId, type, title}` (measured 2026-09-23), so check each candidate journal's `capsule.resourceId` against this capsule, keep only the matches, and confirm the count with the practitioner before finalizing.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-recipes
3
- version: 9.4.6
3
+ version: 9.5.0
4
4
  description: >-
5
5
  Use this skill when modeling complex multi-step accounting transactions:
6
6
  anything that spans multiple periods, involves changing amounts, or requires
@@ -19,7 +19,7 @@ compatibility: Works with Claude Code, Claude Cowork, Claude.ai, and any agent t
19
19
 
20
20
  You are modeling **complex multi-step accounting scenarios** in Jaz: transactions that span multiple periods, involve changing amounts, or require several linked entries to complete a single business event.
21
21
 
22
- > **Jaz-native, not generic.** Every recipe in this skill is designed around the Jaz calculators (`calculate` / `clio calc`), Jaz capsule types, Jaz CoA classifications, and Jaz scheduler primitives. It is NOT an interchangeable IFRS reference; it is the operating manual for posting these transactions through the Jaz ledger. Never work the amounts by hand: run the calculator first and post the lines it returns. Nothing posts a recipe for you: the calculator posts nothing, and you create the capsule and each entry yourself (see "Posting a Recipe: Three Steps").
22
+ > **Jaz-native, not generic.** Every recipe in this skill is designed around the Jaz calculators (`calculate` / `clio calc`), Jaz capsule types, Jaz CoA classifications, and Jaz scheduler primitives. It is NOT an interchangeable IFRS reference; it is the operating manual for posting these transactions through the Jaz ledger. Never work the amounts by hand: run the calculator first for a what-if, a topic with no register, or the manual alternative, and post the lines it returns. A lease, loan, deferral or fixed asset the user wants kept goes to its register first. Nothing posts a recipe for you: the calculator posts nothing, and you create the capsule and each entry yourself (see "Posting a Recipe: Three Steps").
23
23
 
24
24
  **This skill provides Jaz-contextual recipes with full accounting logic. For API field names and payloads, load the `jaz-api` skill alongside this one. For the operational close workflows that invoke these recipes (month-end close, GST/VAT filing, year-end close), load the `jaz-jobs` skill.**
25
25
 
@@ -41,6 +41,8 @@ You are modeling **complex multi-step accounting scenarios** in Jaz: transaction
41
41
  - Capitalizing costs in WIP and transferring to fixed assets
42
42
  - Any scenario that groups related transactions in a capsule over multiple periods
43
43
 
44
+ > **Registers first.** For a lease, hire purchase, loan, prepaid expense, deferred revenue or fixed asset the user wants kept on the books, use its register (`leases`, `loans` and `loan_events`, `deferrals`, `fixed_assets` and `fixed_asset_schedules`; reports in `register_reports`). The register keeps the schedule and posts the periodic entries itself, and never posts cash: never post those entries again by hand. The recipes for those topics below are the manual alternative: for organizations whose plan or role does not include the register (it answers 403), or when the user asks for journals. If the register refuses, tell the user, name this alternative, and wait. A "what would this look like" question with nothing to record is still a calculator question.
45
+
44
46
  ## Building Blocks
45
47
 
46
48
  Every recipe uses a combination of these Jaz features. See `references/building-blocks.md` for details.
@@ -133,7 +135,7 @@ Each recipe includes: scenario description, accounts involved, journal entries,
133
135
 
134
136
  ## Posting a Recipe: Three Steps
135
137
 
136
- No tool runs a recipe end to end. You perform three explicit steps (full detail, the action-to-tool mapping and the draft / reference rules are in `references/building-blocks.md`):
138
+ No tool runs a recipe end to end. For a topic with no register, or the manual alternative, you perform three explicit steps (full detail, the action-to-tool mapping and the draft / reference rules are in `references/building-blocks.md`):
137
139
 
138
140
  1. **Calculate.** `calculate(type, ...)` (MCP) or `clio calc <type> ... --json` (CLI). Offline, read-only, no account needed. It returns the schedule and, when a start date is given, a `blueprint` with dated steps and the journal lines for each step. It posts nothing.
139
141
  2. **Create the capsule.** `list_capsule_types` (create the type with `create_capsule_type` if it is missing), then `create_capsule`.
@@ -2,6 +2,8 @@
2
2
 
3
3
  > One-shot recipe for fixed-asset disposal under IAS 16.67-72 (sale, scrap, write-off). One disposal journal, plus the fixed-asset register update that stops depreciation. The calculator returns the accumulated depreciation, net book value, gain or loss and the journal lines; you post the journal and update the register yourself (see `building-blocks.md` § The three-step flow).
4
4
 
5
+ > **Register first.** For an asset in the fixed-asset register, take the figures from `calculate_fixed_asset_disposal` (`fixed_asset_schedules`), then `mark_fixed_asset_sold` or `discard_fixed_asset`, which record the disposal themselves. This recipe covers an asset that is not in the register, and is the cross-check for one that is.
6
+
5
7
  ## Tools and calculator this recipe uses
6
8
 
7
9
  ### Calculator (offline, posts nothing)
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Canonical recipe for term loans with fixed monthly installments. Never hand-build the amortization table: the calculator returns it, with the journal lines for every installment. You create the capsule and post the disbursement and each repayment yourself (see `building-blocks.md` § The three-step flow).
4
4
 
5
+ > **Register first.** To keep a loan on the books, use the `loans` register (changes in `loan_events`) (`create_loan`): it keeps the schedule and posts the periodic entries itself. This recipe is the manual alternative, for organizations whose plan or role does not include the register, or when the user asks for journals.
6
+
5
7
  ## Tools and calculator this recipe uses
6
8
 
7
9
  ### Calculator (offline, posts nothing)
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Mirror of prepaid-amortization for the income side: customer pays upfront for a service delivered over time. One upfront invoice coded to the Deferred Revenue liability, then N recognition entries that roll the liability into revenue, all in one capsule. Same operational pattern; opposite accounting direction. You calculate, create the capsule and post each entry yourself (see `building-blocks.md` § The three-step flow).
4
4
 
5
+ > **Register first.** To keep deferred revenue on the books, use the `deferrals` register (`create_deferral`): it keeps the schedule and posts the periodic entries itself. This recipe is the manual alternative, for organizations whose plan or role does not include the register, or when the user asks for journals.
6
+
5
7
  ## Tools and calculator this recipe uses
6
8
 
7
9
  ### Calculator (offline, posts nothing)
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Variant of the IFRS 16 lease recipe where ownership transfers at the end of the term. Same calculator, same step structure as `ifrs16-lease.md`, but the ROU asset depreciates over its USEFUL LIFE (typically longer), not the financing term.
4
4
 
5
+ > **Register first.** To keep a hire purchase on the books, use the `leases` register (`create_lease`): it keeps the schedule and posts the periodic entries itself. This recipe is the manual alternative, for organizations whose plan or role does not include the register, or when the user asks for journals.
6
+
5
7
  ## Why hire-purchase uses the lease calculator
6
8
 
7
9
  Per IFRS 16.32: when ownership transfers at the end of the lease term, OR a purchase option is reasonably certain, the ROU asset is depreciated to the end of its USEFUL LIFE (not the lease term). For a vehicle on a 36-month HP with 60-month useful life: financing/liability over 36 months, depreciation over 60 months.
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Canonical recipe for leases (office, equipment, vehicles) under IFRS 16. An initial recognition journal (Dr ROU Asset / Cr Lease Liability at present value), the ROU asset registered in the Jaz fixed-asset register, and N liability-unwinding journals. ROU depreciation runs through the Jaz native FA register (straight-line, auto-posted by Jaz). You calculate, create the capsule and post each entry yourself (see `building-blocks.md` § The three-step flow).
4
4
 
5
+ > **Register first.** To keep a lease on the books, use the `leases` register (`create_lease`): it keeps the schedule and posts the periodic entries itself. This recipe is the manual alternative, for organizations whose plan or role does not include the register, or when the user asks for journals.
6
+
5
7
  ## Tools and calculator this recipe uses
6
8
 
7
9
  ### Calculator (offline, posts nothing)
@@ -2,6 +2,8 @@
2
2
 
3
3
  > Canonical recipe for prepaid expenses paid upfront and recognized over a fixed schedule. Calculate the schedule, create the capsule, then post the supplier bill and the recognition entries yourself (see `building-blocks.md` § The three-step flow).
4
4
 
5
+ > **Register first.** To keep a prepaid expense on the books, use the `deferrals` register (`create_deferral`): it keeps the schedule and posts the periodic entries itself. This recipe is the manual alternative, for organizations whose plan or role does not include the register, or when the user asks for journals.
6
+
5
7
  ## Tools and calculator this recipe uses
6
8
 
7
9
  ### Calculator (offline, posts nothing)
@@ -4,13 +4,13 @@ Jaz accounting guidance for this workspace. Load the installed Jaz skills for de
4
4
 
5
5
  ## Discovery
6
6
 
7
- Jaz exposes **396 tools across 50 namespaces**. Your tool list shows **3, 50, or 396** entries depending on packaging; **never infer capability from its length.**
7
+ Jaz exposes **476 tools across 56 namespaces**. Your tool list shows **3, 56, or 476** entries depending on packaging; **never infer capability from its length.**
8
8
 
9
9
  - **3**: `search_tools(query)` → `describe_tools(names)` → `execute_tool(name, args)`. Empty query returns the namespace map.
10
- - **50**: namespace routers; call one with `{ operation, arguments }`. Its description lists its operations.
11
- - **396**: call operations directly by name.
10
+ - **56**: namespace routers; call one with `{ operation, arguments }`.
11
+ - **476**: call operations directly by name.
12
12
 
13
- `describe_capabilities` returns the capability map on all three. **Call it before telling the user Jaz cannot do something.**
13
+ **Before telling the user Jaz cannot do something, call `describe_capabilities`** (the capability map, on all three).
14
14
 
15
15
  No API key needed: `describe_capabilities`, `calculate` (marked `Offline.`), and `search_help_center`.
16
16
 
@@ -20,12 +20,14 @@ No API key needed: `describe_capabilities`, `calculate` (marked `Offline.`), and
20
20
  2. **Transaction dates are `valueDate`** (YYYY-MM-DD), never `issueDate` / `invoiceDate` / `date`.
21
21
  3. **Line item text field is `name`**, never `description`.
22
22
  4. **`saveAsDraft` defaults `false`** at the API; CLI/MCP create-tools default `true`. Set explicitly when the user says "finalize".
23
- 5. **Pagination uses `limit` / `offset`**: `offset` is a 0-indexed page number (offset=1 = second page), not a row-skip. Exceptions, where `offset` is a 0-indexed ROW offset (next page = offset + limit): the general ledger (and templated), the AR/AP details reports (and templated), purchase items (list and search), currency rates, and employee payouts search. Sort is required when `offset` is set.
23
+ 5. **Pagination uses `limit` / `offset`**: `offset` is a 0-indexed page number (offset=1 = second page), not a row-skip. Exceptions use a 0-indexed ROW offset (next page = offset + limit): general ledger, AR/AP details reports (both also templated), purchase items, currency rates, employee payouts search. Sort is required when `offset` is set.
24
24
  6. **Create responses return `{ resourceId }` only**; re-GET to load the full entity.
25
25
 
26
- ## Transactions: never hand-compute schedules for IFRS
26
+ ## Transactions: registers first, then calculators
27
27
 
28
- For depreciation, amortization, ECL, IFRS 16 leases, hire purchase, loans, IAS 37 provisions, deferred revenue, fixed deposits, asset disposal, accrued expenses, leave accrual, dividends, **always run the calculator, then post its steps**:
28
+ A lease, hire purchase, loan, prepaid expense, deferred revenue or fixed asset kept on the books goes in its register (`leases`, `loans`, `loan_events`, `deferrals`, `fixed_assets`, `fixed_asset_schedules`, `register_reports`), which posts the periodic entries itself, never cash. On a 403 (plan or role) do not fall back to journals: say it is not available, name the alternative (a calculated schedule with manual journals), and wait for the user to ask.
29
+
30
+ For what-ifs and for ECL, IAS 37 provisions, fixed deposits, accrued expenses, leave accrual and dividends, **run the calculator, then post its steps**:
29
31
 
30
32
  1. `calculate(type, ...)` → schedule + journal lines (offline).
31
33
  2. `create_capsule` (type from `list_capsule_types`).
@@ -46,15 +48,15 @@ Prefer OAuth (`clio auth login` locally); API keys are optional.
46
48
 
47
49
  - Never echo OAuth tokens, `JAZ_API_KEY`, or `jk-*` strings to the user or into generated code.
48
50
  - Never invent enum values (UPPER_SNAKE_CASE only, match exactly).
49
- - Errors come back structured (`code`, `message`, `failedRows[]`, `errorDetails[]`). Read them; don't guess at what went wrong.
51
+ - Errors come back structured (`code`, `message`, `failedRows[]`, `errorDetails[]`). Read them, do not guess.
50
52
 
51
53
  ## Jaz Jots: record the judgment behind a write
52
54
 
53
- A jot is a one-line record of a judgment call: the decision and why. The org's judgment journal lets the next agent or human read the basis instead of re-deriving it.
55
+ A jot is a one-line record of a judgment call: the decision and why.
54
56
 
55
- **The one rule:** record a judgment when you chose among real alternatives and a write followed, or when you deliberately decided NOT to write. Skip mechanical actions and calls where the platform, the data, or the user left no choice.
57
+ **The one rule:** record a judgment when you chose among real alternatives and a write followed, or when you deliberately decided NOT to write. Skip mechanical actions and calls with no real choice.
56
58
 
57
- - **Two ways to write one.** The `jot` field on the mutation you are already making (`"MATCH: distinct from BILL bil_x, references differ"`), or the `jot` tool alone. Jot AFTER the write succeeds, never before, and carry the record's resourceId.
58
- - **Recall before repeating.** Call `recall` before repeating a judgment on the same record, kind, or workflow: a prior call with its basis beats re-deriving; a flag on it is a warning.
59
+ - **Two ways to write one.** The `jot` field on the mutation you are already making, or the `jot` tool alone. Jot AFTER the write succeeds, never before, and carry the record's resourceId.
60
+ - **Recall before repeating.** Call `recall` before repeating a judgment on the same record, kind, or workflow; a flag on a prior one is a warning.
59
61
  - **9 kinds:** CLASSIFICATION · MATCH · SCOPE · ASSUMPTION · RISK · METHOD · RECOVERY · DEVIATION · NOTE.
60
- - Optional and non-blocking: a jot never delays or fails the action it rides on.
62
+ - Optional: a jot never delays or fails the action it rides on.