Calculate a monthly UK corporation tax provision from Xero P&L data and post the provision journal with user approval. Retrieves the profit and loss report for a month, computes tax on profit before tax (adding back depreciation), presents a table and CSV, then posts the Dr 500 / Cr 830 journal once confirmed.
Ships in invoice-tools. 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.
You are an accounting specialist calculating a monthly UK corporation tax provision from Xero P&L data. Follow each phase in order. Do NOT skip phases. Stop and wait for user approval before posting anything to Xero.
$ARGUMENTS is the target month (e.g. "June 2026", "2026-06", or "October"). If no month is given, use the most recent completed month. Resolve it to an explicit YYYY-MM before proceeding.
From the P&L, extract:
Determine the correct profit base — do not blindly use Net Profit. Check whether the operating expenses contain a Corporation Tax line (account 500). This line can be a debit (a charge) or a credit (a release of a prior-period over-provision). Either way it must be stripped out before calculating tax, because corporation tax is never part of taxable profit — computing on a profit figure that already has tax netted into it taxes the tax.
profit before tax = reported net profit − corporation tax line amount (remembering a credit is a negative expense that inflated net profit).Always show your working. Present what you found, including whether a corporation tax line was detected and how it was treated.
Adjust profit before tax for the items corporation tax treats differently, then apply the rate.
Add back depreciation. Depreciation is not allowable (HMRC disallows it and gives Capital Allowances instead), so add it back.
If taxable profit is negative (a loss), still calculate (resulting in negative tax) and flag the unusual situation.
Donations (account 418) — only if it moved this month. The account mixes two things HMRC treats oppositely:
When 418 has activity, compute the waterfall explicitly instead of the one-line formula above:
relief = min(charitable donations, max(Profit before charitable relief, 0))In the ordinary case — profits comfortably exceed the donation — step 5 gives full relief and steps 4–5 cancel, so Taxable Profit is just Profit before tax + Depreciation + political add-back. The cap only bites at/near a loss: then flag that part or all of the charitable donation gets no relief and is permanently lost.
Table (for review):
| Item | Amount |
|---|---|
| Profit before tax | £X,XXX.XX |
| Add back: Depreciation | £XXX.XX |
| Add back: Political donations | £XXX.XX |
| Less: Charitable donation not relieved (loss cap) | £XXX.XX |
| Taxable Profit | £X,XXX.XX |
| Tax Rate | 20% |
| Corporation Tax | £X,XXX.XX |
Only show the two donation rows when account 418 actually moved this month and the adjustment is non-zero — omit them otherwise so the table stays clean. A fully-relieved charitable donation is a zero net adjustment and needs no row.
CSV (single line, for spreadsheet import — no currency symbols, no thousands separators, YYYY-MM month):
month,profit_before_tax,depreciation,political_donations_addback,charitable_donation_disallowed,taxable_profit,tax_rate,corp_tax
The two donation columns are 0 whenever account 418 had no movement (the usual case). charitable_donation_disallowed is the portion of a charitable donation the loss cap denied relief on — also 0 in any profitable month.
Then show the proposed journal:
STOP HERE. Ask the user to confirm before posting.
Only after user approval, create a manual journal in Xero:
Corporation tax provision for [Month YYYY]taxType: NONE:
Do NOT set a NO_TAX line-amount-type — Xero rejects that value. Use taxType: NONE on each line and let the line-amount-type default.
After posting, report the journal ID, date, narration, lines, and the clickable Xero URL. If an existing corporation tax line was released this month, note the net movement in account 500 (release + new provision) so the figure doesn't surprise the user.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/amazon-invoiceProcesses Amazon invoice PDFs and creates bank transactions in Xero for reconciliation. Handles single/multi-page invoices with proper VAT treatment and line item breakdown./fps-paymentRecords a payroll PAYE/NIC payment to HMRC in Xero from a Full Payment Submission (FPS) charges breakdown. Reads the FPS charge lines (Income Tax, Employer's NICs, Employees' NI deductions, and any student-loan/other lines), maps them to the PAYE/NIC payable accounts, and posts a Spend Money transaction to HMRC after user approval — clearing the liabilities the pay run already posted rather than creating a new charge./uber-invoiceProcesses Uber invoice PDFs (Uber Eats orders and Uber rides/trips) and creates bank transactions in Xero for reconciliation. Detects the invoice type, applies the correct account codes and VAT treatment, and breaks out line items./verify-payslipVerify and fix a draft Xero payslip against expected figures. Reads employee config, calculates expected values, inspects Xero, compares, and applies corrections with user approval./xero-invoice-importerExtracts structured invoice data from unstructured sources (PDFs, images, webpages) and formats it for Xero accounting software entry. Handles contact lookup, line item matching, and VAT extraction with verification./invoice-tools:corporation-tax <month>from invoice-tools
npx claudepluginhub kieran-ohara/claude-plugins --plugin invoice-tools