Skill v1.0.0
currentLLM-judged scan90/100version: "1.0.0" name: perforce-receipt-range description: "Use when the user asks to backfill Perforce source-control receipts for a date range, or explicitly invokes @skill perforce-receipt-range with start and end dates."
Perforce Receipt Range
Category: Reporting · Updated: 2026-10-20
Generate source-control receipts for every submitted changelist the logged-in user made within a date range by driving perforce-receipt-create for each CL.
Input
Two required date arguments: start YYYY/MM/DD and end YYYY/MM/DD (inclusive). Example: @skill perforce-receipt-range start 2026/01/01 end 2026/10/12. If either is missing or malformed, print usage and stop; do not guess.
Workspace contract
Before accessing data, validate the selected vault with python -m secret_agents_work_tracking workspace check --vault <path> (or --config <path>). Follow Worky data vault paths, then pass the same resolved perforce_checkins location to each perforce-receipt-create invocation.
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
perforce-receipt-createfor that CL number. Follow that skill fully (it handles noise classification, diffs, stats, and idempotence). - Idempotency is the resume mechanism.
perforce-receipt-createskips identical evidence and stops on a material stable-ID conflict. 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 named
perforce_checkinsoutput folders.
Do not echo individual receipt bodies.