/close-review:close-reviewfrom close-review
Use when asked to run monthly close controls on trial-balance CSV files the user supplies and explain the exceptions. Runs close-control locally and answers only from the close-review-pack.json and exceptions.csv it writes.
Ships in close-review. 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.
Run close-control review on the user's own files, check the pack it writes,
then answer questions from that pack alone.
close-control on files the user
names. Start no server, call no network service, open no Xero connection and
upload nothing. If close-control is missing, stop and point the user to the
Install section of the Accounting Review Pipeline README; do not download or
build it yourself.--review-note: an acknowledgement records a human action. The
pack states are PASS, REVIEW and BLOCKED; a human reviewer decides
whether the close is acceptable.Required: the current and prior trial balances, as the canonical CSV written
by xero-trial-balance-export, each for one tenant and one report date, with
the prior date earlier.
Optional, only when the user supplies the file or asks for the setting:
--mapping, --mapping-policy (needs --mapping), --balance-policy,
--subledger, --gst-mapping with --gst-settlements,
--gst-absolute-tolerance, --gst-percentage-tolerance, --equity-schedule,
--equity-currency, --equity-currency-evidence, --calculation-evidence,
--require-calculation, --require-control, --absolute-threshold,
--percentage-threshold and --reconciliation-tolerance. Do not invent
thresholds or tolerances; when the user gives none, the tool's defaults apply
and the pack records them.
Output: a new, empty directory the user chooses or confirms, outside every Git, Mercurial, Subversion or Bazaar checkout. The command refuses a directory inside a checkout, because a pack names accounts and balances, and it replaces files with the same names in an existing directory.
Run close-control --version and record the line it prints.
Run the review, adding only the options from Inputs:
close-control review --current <current.csv> --prior <prior.csv> --output <new directory>
Act on the exit code:
| Exit | Meaning | Next |
|---|---|---|
| 0 | PASS | Verify the pack (step 4). |
| 2 | REVIEW or BLOCKED | Verify the pack (step 4). Exit 2 is a result, not a failure. |
| 1 | Malformed input, invalid configuration, or an output directory that is unwritable or inside a checkout | Report the error output exactly and stop. There is no pack to read. Do not change the inputs or options to make it pass. |
| anything else | Not part of the command's contract | Report the code and the error output and stop. Read no files. |
Run close-control view --pack-dir <new directory>. Exit 0 means the 4
pack files (close-summary.md, exceptions.csv, client-queries.csv and
close-review-pack.json) agree. On exit 1, report that verification failed and stop; on
any other exit, report it and stop. Read nothing from a pack that did not
verify.
Read close-review-pack.json and exceptions.csv. Stop and report a
mismatch if overall_status disagrees with the exit code (0 must be PASS;
2 must be REVIEW or BLOCKED) or if the 2 files hold different numbers of
exceptions.
Answer only from close-review-pack.json and exceptions.csv of this run.
Do not recompute a figure, guess a cause, use other knowledge of the client or
fill a gap from memory. When the files do not answer a question, say so and name
what would.
overall_status, the exit code, the number of exceptions and how
many are BLOCKED and REVIEW.control, status, tenant, account_code,
account_name, current_value, prior_value, difference, threshold,
percentage_change, reason and reviewer_action, copied exactly as the
files write them. Take text from the JSON: exceptions.csv puts a leading
apostrophe before a source text field that starts with =, +, - or @,
to stop a spreadsheet reading it as a formula.thresholds and the dates from
current_report_dates and prior_report_dates.controls_not_run, and any entry in required_controls
whose state is skipped or failed. A control that did not run found
nothing because it checked nothing; never present it as passed.close-control --version line.An exception is a lead for a human to investigate, not a finding of error, and
PASS means only that no configured control raised one. This is a review aid,
not accounting, tax, audit or legal advice.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ryanduguid/accounting-review-pipeline --plugin close-review