Skill v1.0.0
currentLLM-judged scan90/100version: "1.0.0" name: checkin-receipt-range description: Use when the user asks to backfill or generate checkin receipts for every Perforce changelist in a date range, or explicitly invokes @skill checkin-receipt-range with start and end dates. Drives checkin-receipt-create across all submitted CLs in the window, idempotently.
Checkin Receipt Range
Generate checkin receipts for every submitted changelist the logged-in user made within a date range, by driving checkin-receipt-create for each CL. This is the mass-populate engine for backfilling Checkins/perforce/.
Input
Two required date arguments: start YYYY/MM/DD and end YYYY/MM/DD (inclusive). Example: @skill checkin-receipt-range start 2026/01/01 end 2026/10/12. If either is missing or malformed, print usage and stop; do not guess.
Perforce Access
- Confirm
p4 inforeturns aUser name; if not, stop and tell the user top4 login. - The author is the logged-in user.
Listing Changelists
The p4 changes spec-form date filter is unreliable on this server. Use the reliable pattern:
- Run
p4 changes -u <user>(no-t, no spec). This returns every CL for the user, newest first, one per line:
Change <cl> on YYYY/MM/DD by <user>@<client> [*pending*] '<comment>'
- Parse each line into:
cl(number),date(YYYY/MM/DD),status(pending if the line contains*pending*, else submitted),client,comment. - Keep only lines where
statusis submitted ANDstart <= date <= end. (Pending CLs are excluded from backfill by default; mention how many pending CLs were skipped.) - Sort the kept CLs ascending by CL number (oldest first) so receipts are produced in chronological order.
Execution
- For each CL in order, invoke
checkin-receipt-createfor that CL number. Follow that skill fully (it handles noise classification, diffs, stats, idempotency, and the cost-ledger row). - Idempotency is the resume mechanism.
checkin-receipt-createskips any CL that already has a receipt, so an interrupted run can be re-invoked over the same range and will only do the remaining CLs. Do not pre-check for existence here; let the single-CL skill own that. - Chunking: if the range spans more than ~40 CLs, process in monthly sub-batches and report progress after each batch (e.g.
2026/03: 34 done, 2 noise, 0 skipped-existing). This keeps long backfills resumable and gives the user visibility. - Error handling: if
p4 describefails for a CL (e.g. it was deleted), logCL <cl>: describe failed (<reason>) - skipping, continue with the next CL, and list all failures in the final summary. Never abort the whole run on one bad CL.
Cost Guidance
This is the expensive path (full diffs per CL). Recommend a mid-tier model (Sonnet-class) for months with substantive code CLs. For a month that is mostly mechanical (stream/binary) CLs, a low-tier model is sufficient. State the recommended model before starting a large run so the user can choose.
Output
After the run, print a summary:
- the date range processed,
- total submitted CLs in range,
- receipts written (new), receipts skipped (already existed), noise stubs written, and failures,
- the output folder(s) under
Checkins/perforce/.
Do not echo individual receipt bodies.