원클릭으로
commerce-finance
Use when working the general ledger, month-end close, AP/AR workflows, fixed assets, or revenue recognition.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when working the general ledger, month-end close, AP/AR workflows, fixed assets, or revenue recognition.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when tracking EDI documents (850/855/856/810), managing their status lifecycle, or coordinating with the StateSet EDI gateway.
Use when running warehouse operations — locations, receiving, waves and picking, cycle counts, transfers, or lot/serial traceability.
Manage sequencer sync, outbox, and conflict resolution. Use when running `stateset-sync` or checking sync status, push, or pull.
Set up and run the StateSet iCommerce engine locally (CLI install, DB init, demo data, sync). Use when bootstrapping an environment, running `stateset-doctor`, or starting `stateset-autonomous`.
Use when creating new storefront websites, scaffolding e-commerce projects, or building commerce applications with StateSet.
Stream real-time commerce events and manage webhooks. Use when debugging live behavior (orders/inventory/customers/products/returns) or integrating external systems via webhooks.
| name | commerce-finance |
| description | Use when working the general ledger, month-end close, AP/AR workflows, fixed assets, or revenue recognition. |
Domain knowledge for the finance suite: general ledger, period close, accounts payable, accounts receivable, fixed assets, and ASC 606-style revenue recognition.
"1234.56", never floats. Preserve them as strings; do not
round-trip through parseFloat.Idempotency-Key on POST /orders, /payments, /payments/{id}/refund,
and /ap/payments. A missing key returns 428; replaying the same key
with a different payload returns 422. Never retry a money-moving post
with a fresh key — reuse the original.1. initialize_chart_of_accounts # Seed a standard chart (once per ledger)
2. list_gl_accounts / get_gl_account
3. create_gl_account # Add custom accounts as needed
post_journal_entry — lines must balance (debits = credits) and the period must be openvoid_journal_entry — reverses a posted entry; never edit posted entriesget_gl_account_balance — single-account balancelist_journal_entries / get_journal_entry| Tool | Statement |
|---|---|
get_trial_balance | All accounts, debit/credit totals must tie |
get_balance_sheet | Assets = Liabilities + Equity |
get_income_statement | Revenue - Expenses for a period |
Always run get_trial_balance before and after a close to confirm it stays balanced.
create_gl_period ──► open_gl_period ──► [post entries] ──► close (via close_month)
│
lock (HTTP: period lock/reopen)
create_gl_period — fiscal year + period number (1-13)open_gl_period — entries can only post to open periodslist_gl_periods — review period statusesclose_month; the HTTP API additionally exposes
period lock/reopen for hard-locking closed periods.close_month)One orchestrated operation, in order:
depreciation posting ──► revenue recognition ──► FX revaluation ──► period close
Always run with dryRun: true first. The dry run computes the full
per-step report without writing anything.
close_month({ periodId, dryRun: true }) // preview
// review report, then:
close_month({ periodId }) // real close (requires --apply)
Each step reports entry counts, totals, and warnings. Per-item failures never abort the close — they appear as warnings, so:
skipDepreciation, skipRevenueRecognition, skipRevaluation, skipPeriodClose) to run a partial close when a step needs manual attentionrevalue_gl (or the revaluation step of close_month) posts unrealized
gain/loss on foreign-currency balances at the as-of ratecreate_bill ──► approve_bill ──► payment (POST /ap/payments, Idempotency-Key required)
│
└──► cancel_bill
three_way_match_bill matches bill ↔ purchase order ↔ receipt with a
tolerance (computed on read, nothing written):
get_accounts_payable_aging_summary — buckets (current / 30 / 60 / 90+)list_overdue_bills / list_bills_due_soon — payment-run candidatesget_accounts_payable_total_outstanding — total AP exposure/ap/payments)Apply create_vendor_credit / apply_vendor_credit against bills before
paying; reverse_vendor_credit_application corrects mistakes.
get_accounts_receivable_aging_summary — AR buckets per customerget_days_sales_outstanding — DSO metricget_accounts_receivable_total_outstanding — total AR exposurecreate_credit_memo → apply against invoices;
void_credit_memo for mistakes; list_unapplied_credits shows credits
awaiting application/ar/...)GET /ar/dunning/due lists customers due for a
collection touch; record collection activities via the AR collections APIcreate_invoice → send_invoice → record_invoice_payment;
get_overdue_invoices feeds the dunning processcreate_fixed_asset (draft) ──► place_asset_in_service ──► dispose_fixed_asset
│ (gain/loss computed)
└──► write_off_fixed_asset
generate_depreciation_schedule / get_depreciation_schedule — previewpost_depreciation — posts periods through a date; also runs as the
first step of close_monthcreate_revenue_contract ──► obligations (allocation must sum to contract)
│
▼
generate_revenue_schedule # ratable | point_in_time | milestone
│
▼
recognize_revenue # recognize through a date (requires --apply)
get_revenue_schedule — review before recognizingclose_monthclose_month cold| Error | Cause | Solution |
|---|---|---|
428 Precondition Required | Missing Idempotency-Key on money post | Add a key; reuse it on retry |
422 on replay | Same key, different payload | Use the original payload or a new key for a genuinely new operation |
Period not open | Posting to closed/locked period | open_gl_period or use current period |
Entry does not balance | Debits ≠ credits | Fix line amounts |
Asset not in service | Depreciating a draft asset | place_asset_in_service first |
Allocation mismatch | Obligations don't sum to contract | Adjust obligation allocations |