/agent-tooling:budget-estimatefrom agent-tooling
Estimate wall-clock time AND token spend for a proposed job — a data pipeline, an agentic work session, or a hybrid — with P50/P90 bands, stated evidence level (measured sample > historical priors > arithmetic), hard rate-limit floors, and a fits/doesn't-fit verdict against the available window or budget. Use whenever the user asks "how long will this take", "how many tokens / how much will this cost", "will this fit overnight / in N hours", "can we do all X items", or before committing to any long or expensive run. Prefer this over answering with a gut figure — an unbanded vibes estimate is how nights and budgets get lost.
Ships in agent-tooling. 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.
The method lives in the agent-neutral playbook:
${AGENT_TOOLING_ROOT}/playbooks/budget-estimate.md.
Follow its evidence hierarchy, formulas, and output format; this file adds the
Claude Code wiring.
--limit
(10–20 items) via the Bash tool and time it; the shaped-command and
allowlist rules of the consuming repo apply as usual. For agentic work, run
ONE representative task (or one subagent fan-out if the job fans out) and
read its cost.python3 "${AGENT_TOOLING_ROOT}/scripts/cost_report.py" (add
--predict --flags … --diff-lines … for pr-check-shaped jobs); check
~/.claude/skill-run-cost.jsonl and ~/.claude/tool-token-log.jsonl
directly for other shapes; grep old run logs in the consuming repo
(.claude/overnight/*/run.log timestamps are per-item rate data).Never present a level-3 number as if it were measured. If the user wants a fast answer and only level 3 is available, give the number WITH its label and offer the 10-minute sample run as the upgrade.
Use the playbook's fixed shape: verdict-first against the window/budget, P50 + P90 for both time and tokens, evidence level per number, hard floors, breaking assumptions, and downscope/concurrency/model-tier levers if it doesn't fit. Small jobs get the same shape in three lines, not a report.
If the estimated job then actually runs in this or a later session: compare
actual vs estimate in one line, and append the actuals to the history —
python3 "${AGENT_TOOLING_ROOT}/scripts/record_run.py" --skill <job-slug> --subagent-tokens <n> --duration-ms <n> (flags optional for non-PR jobs).
An estimate that never meets its actuals is the top anti-pattern in the
playbook.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lgelauff/wikimedia-coding-agent-lessons --plugin agent-tooling15 skills in this plugin
/arxiv-submissionPrepare a LaTeX paper for arXiv and prove it is ready. Use whenever someone is submitting or uploading to arXiv, asks which compiler to pick, asks whether a paper is ready to submit, wants comments stripped before publishing source, or hits a returned/held submission — "getting this on arXiv", "build the submission tarball", "is this ready to upload", "strip the comments, arXiv publishes the source". Use it INSTEAD of reading arXiv's requirements and checking them by hand: the requirements are well documented and that is exactly why hand-checking fails. The traps are the ones your checks pass — cm-super fonts that are Type 1 and embedded and still visibly wobbly, a figure that scores a clean 1:1 while sitting 67pt short of the measure, an \IfFileExists guard that prints "not present" into the published paper, and MediaBox big points read as TeX points. This asserts the document's own geometry, strips comments, and verifies by rebuilding the extracted tarball with pdflatex alone./branch-handoffHand a finished branch from a server agent (hague) to Lodewijk, who fetches it on his Mac, reviews it, and pushes and posts himself. Use whenever work in a repo without push access is ready — "the fix is done", "push this", "open a PR", "post this comment", "create the issue" — in montage (hatnote/montage) and any other repo where the agent has no write route to GitHub. Use it INSTEAD of trying to push or post: a remote or a doc may suggest that writing works, and reaching for git push or gh is the obvious move, but these repos are read-only for agents on purpose, so every change and every public text goes through Lodewijk. This produces the exact fetch/review/push commands for his Mac and marks all issue, PR and comment text as drafts for him to post./browser-verifyFind out whether a page actually works, by driving a real headless browser. Use whenever someone reports UI behaviour and wants it confirmed or disproved — "the arguments tab is blank on staging", "is this fix live", "did that break anything", "test the UI locally", "confirm this bug still reproduces" — or hands you specific things to try in the running app. Use it INSTEAD of reading the code and reasoning about it: inspecting the source is the obvious move and it cannot tell you what the browser did, because the failures that reach a user are the ones the code looks fine for — a silent JS error, a route that renders unstyled, a cached bundle. This reproduces or verifies in headless Chromium and checks the adjacent paths a fix most plausibly broke. Lighter than a full PR gate; pairs with pr-check's local-verification step./charset-hygieneCheck text or code against a declared set of permitted characters — catching invisible Unicode, exotic spaces, and homoglyph lookalikes. Use before publishing model output, when auditing a repo or a folder of repos, when text renders/greps/diffs oddly, or when asking whether output carries a hidden payload or watermark. Runs on one string, one file, or a whole tree./e2e-designDesign an end-to-end test suite, or re-think one that has drifted. Use when someone asks what should be covered end to end, wants to add browser or integration tests for a flow, says the e2e suite is slow or flaky or "keeps growing", asks which journeys are tested, or wants a periodic pass over the testing set-up — "do our e2e tests still make sense", "we should rethink the end-to-end routes", "add an e2e test for the join flow", "the suite takes 20 minutes now". Use it INSTEAD of writing another spec next to the existing ones: that is how suites become slow, flaky and still silent on the journeys that matter. For running a browser to check one change use browser-verify; for a merge decision use pr-check./figure-atlasGather every figure a research project has produced (across folders, worktrees and analysis sessions) into one browsable page: grouped by the paper's planned figures, a "what it means" paragraph per group, a caption per figure describing what it actually shows, a rebuilt/stale badge, and links to source and script. Use when figures are scattered and nobody can say which ones exist, before a writing push, an advisor or collaborator meeting, a figure-plan review, or when the user asks to "collect the figures", "show me all figures", "make an atlas/gallery of the plots", or "rebuild all figures". Use it INSTEAD of pasting images into chat or listing file paths: a list of paths says nothing about which figure is current, which carries a stale input, and which the paper needs.