Generated banner for Payroll Prep
Generated logo for Payroll Prep

Payroll Prep

AnthropicOfficialPublished by Anthropic

  • Skill
  • Workflow
  • Business and productivity
  • Apache-2.0
  • No issues found

From the author

Gets payroll ready to run without anyone getting shorted: pulls timesheets from Gusto, QuickBooks Payroll, or an uploaded spreadsheet, totals regular, overtime, and PTO hours by person, flags every anomaly it finds — missed punches, overtime spikes, rate changes, mid-period hires and terminations, hours off the schedule — and stages the run for the owner to approve line by line before a dollar moves. Anomalies are always raised, never quietly corrected. Once the owner runs it, the journal posts to the ledger or goes to the bookkeeper. Reach for this whenever payroll comes up at all — "run payroll," "payroll is due," "check the timecards," "did everyone clock out," "how many hours did the crew put in," "why is payroll so high this week," "I need to pay the guys Friday" — and use it after cash-flow-snapshot when the owner is worried about whether payroll clears.
— the description by Anthropic

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

Payroll Prep is a rigorous financial workflow designed to ensure accuracy and prevent payroll errors. It integrates with Gusto, QuickBooks Payroll, or manual spreadsheets to aggregate hours, calculate pay, and identify potential discrepancies. The skill prioritizes transparency by flagging all anomalies—such as missing punches or overtime spikes—for the owner to review and resolve manually. It emphasizes that the machine prepares and validates, while the owner retains final authority to approve and submit the payroll, ensuring that no funds are moved without explicit verification.

What it does

  • Pulls timesheets, leave requests, and employee data from payroll providers or spreadsheets.
  • Calculates regular, overtime, and PTO hours based on business rules.
  • Flags anomalies like missing punches, overtime spikes, and rate changes for manual review.
  • Stages payroll runs for owner approval without submitting them automatically.
  • Generates a validated run sheet for final verification.
  • Posts journal entries to the ledger after the owner submits the payroll.

When to use it

  • Whenever a payroll cycle is due or needs to be prepared.
  • When verifying timecards and hours worked by the crew.
  • When investigating unexpected increases in payroll costs.
  • When the owner needs to confirm if cash flow is sufficient to cover an upcoming payroll run.

Advantages

  • Prevents costly payroll errors by requiring manual approval for every run.
  • Ensures transparency by surfacing all anomalies rather than correcting them silently.
  • Supports multiple data sources including direct integrations and manual uploads.
  • Provides clear, actionable insights into payroll fluctuations compared to prior periods.
  • Maintains strict separation between payroll preparation and final submission.

Usage examples

“Run payroll for this week.”
The agent pulls timesheets, calculates hours, flags any anomalies, and presents a validated run sheet for the owner to review and approve.
“Why is payroll so high this week?”
The agent compares the current run against the prior period, identifies the specific drivers of the cost increase, and presents the findings for review.
“Did everyone clock out correctly?”
The agent scans the timesheets for missing punches or incomplete shifts and reports any specific instances that require the owner's attention.
“I need to pay the guys Friday.”
The agent initiates the payroll preparation workflow, ensuring all hours are totaled and validated before the Friday deadline.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/anthropics/payroll-prep/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip payroll-prep.zip -d .agents/skills

Documentation by Anthropic

Payroll Prep

Get the hours right before anyone gets paid.

Payroll is the finance workflow with the least room for error. A wrong invoice gets corrected next week. A wrong paycheck is a person who cannot cover rent, and it is the fastest way for an owner to lose a crew. Everything in this skill is built around that asymmetry: the machine assembles and checks, the owner decides.

Step 1 — Fix the period before anything else

Confirm the pay period start and end dates, the pay date, and who is in this run. Getting the period wrong duplicates or skips a week of someone's pay, and it is a surprisingly easy mistake when a period straddles a month end.

Confirm the roster too: new hires who started mid-period, anyone terminated, anyone on leave. See reference/timesheet_intake.md.

Step 2 — Pull the timesheets

With Gusto connected, first ask Gusto itself what stands in the way: call its payroll-blockers check (list_payroll_blockers) before building anything. If blockers come back, translate each into plain English — what it means, who fixes it, and where. For example: "check payments unsupported" means this company pays by paper check, which the integration cannot stage, so the owner runs that part in Gusto directly; "bank account not connected via Plaid" means the owner connects the bank in Gusto's settings; "hourly employees unsupported" can block at the account level even when this run is salaried-only. Blockers are a routing signal, not a failure — the run still gets built and validated here, and the deliverable becomes the run sheet with the blocker list riding along.

Then pull the period's inputs, each from its own tool. Hours: list_time_records for the pay period; read its source field before anything else. native returns shifts with clock-in, clock-out, and breaks; third_party returns timesheets from the company's time-tracking partner, and get_time_sheet gives the per-day line items for any one of them (it refuses native shift ids); none means Gusto holds no hours for this company, so the spreadsheet path below supplies them. Leave: list_time_off_requests for the period with status: approved — every approved day is paid as PTO or sick, never as worked, and a pending request is a flag, not a paid day. Balances: get_time_off_balances, which is what the "PTO beyond available balance" check in Step 4 reads against. Rates and classifications: the roster from list_employees with each person's compensations. Rates come from Gusto, never from a timesheet. Call shapes for these are in ../../shared/connector-call-shapes.md.

A missing punch the owner can fill. When Step 4 flags a shift with no clock-out and the owner gives the real times, record_time writes them — only the times the owner stated, shown to them first, and as an update of the existing shift rather than a second entry. The parameters that refuse if missing (timezone, job on Gusto's own tracking, which id counts as the shift) and the one re-read trap (a contractor's confirmed hours come back with blank clock times; do not write again) are in the record_time row of ../../shared/connector-call-shapes.md. Read that row before the call. This is the only way the skill ever changes a punch; an assumed time is never written.

Then prove the source is returning its data before anything is staged. Pull the roster (list_employees) and the schedules (list_pay_schedules). A company that reports a headcount while either list comes back empty, or a blockers call that errors instead of answering, is a payroll source that is connected but not delivering. Stop the staging path, say so in one line ("Gusto is connected but returned no employees or pay schedules, so I cannot stage a run against it"), and offer the spreadsheet path below. Never build a run from an empty roster, and never treat a green connection badge as proof the data is there.

With QuickBooks Payroll connected, pull the same fields from there. Two different failures look alike here, and the owner hears them differently. An empty source (Gusto's lists come back with no rows on a company that reports a headcount) is a data gap: say so and use the run sheet. A self-contradicting source is a tool defect: qbo_payroll_get_company_payroll_readiness answering has_employees: false and run_payroll_ready: false while qbo_payroll_get_employees on the same company returns a total_count of 50 cannot both be true. This is independent of how much data the company has. When that happens, use the employee list for the roster (it is the call that returned rows), do not stage a run while readiness says not ready, and say both numbers to the owner in one line so the contradiction is on record rather than hidden behind "not ready." Then take the spreadsheet path below with that roster: a validated run sheet the owner keys into QuickBooks Payroll is the outcome, the same as for an empty source. This is a first-class source, not a fallback. It carries the full employee roster with pay type, rate and frequency, employment status, and PTO policy balances; the pay schedule and its frequency; and the last completed run with per-employee gross pay, hours, and the tax lines. Where hours came from a timesheet the record says so, which is what the anomaly checks in Step 4 need.

Two cautions specific to this source. Employees carry an employment status separate from an active flag, so someone marked active can still be not-on-payroll or on paid leave; read both before putting anyone in the run. And a single employee can hold a dozen or more pay rates, most sitting at zero hours, so total from the rate that actually has hours against it rather than the first rate listed.

Without either, take an uploaded spreadsheet or CSV. This is a fully supported path — a validated run sheet the owner keys into their payroll provider is a complete outcome. Many small crews still run on a paper timesheet photographed at the end of the week, and that works too.

Normalize into one row per person per day: date, in, out, break, regular hours, overtime hours, PTO, and the job or class if the business tracks labor to jobs.

Step 3 — Total the hours

Compute regular, overtime, double time, PTO, holiday, and unpaid time per person, then per crew, then for the run.

Overtime rules vary by state and by how the business classifies people, and getting them wrong underpays someone. Use the owner's stated rule, and when there isn't one, use the plain weekly-overtime default and say which rule you applied. reference/anomaly_rules.md covers the calculation edges — mid-week rate changes, multi-job days, and shifts crossing midnight.

Never fill a missing punch with an assumed time. A shift with a clock-in and no clock-out has unknown hours, and unknown hours is what gets reported.

Step 4 — Flag every anomaly

This is the core of the skill. Run the full check in reference/anomaly_rules.md and surface everything it finds, each with the person's name, the date, and what specifically looks wrong:

  • Missing punches and shifts with no clock-out

  • Overtime above this person's normal pattern, with both numbers

  • Zero hours for someone who normally works

  • Hours well above what the schedule called for

  • Rate changes since the last run

  • Duplicate or overlapping entries

  • PTO taken beyond the available balance

  • Someone paid last period who is missing from this one

  • A new person appearing with no hire record

Flags go to the owner. They never get silently corrected. A missed punch has a real answer that only the employee and the owner know, and a plausible guess in the middle of that becomes a wrong paycheck that looks correct on the report.

Step 5 — Show the run before approving it

Present the run sheet: person by person, hours by type, gross pay, and every flag attached to the person it belongs to. Then the totals — total hours, total gross, employer taxes and contributions if available, total cash needed, and the pay date.

Compare against the prior period and explain any move over 10%. A payroll that jumped USD 4,000 has a reason, and the owner should hear it from this skill rather than find it in the bank balance.

If cash data is available, say whether the run clears. If it is not available, say that plainly instead of implying it is fine.

Step 6 — Resolve the flags, one at a time

Walk the owner through each flag. For each: what was found, what it would mean if left as is, and what they want done. Record the answer and apply it.

Do not batch flags into a single "looks good?" question. Each one is a person's pay.

Step 7 — The approval gate

Nothing stages until the owner explicitly approves the run.

State plainly before asking: number of people, total hours, total gross, total cash leaving the account, the pay date, and the count of any flags they chose to leave open.

Then ask. An owner who wants to skip this gate should be told, once and without lecturing, that it stays because a wrong run is not something they can take back after direct deposit lands.

With Gusto connected, stage the run: find the unprocessed payroll with list_payrolls filtered to processing_statuses: unprocessed and an end_date a few weeks ahead (its date filter is on the pay period, and a bare call can miss a period that has not ended yet), take the one with the nearest check date, read it with get_payroll, then write the approved hours, PTO, and any bonus lines with update_payroll. Two shapes matter and both are in ../../shared/connector-call-shapes.md: values replace rather than add, so "give Maria five more hours" means sending her new total, shown to the owner as "40 → 45" first; and a payroll whose roster is not yet materialized takes one empty update_payroll call to populate it before the real one. Leave run_payroll alone — that is the owner's button, in Gusto. With QuickBooks Payroll connected, the connector holds the reads (roster, rates, schedules, readiness, last run) and no run-staging write, so the outcome there is the validated run sheet the owner keys in; that is what the connector holds today, not a lesser path. The owner submits it in either system. With neither, produce the validated run sheet for manual entry. If Gusto's blockers from Step 2 prevent staging through the connection, the validated run sheet plus the plain-English blocker list is the outcome — say so without treating it as a failure.

Step 8 — Sync to the books

After the run is submitted, post the journal entry to the ledger: gross wages, employer taxes, and any labor allocated to jobs. Test the capability, not the logo: a connected ledger whose connector has no journal-write path cannot take the post, so say so in one line and hand the balanced entry to the owner or bookkeeper to key in — a complete outcome, not a failure. Confirm the amounts match what actually ran, not what was proposed — those differ whenever the owner edited something at the last step.

What not to do

  • Do not guess a punch, a rate, or a classification. Unknown hours get named with the person and the date.

  • Do not correct an anomaly silently, even an obvious-looking one. The owner may know something you do not.

  • Do not submit payroll. Stage it; the owner submits. run_payroll is never called by this skill. This holds for QuickBooks Payroll exactly as it holds for Gusto — a connected payroll system is not permission to run payroll.

  • Do not send a delta to update_payroll. Its values replace. Compute the new total from get_payroll, show both numbers, send the total.

  • Do not write a punch the owner did not state. record_time carries only times the owner gave, and only after they saw the entry.

  • Do not read a pay rate without checking the hours against it. In QuickBooks Payroll one person can carry many rates with zero hours on most of them.

  • Do not bury flags in a summary. Attach each one to the person it affects.

  • Do not batch the flag review. One decision per person per issue.

  • Do not treat a missing connector as a blocker. A spreadsheet in, a validated run sheet out, is a designed path.

  • Do not skip the prior-period comparison. A large move with no explanation is the most useful warning available.

  • Do not stage a run from a payroll source that reports employees but returns none. A connected badge is not data. Say the source is not delivering, and use the spreadsheet path.

  • Do not reproduce an employee's SSN, date of birth, home address, or bank or card number in the run sheet, the chat, or any rendered page. Gusto and QuickBooks Payroll payloads carry them; read past them (../../shared/personal-data.md).

Output

Deliver the validated run sheet per the owner's stored output preference — never default to a markdown file. Check the ## Business context block's Output preference (shared style guide rule, ../../shared/artifact-style.md):

  • Visual artifact (the default): render the run sheet as an HTML page in the house style — headcount, total gross, and cash leaving the account as stat tiles, each person a row with hours and pay in tabular-nums, and a pill on every flag attached to the person it belongs to. Blockers, when Gusto reports them, get their own plain-English panel.

  • docx / md / notion / canva preference: deliver the same content in that form — a DOCX or markdown file, a Notion page created via the connector (named destination, never overwriting), or a Canva Doc created via the Canva connector (a new design each run, named with the date; tables become lists); fall back to the visual artifact if Notion or Canva is not connected — and say that is why.

  • Best for skill: use the visual artifact — this output is a sheet the owner approves person by person.

After the run

The run is staged, the flags are resolved, and the books entry is posted. If cash was the worry going in, the natural next step is "can I make payroll" — /plan-payroll runs the forecast and the invoice chase in front of the next run. Also nearby: "cash forecast" (cash-flow-snapshot) to see what this run does to the next 30 days, and "taxes" (/tax-prep) when quarterly estimates or 1099s are coming due. Offer at most three, and skip any offer the owner already declined this session.

Reference files

  • reference/timesheet_intake.md — Gusto pull, spreadsheet upload, roster and period setup

  • reference/anomaly_rules.md — every check, its threshold, and how it is worded

  • reference/run_sheet_format.md — the run sheet layout and the totals block

  • reference/books_sync.md — journal entry structure and job-cost allocation

  • reference/gotchas.md — the mistakes that shortchange a person or double-pay a period

Using a tool that isn't listed

The connectors named in this skill are the tested paths, not a wall. If the owner wants this flow to use a tool that isn't connected or listed, offer build-connector — it checks the connector directory first and connects through Zapier otherwise, never hand-building against a raw API. Once the connection exists, the tool joins this skill like any other optional connector, under the same approval gates.

Files

reference/timesheet_intake.md

Timesheet Intake

Setting the period, the roster, and getting hours in from wherever they live.


Period setup

Confirm all four before pulling anything:

  • Period start and end — inclusive dates

  • Pay date — when money actually lands

  • Pay frequency — weekly, biweekly, semimonthly, monthly

  • Who is in this run — hourly crew, salaried staff, or both

Biweekly and semimonthly get mixed up constantly. Biweekly is every two weeks, 26 runs a year. Semimonthly is the 15th and the last day, 24 runs. If the owner says "twice a month" and the last period ran the 1st through the 14th, ask rather than assume.

Period boundaries matter most at month end. A week that straddles the 31st has hours in two months for job costing but one paycheck. Keep the pay period whole and let the books sync handle the split.


Roster

Pull the active employee list and compare it to the last run.

ChangeWhat to do
New hire mid-periodConfirm the start date and that hours before it are excluded
TerminationConfirm the final date, unused PTO payout if owed, and whether a final check has different timing under state rules
On leaveConfirm paid or unpaid, and whether PTO is being drawn
Someone paid last period, absent nowFlag it. This is either a termination nobody recorded or a missing timesheet
Someone new with no hire recordFlag it. Never pay a person who is not on the roster

Source: Gusto

Before pulling anything, call list_payroll_blockers and translate any blockers to plain English per Step 2 of the SKILL.md — they decide whether the run stages in Gusto or ships as a run sheet.

Then pull list_employees and list_pay_schedules. Either empty on a company that reports a headcount, or a blockers call that errors, means the source is not delivering — stop the Gusto path and say so; the run sheet path is the outcome.

Pull, tool by tool:

InputToolRead it like this
Hourslist_time_records (period start and end)Check source first. native: shifts with clock-in, clock-out, breaks. third_party: timesheets; get_time_sheet on a timesheet's top-level id for per-day lines. none: no hours here, use the spreadsheet path.
Leave takenlist_time_off_requests (period, status: approved)Each approved day is paid as PTO or sick, not as worked. Pending is a flag. Notes are withheld by the tool; do not ask for them.
Balancesget_time_off_balancesAvailable, accrued, used, pending per policy. Policy names need the time-off-policies scope; without it match on policy uuid. Feeds the over-balance check.
Roster, rates, classificationslist_employees and its compensationsEmployment status and the active flag are separate fields (below).
Prior runlist_payrolls, get_payrollThe last processed run's per-person totals, for the comparison.

A missing punch the owner fills in is written with record_time, per Step 2 of the SKILL.md — owner-stated times only, shown first. The required parameters and the id and re-read traps are in the record_time row of ../../../shared/connector-call-shapes.md; this file does not repeat them.

Rates come from Gusto, never from the timesheet. A rate written on a paper timesheet is a note, not a record.


Source: QuickBooks Payroll

Equal footing with Gusto, not a lesser path. Pull the employee roster, pay type and rate with its frequency, employment status, PTO policy balances, the pay schedule and frequency, and the last completed run for the prior-period comparison. The run detail carries per-employee gross pay, hours, and the source of those hours, so a timesheet-sourced entry is distinguishable from a manual one.

Rates come from the payroll record here too, never from the timesheet.

Three things to get right on this source:

  • Employment status and the active flag are separate fields. Someone flagged active can still be not-on-payroll or on paid leave. Read both before including anyone.

  • One employee can carry many pay rates. Most sit at zero hours. Total from the rate with hours against it, not the first one returned.

  • The employee roster pages. Read every page before totaling; a partial roster silently shorts whoever fell off the end.


Source: spreadsheet upload

The fallback path, and a common one. Small crews run on paper, a shared sheet, or a photo of a whiteboard.

Accept any reasonable layout and map it. Expected columns, however they are named:

  • Employee name or ID

  • Date

  • Time in, time out

  • Break minutes, or a flag that breaks are already deducted

  • Hours, if the sheet is already totaled

  • Job, class, or cost code, if tracked

  • Pay type: regular, PTO, holiday, unpaid

Ask which convention the sheet uses for breaks. A sheet that already nets out lunch, processed as though it doesn't, shortchanges everyone by half an hour a day. This one question prevents the most common upload error there is.

When the sheet is already totaled, still recompute from the punches when punches exist. When only totals exist, use them and say so — the anomaly checks that depend on punch times will not run, and the owner should know which safety nets are off.


Normalizing

Produce one row per person per day:

person | date | in | out | break_min | regular | ot | pto | holiday | job

Rules that keep this honest:

  • A shift crossing midnight belongs to the day it started, unless the owner's policy says otherwise

  • Overlapping entries for one person are never merged automatically — they are flagged

  • A row with an in and no out gets hours recorded as unknown, not estimated

  • Rounding follows the owner's stated policy; with no policy, do not round at all


Worked example

Okonkwo Mechanical, week ending 3/15, five on the crew.

  • Gusto not connected. Ray uploaded a shared sheet with in and out times, breaks not deducted.

  • Confirmed: breaks are 30 minutes unpaid, taken daily, not punched.

  • Roster matched last period except one new apprentice, Dee, started Wednesday.

  • One row for Marcus on 3/12 has a 6:40 AM in and no out.

Reported: 5 people, 214 hours readable, 1 shift with no clock-out (Marcus, Thursday), 1 new hire to confirm hours for (Dee, started 3/12).

Requirements and compatibility

Written for: Claude Code, Claude apps

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Declares allowed tools

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Anthropic
Publisher
Anthropic (Official)
Source
anthropics/knowledge-work-plugins · small-business/skills/payroll-prep · commit e050c2e
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Anthropic.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download payroll-prep.zip