/finance:sox-testing <control area> [period]from finance
Generate SOX sample selections, testing workpapers, and control assessments. Use when planning quarterly or annual SOX 404 testing, pulling a sample for a control (revenue, P2P, ITGC, close), building a testing workpaper template, or evaluating and classifying a control deficiency.
Ships in finance. 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.
None: SKILL.md is the whole skill.
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Important: This command assists with SOX compliance workflows but does not provide audit or legal advice. All testing workpapers and assessments should be reviewed by qualified financial professionals before use in audit documentation.
Generate sample selections, create testing workpapers, document control assessments, and provide testing templates for SOX 404 internal controls over financial reporting.
Lark-native execution — read the depth core: LARK-PATTERNS, LARK-RECIPES, LARK-FUSION, CONNECTORS.md. The transaction population to sample comes from the ERP / data warehouse (external MCP). Lark owns the control inventory, workpapers, sample log, and deficiency / remediation tracking:
- Control matrix + sample log + deficiency register = Lark Base(s) (P5): controls table (Control #, Type, Frequency, Key, Risk, Assertion, Tester, Reviewer, Conclusion); sample table (Sample #, Ref, Amount, Selection basis, Result, Exception); deficiency table (Severity, Root cause, Owner, Remediation date, Re-test status). Read
lark_base_search— it requiressearch_fields(the field(s) to match, e.g.["Conclusion"]or["Control #"]) and does not supportjq; narrow withselect_fields/limit. Discover field names first vialark_api GET /open-apis/bitable/v1/apps/{base}/tables/{table}/fieldsif unknown. Writelark_base_record_upsert(dry_run, P2). Scaffold viabase-deploy— don't hand-roll the schema.- Workpapers land in Wiki (P8):
lark_wiki_node_createper control (one node = one workpaper); upload supporting evidence (screenshots, signed approvals) withlark_drive_uploadand link from the Base row.- Assign testing + remediation as tasks: resolve tester / control owner via
lark_contact_search(P1) →lark_task_create(assignee, due). Complete withlark_task_complete.- Status / exception summary = an interactive card (P4,
lark_im_card_send): header colored by worst conclusion,itemrows for controls with exceptions + a Review button.- Deficiency sign-off = a real Lark approval (P7, delegate to
lark-approval), not a chat "ok".
/sox <control-area> <period>
control-area — The control area to test:
revenue-recognition — Revenue cycle controls (order-to-cash)procure-to-pay or p2p — Procurement and AP controls (purchase-to-pay)payroll — Payroll processing and compensation controlsfinancial-close — Period-end close and reporting controlstreasury — Cash management and treasury controlsfixed-assets — Capital asset lifecycle controlsinventory — Inventory valuation and management controlsitgc — IT general controls (access, change management, operations)entity-level — Entity-level and monitoring controlsjournal-entries — Journal entry processing controlsperiod — The testing period (e.g., 2024-Q4, 2024, 2024-H2)Based on the control area, identify the key controls. Present the control matrix — and persist it as rows
in the controls Base (lark_base_record_upsert, P5) so testing status is queryable across the period:
| Control # | Control Description | Type | Frequency | Key/Non-Key | Risk | Assertion |
|---|---|---|---|---|---|---|
| [ID] | [Description] | Manual/Automated/IT-Dependent | Daily/Weekly/Monthly/Quarterly/Annual | Key | High/Medium/Low | [CEAVOP] |
Control types:
Assertions (CEAVOP):
Calculate sample sizes based on control frequency and risk:
| Control Frequency | Population Size (approx.) | Recommended Sample |
|---|---|---|
| Annual | 1 | 1 (test the instance) |
| Quarterly | 4 | 2 |
| Monthly | 12 | 2-4 (based on risk) |
| Weekly | 52 | 5-15 (based on risk) |
| Daily | ~250 | 20-40 (based on risk) |
| Per-transaction | Varies | 25-60 (based on risk and volume) |
Adjust for:
Select samples from the population (pulled from the ERP / data warehouse) using the appropriate method,
then log each selected item as a row in the sample Base (lark_base_record_upsert):
Random selection (default for transaction-level controls):
Systematic selection (for periodic controls):
Targeted selection (supplement to random, for risk-based testing):
Present the sample:
SAMPLE SELECTION
Control: [Control ID] — [Description]
Period: [Testing period]
Population: [Count] items, $[Total value]
Sample size: [N] items
Selection method: [Random/Systematic/Targeted]
| Sample # | Transaction Date | Reference/ID | Amount | Selection Basis |
|----------|-----------------|--------------|--------|-----------------|
| 1 | [Date] | [Ref] | $X,XXX | Random |
| 2 | [Date] | [Ref] | $X,XXX | Random |
| ... | ... | ... | ... | ... |
Generate a testing template for each control, then create it as a Wiki node (P8,
lark_wiki_node_create) so the workpaper is durable and findable; attach evidence via
lark_drive_upload and link it from the control's Base row:
SOX CONTROL TESTING WORKPAPER
==============================
Control #: [ID]
Control Description: [Full description of the control activity]
Control Owner: [Role/title — to be filled by tester]
Control Type: [Manual/Automated/IT-Dependent Manual]
Frequency: [How often the control operates]
Key Control: [Yes/No]
Relevant Assertion(s): [CEAVOP]
Testing Period: [Period]
TEST OBJECTIVE:
To determine whether [control description] operated effectively throughout the testing period.
TEST PROCEDURES:
1. [Step 1 — What to inspect, examine, or re-perform]
2. [Step 2 — What evidence to obtain]
3. [Step 3 — What to compare or verify]
4. [Step 4 — How to evaluate completeness of performance]
5. [Step 5 — How to assess timeliness of performance]
EXPECTED EVIDENCE:
- [Document type 1 — e.g., signed approval form]
- [Document type 2 — e.g., system screenshot showing review]
- [Document type 3 — e.g., reconciliation with preparer sign-off]
TEST RESULTS:
| Sample # | Ref | Procedure 1 | Procedure 2 | Procedure 3 | Result | Exception? | Notes |
|----------|-----|-------------|-------------|-------------|--------|------------|-------|
| 1 | | Pass/Fail | Pass/Fail | Pass/Fail | Pass/Fail | Y/N | |
| 2 | | Pass/Fail | Pass/Fail | Pass/Fail | Pass/Fail | Y/N | |
EXCEPTIONS NOTED:
| Sample # | Exception Description | Root Cause | Compensating Control | Impact |
|----------|----------------------|------------|---------------------|--------|
| | | | | |
CONCLUSION:
[ ] Effective — Control operated effectively with no exceptions
[ ] Effective with exceptions — Control operated effectively; exceptions are isolated
[ ] Deficiency — Control did not operate effectively
[ ] Significant Deficiency — Deficiency is more than inconsequential
[ ] Material Weakness — Reasonable possibility of material misstatement not prevented/detected
Tested by: ________________ Date: ________
Reviewed by: _______________ Date: ________
Based on the control area, provide pre-built test step templates:
Revenue Recognition:
Procure to Pay:
Financial Close:
ITGC:
Classify any identified deficiencies:
Deficiency: A control does not allow management or employees to prevent or detect misstatements on a timely basis. Consider:
Significant Deficiency: A deficiency (or combination) that is less severe than a material weakness but important enough to merit attention by those responsible for oversight.
Material Weakness: A deficiency (or combination) such that there is a reasonable possibility that a material misstatement will not be prevented or detected on a timely basis.
Provide:
Then land it in Lark: controls/samples/deficiencies as Base rows (lark_base_record_upsert), workpapers
in Wiki + evidence in Drive (P8), remediation items as assigned tasks (lark_task_create, owner via
lark_contact_search), an exception-summary card (P4), and deficiency sign-off via a Lark approval (P7).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub larkcowork/lark-cowork-plugins --plugin finance8 skills in this plugin
/audit-supportSupport SOX 404 compliance with control testing methodology, sample selection, and documentation standards. Use when generating testing workpapers, selecting audit samples, classifying control deficiencies, or preparing for internal or external audits./close-managementManage the month-end close process with task sequencing, dependencies, and status tracking. Use when planning the close calendar, tracking close progress, identifying blockers, or sequencing close activities by day./financial-statementsGenerate financial statements (income statement, balance sheet, cash flow) with period-over-period comparison and variance analysis. Use when preparing a monthly or quarterly P&L, closing the books and need to flag material variances, comparing actuals to budget, building a financial summary for leadership review, or looking up GAAP presentation requirements and period-end adjustments./journal-entryPrepare journal entries with proper debits, credits, and supporting detail. Use when booking month-end accruals (AP, payroll, prepaid), recording depreciation or amortization, posting revenue recognition or deferred revenue adjustments, or documenting an entry for audit review./journal-entry-prepPrepare journal entries with proper debits, credits, and supporting documentation for month-end close. Use when booking accruals, prepaid amortization, fixed asset depreciation, payroll entries, revenue recognition, or any manual journal entry./reconciliationReconcile accounts by comparing GL balances to subledgers, bank statements, or third-party data. Use when performing bank reconciliations, GL-to-subledger recs, intercompany reconciliations, or identifying and categorizing reconciling items.