← Back to library

Prep payroll and flag timesheet anomalies

Anthropic's payroll-prep skill checks a pay run before it goes out. It compares hours, rates, bonuses and deductions with timesheets and the previous period, flags anything unusual such as missing timesheets or doubled lines, and stages the run. Nothing is paid until the owner has approved each line.

  • OutcomeHours totaled per person and every timesheet anomaly flagged, staged for line-by-line approval before the run.
  • SetupUnder an hour
  • LevelIntermediate
  • CreditAnthropic
View original
Works with
Claude CoworkClaude Code

Published Oct 20, 2026Updated Oct 20, 2026AI dry run on sample input: passed Oct 20, 2026Source verified Oct 23, 2026

When should you use it?

  • Hourly staff with timesheets and an owner who runs payroll
  • Bookkeepers preparing payroll for several clients
  • After a pay error caused a difficult conversation

Not for: Calculating tax withholding or filing payroll taxes

What do you need, and what do you get?

You need

  • Timesheets or a payroll export
  • Pay rates and the work schedule

You get

  • Hours summary per employee (regular, overtime, PTO)
  • Anomaly list with the reason for each
  • Staged run for approval

How does it work, step by step?

  1. Install the pluginIn Claude Cowork, install the small-business plugin from claude.com/plugins; in Claude Code, add the knowledge-work-plugins marketplace and install it.
  2. Connect your toolsConnect the apps the skill reads from. Without connectors, most skills work from pasted or uploaded files.
  3. Customize itTell it your overtime rule (daily, weekly or both) and how PTO is recorded, since these vary by state and company.
  4. Run itAsk in plain language or use the the payroll-prep skill command, then review the output before anything leaves your hands.

The prompt

Our adapted version, written to work in Claude Cowork and Claude Code. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt4 variables
Use the payroll-prep skill for the pay period {pay_period}.
Timesheets: {timesheets}. Rates and schedule: {rates_and_schedule}. Overtime rule: {overtime_rule}.
Total regular, overtime and PTO hours per person, list every anomaly with the reason, and stage the run for my line-by-line approval. Don't change any hours yourself.

The original skill is published by Anthropic on Anthropic. Open it there to install or import it; the prompt above is our own adaptation.

What can go wrong?

  • Overtime rules differ by jurisdiction; confirm the rule it applies.
  • Treat every anomaly as a question for the employee or manager, not an error to fix silently.

Our take

Payroll errors are small in money and large in trust: a missed punch that shorts someone's pay costs more in goodwill than in dollars. A pre-run anomaly check is the control most small businesses skip, and this skill makes it routine. In our dry run with a sample two-week timesheet for nine hourly staff, it totaled hours correctly, applied the weekly overtime rule we specified, and flagged four items: a missing clock-out, a 52-hour week for one person, a pay-rate change with no effective date, and a new hire with hours before their start date. It staged the run and changed nothing. For bookkeeping firms, the anomaly list doubles as the client query list each pay period. Keep tax withholding and filing in your payroll provider; this sits in front of that, not instead of it. Run it every pay period, not just when something feels wrong, and keep each flagged item with the payroll file. The value comes from catching a missing timesheet or a doubled bonus before it is paid, not after.

Where the time goes back: Checking timesheets line by line becomes reviewing a short list of anomalies.

FAQ

Does it run payroll?
No. It prepares and checks. You approve and run payroll in your payroll system.
Does this only work in Claude?
Anthropic built these plugins for Claude Cowork and says they are also compatible with Claude Code. The skills are SKILL.md files, so other agents that support Agent Skills may load them, but test first.

Source and credit

This playbook is based on work by Anthropic. We summarize it and link to it and write our own adapted prompt.

Original
payroll-prep skill · small-business plugin (anthropics/knowledge-work-plugins)
Creator
Anthropic
Published on
Anthropic
Original date
Sep 15, 2026
License
Apache-2.0
Originally for
Claude Cowork
AI dry run
Oct 20, 2026: passed. Dry-run tested by our AI test agent on sample input. All 3 seeded anomalies caught; nothing changed in payroll.
Agent dry run of the published SKILL.md: fetched from the source repo, its steps followed on a realistic synthetic input, output checked against the skill's format and our guardrails. Plugin install inside Claude Cowork/Code not exercised.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

The original is licensed under Apache-2.0 by Anthropic. Modified: our adapted prompt and summary are our own wording; the original skill {"was unchanged at the source when we snapshotted it (live source later removed)" if src_removed(s) else "is unchanged at the source link"}.

Are you the creator? Claim or correct this page.

More in Finance & Accounting

All 62 Finance & Accounting playbooks →

Related playbooks

Finance & AccountingSkill✓ AI dry run

Have Claude build Excel files that recalculate cleanly

Give Claude the xlsx skill so that any spreadsheet it creates or edits keeps live formulas instead of pasted results, passes a full recalculation with zero formula errors before delivery, labels every assumption with its source, and follows standard financial model conventions or the existing file's own styling.

Credit: Anthropic

Minutes
Finance & AccountingSkill✓ AI dry run

Prepare month-end journal entries with support

Month-end entries drafted with the right accounts on each side and the workings attached for the reviewer.

Credit: Anthropic

Under an hour
Finance & AccountingWorkflow✓ AI dry run

Pull a tax audit document packet from your books

Connect an assistant to your accounting, file storage and email so it can assemble the invoices, receipts and summaries an auditor asks for.

Credit: gtwy (@Gtwy)

An afternoon+