absorb-tickets
Skill34 starsChanged 4 months agoMITView on GitHub
Absorb domotion svg-scrubber `.ticket` files (and their frame PNGs) from the repo root into Hot Sheet tickets, then move the originals to the Trash. Use when the user has svg-scrubber review exports (`*.ticket` + `demo-*.png`) sitting in the project root to file.
- Sends data out
In this repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/glassbox.mdcCursor rule
- .cursor/rules/hotsheet-instructions.mdcCursor rule
- .cursor/rules/hotsheet.mdcCursor rule
- .cursor/rules/hs-bug.mdcCursor rule
- .cursor/rules/hs-feature.mdcCursor rule
- .cursor/rules/hs-investigation.mdcCursor rule
- .cursor/rules/hs-issue.mdcCursor rule
- .cursor/rules/hs-requirement-change.mdcCursor rule
- .cursor/rules/hs-task.mdcCursor rule
- hotsheetSkill
- hotsheet-workerSkill
- hs-bugSkill
- hs-featureSkill
- hs-investigationSkill
- hs-issueSkill
- hs-requirement-changeSkill
- hs-taskSkill
- analyze-code-qualitySkill
- check-code-hygieneSkill
- check-requirements-against-codeSkill
- glassboxSkill
- hotsheetSkill
- hotsheet-workerSkill
- hs-bugSkill
- hs-featureSkill
- hs-investigationSkill
- hs-issueSkill
- hs-requirement-changeSkill
- hs-taskSkill
- kerf-appSkill
- prep-major-releaseSkill
- technical-changelogSkill
- ux-reviewSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Import svg-scrubber .ticket files into Hot Sheet, then trash the originals.
- Very specific: line 46
Create a Hot Sheet ticket from title / category / details.
- Very specific: line 64
If there are no .ticket files, report "Nothing to absorb — no .ticket files found." and stop.
- Very specific: line 121
Call hotsheet_add_attachment with { "ticket_id": <id>, "path": "<pngPath>" } (the tool reads the bytes and posts multipart — the image …
- Very specific: line 142
If trash is unavailable, fall back to mv "<file>" ~/.Trash/.
- Very specific: line 163
One Hot Sheet ticket per
.ticketfile: Don't batch multiple issues into one ticket — each scrubber export is a distinct reviewer-reported … - Very specific: line 165
If a Hot Sheet request fails (connection refused / 403), re-read .hotsheet/settings.json for the current port and secret, warn the user, …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- absorb-tickets-skill-version: 1 -->Import svg-scrubber .ticket files into Hot Sheet, then trash the originals.
Background
The domotion svg-scrubber tool, run in review mode, lets a reviewer scrub
an animated SVG (e.g. assets/demo.svg), mark a problem at a specific frame /
time-range / region, and export it. Each exported issue lands in the project
root as a pair:
<slug>-<stamp>.ticket— a JSON payload (tool: "svg-scrubber",version: 1)<slug>-<stamp>.png— the captured frame snapshot (referenced by the ticket'sframePngfield)
The .ticket JSON is designed to map straight onto Hot Sheet: its title,
category, and details fields drop directly into hotsheet_create_ticket
(the category enum — bug / issue / feature / task / investigation /
requirement_change — is already exactly Hot Sheet's category set, so no
mapping is needed). The details field is pre-rendered Markdown containing the
SVG path, frame time, selected range, and region coordinates.
Example .ticket:
{
"tool": "svg-scrubber",
"version": 1,
"title": "unnecessary crossfade",
"category": "bug",
"svgName": "demo",
"framePng": "/Users/westphal/Documents/glassbox/demo-1782875621671.png",
"details": "…markdown with SVG file / frame time / range / region…"
}What this skill does
For every *.ticket in the repo root, in createdAt order:
- Create a Hot Sheet ticket from
title/category/details. - Attach the corresponding frame PNG (
framePng) to the created ticket. - Move the
.ticketand its PNG to the macOS Trash.
Then report a summary of what was absorbed.
Procedure
1. Find the tickets
The repo root is the directory containing .hotsheet/ (this project:
/Users/westphal/Documents/glassbox). List the pending exports:
cd "$(git -C "$PWD" rev-parse --show-toplevel 2>/dev/null || echo ~/Documents/glassbox)"
ls -1 *.ticket 2>/dev/null | sortIf there are no .ticket files, report "Nothing to absorb — no .ticket
files found." and stop.
2. Absorb each ticket
Process the tickets oldest-first (sort by the JSON createdAt). For each file,
read its fields with jq (validate tool == "svg-scrubber" first — skip and
warn on anything else):
f=demo-1782875621671.ticket
jq -r '.tool, .title, .category, .svgName, (.framePng // ""), .details' "$f"Then, per ticket:
Create the Hot Sheet ticket (preferred — MCP tool, since the channel is connected). Prefix the title with the SVG name for scannability, since many of these titles look alike in the list:
Call
hotsheet_create_ticketwith:title:"<svgName>: <title>"(e.g."demo: unnecessary crossfade")category: the ticket'scategoryverbatimdetails: the ticket'sdetails, with the frame-snapshot line rewritten (see below)up_next:false(these are freshly-filed incoming issues; let the maintainer prioritize them)
Rewrite the frame-snapshot line. The scrubber
detailsends with a line like- **Frame snapshot:** `/abs/path/demo-<stamp>.png`— an absolute path to a file this skill is about to move to the Trash, so that path would be dead in the ticket. Since the PNG gets attached (durable copy), replace that line so it points at the attachment instead:- **Frame snapshot:** `demo-<stamp>.png` _(attached)_(basename only, no path). Leave the
- **SVG file:**line's absolute path as-is — that file is not trashed.Fallback (curl) — re-read
.hotsheet/settings.jsonfor the currentsecretif the channel isn't available:curl -s -X POST http://localhost:4174/api/tickets \ -H "Content-Type: application/json" \ -H "X-Hotsheet-Secret: <secret>" \ -d '{"title": "<svgName>: <title>", "defaults": {"category": "<category>", "up_next": false}, "details": "<details>"}'Capture the returned ticket id / number.
Attach the frame PNG. Resolve the PNG path from the ticket's
framePngfield; if that's null/empty, fall back to the sibling<basename>.pngnext to the.ticket. Only attach if the file exists on disk.Call
hotsheet_add_attachmentwith{ "ticket_id": <id>, "path": "<pngPath>" }(the tool reads the bytes and posts multipart — the image becomes the durable copy, so it's safe to trash the original next). If the PNG is missing, still create the ticket but note the missing image in your summary.Fallback (curl):
curl -s -X POST http://localhost:4174/api/tickets/<id>/attachments \ -H "X-Hotsheet-Secret: <secret>" \ -F "file=@<pngPath>"Trash the originals — ONLY after the ticket is confirmed created (has an id) and, if a PNG existed, it was attached. Use the macOS
trashCLI so the files land in the Trash with Put Back support (neverrm):trash "<basename>.ticket" "<pngPath>"If
trashis unavailable, fall back tomv "<file>" ~/.Trash/.Sandbox note:
trashwrites to~/.Trash, which is outside the command sandbox's writable paths, so the move fails withafpAccessDeniedunder the sandbox. Run this trash step with the sandbox disabled (or add~/.Trashto the sandbox write allowlist via/sandbox). Everything else — jq, ticket creation, attachment — runs fine inside the sandbox.
3. Report
Summarize: for each absorbed .ticket, the new Hot Sheet ticket number + title,
whether a PNG was attached, and that both originals were trashed. Note any
skipped files (non-scrubber JSON, missing PNG, create/attach failures — leave
those originals in place, do not trash them).
Safety rules
- Never trash a file whose Hot Sheet ticket wasn't successfully created. The Trash is recoverable, but a silently-dropped issue is not.
- Attach before trashing. The Hot Sheet attachment is the durable copy of the frame; the on-disk PNG is disposable once attached.
- One Hot Sheet ticket per
.ticketfile. Don't batch multiple issues into one ticket — each scrubber export is a distinct reviewer-reported problem. - If a Hot Sheet request fails (connection refused / 403), re-read
.hotsheet/settings.jsonfor the currentportandsecret, warn the user, and stop before trashing anything.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

