agentsclimarketplace

Recipe correct worklog

Skill treramey/drag/skills/recipe-correct-worklog

Correct one Tempo worklog with Drag. Use when the user asks to replace an exact numeric worklog ID through an explicitly authorized, create-first non-atomic workflow.From its SKILL.md

Install
npx -y skills add treramey/drag --skill recipe-correct-worklog

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 27 days oldThe repository was created 27 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.9 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

Correct Worklog

This is a portable, host-neutral recipe. Use coding-agent context only as evidence and follow the installed Drag contract.

Required Drag skills

Evidence requirements

  • Require the original worklog's exact numeric ID. Never select by row position, inferred ordering, a guessed ID, or stale display text.
  • Retrieve the current original entry and derive a complete replacement payload from explicit correction instructions and verified current values.
  • Preserve every original work attribute in the replacement attributes object. Confirm that the original has no billable seconds or other accounting fields that drag log cannot represent; if it does, stop rather than silently discarding them and use a separately reviewed generic Tempo create workflow capable of preserving the complete payload.
  • Retain the exact original ID, reviewed replacement payload, and new replacement ID throughout execution and recovery reporting.

Workflow

  1. Retrieve the exact original Run drag --output json schema tempo.worklogs.get-worklog-by-id --resolve-refs, construct the declared path parameters for the exact numeric ID, then run drag --output json tempo worklogs get-worklog-by-id --params "$PARAMS_JSON". Display and retain the complete current original as the reviewed snapshot. Preserve all work attributes in the replacement and stop if its returned ID does not match or if it contains billable seconds or another field that drag log cannot preserve.
  2. Build and preview the replacement Build the complete structured replacement as WORKLOG_JSON, then run printf '%s\n' "$WORKLOG_JSON" | drag --output json log --json - --dry-run. Verify every normalized material field against the intended correction.
  3. Preview deletion of the original Build DELETE_JSON with only the exact original ID and run printf '%s\n' "$DELETE_JSON" | drag --output json delete --json - --dry-run. Display the replacement preview and deletion preview together before requesting authorization.
  4. Explain risk and obtain exact authorization Explain that replacement is non-atomic. Authorization must identify the exact original ID and the complete replacement payload shown in both previews. A general audit, correction suggestion, or approval of different values does not authorize execution.
  5. Revalidate, then create the replacement first Immediately before creation, retrieve the exact original ID again and compare every returned field with the reviewed snapshot. If it changed, stop and require new previews and authorization. Record the exact IDs of any existing selected-day worklogs that already match the replacement payload, then run printf '%s\n' "$WORKLOG_JSON" | drag --output json log --json -. An exit code 2 or another confirmed pre-request failure means the original is not deleted and no correction was applied. An exit code 1, timeout, lost response, or other uncertain runtime failure may have committed the create: do not delete the original or claim failure; search the selected day again and retrieve by exact ID only a newly observed matching candidate to reconcile the state.
  6. Verify and retain the replacement ID Retain the returned or reconciled replacement worklog ID and retrieve that exact ID to verify its normalized fields. If an uncertain creation cannot be reconciled to exactly one verified replacement, keep the original and report the observed candidates as a possible recoverable duplicate instead of deleting any entry.
  7. Revalidate again, then delete the original last Immediately before deletion, retrieve the exact original ID again and compare every field with the reviewed snapshot. If it changed, do not delete it; report the verified replacement and changed original as a recoverable duplicate requiring a newly reviewed cleanup. If unchanged, run printf '%s\n' "$DELETE_JSON" | drag --output json delete --json -. After any deletion error or uncertain response, re-fetch both exact IDs before reporting: if only the replacement exists, report that the correction completed despite the response; if both exist, report a recoverable duplicate with both IDs and an exact cleanup proposal; for any other observed state, report it without claiming full success. If deletion succeeds, still confirm that the replacement exists and the original does not before reporting success.

Stop conditions

  • The exact numeric original ID is absent, inferred, stale, or does not match the retrieved entry.
  • The original contains billable seconds or another field that drag log cannot preserve, or its work attributes cannot be represented completely in the replacement.
  • The replacement payload is incomplete, ambiguous, or differs from its dry run.
  • Either dry run fails or exact authorization for the displayed ID and payload is absent.
  • The original changes after review, or replacement creation cannot be reconciled and verified; never delete the original in either case.

Authorization policy

Execute only the exact create-then-delete pair authorized after both previews. Authorization does not transfer to changed IDs or payloads. Any changed material field requires both previews and authorization again.

Safety notes

  • Create-first ordering prefers a recoverable duplicate over lost time; the two mutations are not atomic.
  • A confirmed pre-request creation failure leaves the original intact. An uncertain create or delete response must be reconciled from exact-ID reads before describing the resulting state.
  • Never claim full success unless the replacement is verified and deletion of the exact original ID succeeds.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,782. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.