/freshbooks:freshbooks-timesheetfrom freshbooks
Push billable hours computed from Claude Code sessions into FreshBooks time entries. Use when asked to "update my timesheet", "log my hours in FreshBooks", "push time to FreshBooks", "sync my timesheets", or to bill tracked hours for a client or date range. Requires the freshbooks MCP server; the hours-report skill ships alongside it.
Ships in freshbooks. 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.
Turns the hours-report skill's per-day billable figures into FreshBooks time entries via
the freshbooks MCP tools. The contract: nothing is pushed until the person has seen
and approved the exact entries. FreshBooks time entries feed invoices; a silent wrong
number here becomes a billing dispute later.
Follow the hours-report skill to scope the request and run its script — same
date-range and project-selection rules, but with --json. It ships inside this plugin,
so it is always present; ${CLAUDE_PLUGIN_ROOT} resolves to wherever the plugin was
installed and is the only correct way to reach it.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/hours-report/scripts/session_hours.py" \
--since 2026-08-18 --label myclient=-SomeProject --json
If CLAUDE_PLUGIN_ROOT is unset, this skill is running from a checkout rather than an
installed plugin; use skills/hours-report/scripts/session_hours.py relative to the repo
root instead.
Use each day's billable_min (already rounded per that skill's method) as the minutes to
log. Keep attention_mid_min and wall_min on hand for the review table so the person
can sanity-check what the rounding did.
If auth might be stale, call whoami first; if it fails, run the auth flow from the
server README (get_auth_url → approve in browser → submit_auth_code).
Call get_mapping. For any hours-report label with no mapping, call list_projects,
propose the closest title match, and confirm with the person before saving with
set_mapping — a wrong mapping bills the wrong client. Mappings persist in
~/.freshbooks-mcp/mapping.json, so this is usually a first-run-only step.
Then pick the service (FreshBooks calls it a task) for each project with
list_services(project_id). Every entry you push carries one: an entry logged without a
service shows up untasked on the invoice. A project with a single service (typically
Development) needs no question; when a project has several, ask which one applies —
per project, or per day if the work genuinely differed. Pass it to log_time as
service (the name, matched case-insensitively) or service_id.
Call list_time_entries for the date range. Entries marked owned_by_ledger were
created by this workflow and will be updated in place; anything else is hand-entered and
will never be touched (the server enforces this). If hand-entered time already covers a
day you are about to log, flag the overlap in the review table instead of silently
double-billing the day.
Show a table before pushing anything:
| Date | Project | Service | Hours | Action | Note |
|---|
billable_min; also state the raw midpoint total so the rounding is visible.Then stop and ask for approval. Apply any edits (drop a day, reword a note, adjust hours) before pushing. Never treat the original "update my timesheet" request as approval of the specific numbers.
Call log_time with the approved entries, each carrying its service. Report the per-entry results (created /
updated / unchanged / failed, with FreshBooks entry ids), the total hours logged, and
any failures with their errors. If an entry failed, fix and retry just that entry rather
than resubmitting the whole batch.
Only when the person asks for an invoice, and only after the entries are approved and
pushed in step 5: call create_invoice_from_time with the project's label and the same
date range (line_style "per_entry" unless they ask for one grouped line per service,
"single"). Show the draft back: invoice number, client, total, the lines, and whether
linked is true and billed_after matches the entry count (if not, say the time entries
may still show as unbilled). The invoice stays a Draft. Call mark_invoice_sent only on
an explicit ask, and say plainly that it changes the status only; nothing is emailed, so
the person sends it from FreshBooks.
started_at 09:00 local. Duration is what FreshBooks
invoices care about; the start time is cosmetic.delete_time_entry only works on entries this workflow created. For anything
else, point the person at the FreshBooks UI.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub tritchey/freshbooks-mcp --plugin freshbooks