skill

Sox Testing

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.

Anthropic4.82,500+ installsVetted

About

# SOX Compliance Testing

> If you see unfamiliar placeholders or need to check which tools are connected, see [CONNECTORS.md](../../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.

## Usage

``` /sox <control-area> <period> ```

### Arguments

- `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 controls - `financial-close` — Period-end close and reporting controls - `treasury` — Cash management and treasury controls - `fixed-assets` — Capital asset lifecycle controls - `inventory` — Inventory valuation and management controls - `itgc` — IT general controls (access, change management, operations) - `entity-level` — Entity-level and monitoring controls - `journal-entries` — Journal entry processing controls - Any specific control ID or name - `period` — The testing period (e.g., `2024-Q4`, `2024`, `2024-H2`)

## Workflow

### 1. Identify Controls to Test

Based on the control area, identify the key controls. Present the control matrix:

| 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:** - **Automated:** System-enforced controls with no manual intervention - **Manual:** Controls performed by personnel with judgment - **IT-dependent manual:** Manual controls that rely on system-generated data

**Assertions (CEAVOP):** - **C**ompleteness — All transactions are recorded - **E**xistence/Occurrence — Transactions actually occurred - **A**ccuracy — Amounts are correctly recorded - **V**aluation — Assets/liabilities are properly valued - **O**bligations/Rights — Entity has rights to assets, obligations for liabilities - **P**resentation/Disclosure — Properly classified and disclosed

### 2. Determine Sample Size

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: - **Risk level:** Higher risk controls require larger samples - **Prior year results:** Controls with prior deficiencies need larger samples - **Reliance:** Controls relied upon by external auditors may need larger samples

### 3. Generate Sample Selection

Select samples from the population using the appropriate method:

**Random selection** (default for transaction-level controls): - Generate random numbers to select specific items from the population - Ensure coverage across the full period

**Systematic selection** (for periodic controls): - Select items at fixed intervals with a random start point - Ensure representation across all sub-periods

**Targeted selection** (supplement to random, for risk-based testing): - Select items with specific risk characteristics (high dollar, unusual, period-end) - Document rationale for targeted selections

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 | | ... | ... | ... | ... | ... | ```

### 4. Create Testing Workpaper

Generate a testing template for each control:

``` 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 Assertio

Install

Run this command

git clone https://github.com/anthropics/knowledge-work-plugins && cp -r knowledge-work-plugins/finance/skills/sox-testing ~/.claude/skills/

Works with

claude appclaude codeclaude apicursorcodexwindsurfclinezed

Manual steps

Clone the repository and copy the `finance/skills/sox-testing` folder into your Claude skills directory. Compatible with Claude Code, Cursor, Codex, and any Agent Skills-compatible agent.

View source
License: Apache-2.0By Anthropic

Related assets

More curated picks in Finance & Accounting.

skillclaude_appclaude_codeclaude_api
git clone https://github.com/anthropics/knowledge-work-plugins && cp -r knowledge-work-plugins/finance/skills/journal-entry-prep ~/.claude/skills/
Journal Entry Prep
Prepare journal entries with proper debits, credits, and supporting documentation for month-end close. Use when booking accruals, prepaid amortization…★ 4.8 · 2,500+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/anthropics/knowledge-work-plugins && cp -r knowledge-work-plugins/finance/skills/variance-analysis ~/.claude/skills/
Variance Analysis
Decompose financial variances into drivers with narrative explanations and waterfall analysis. Use when analyzing budget vs. actual, period-over-perio…★ 4.8 · 2,500+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/anthropics/knowledge-work-plugins && cp -r knowledge-work-plugins/finance/skills/financial-statements ~/.claude/skills/
Financial Statements
Generate financial statements (income statement, balance sheet, cash flow) with period-over-period comparison and variance analysis. Use when preparin…★ 4.8 · 2,500+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/anthropics/knowledge-work-plugins && cp -r knowledge-work-plugins/finance/skills/reconciliation ~/.claude/skills/
Reconciliation
Reconcile accounts by comparing GL balances to subledgers, bank statements, or third-party data. Use when performing bank reconciliations, GL-to-suble…★ 4.8 · 2,500+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/anthropics/knowledge-work-plugins && cp -r knowledge-work-plugins/finance/skills/audit-support ~/.claude/skills/
Audit Support
Support SOX 404 compliance with control testing methodology, sample selection, and documentation standards. Use when generating testing workpapers, se…★ 4.8 · 2,500+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/anthropics/knowledge-work-plugins && cp -r knowledge-work-plugins/finance/skills/journal-entry ~/.claude/skills/
Journal Entry
Prepare journal entries with proper debits, credits, and supporting detail. Use when booking month-end accruals (AP, payroll, prepaid), recording depr…★ 4.8 · 2,500+

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Finance & Accounting