Skip to content

Commit 5d1120a

Browse files
gershamclaude
andcommitted
Skill: keep the project tidy
The operating skill gains "Keep the project tidy": reuse before creating, track the IDs a task creates and delete its drafts, superseded playlists, replaced uploads, test apps, check webhooks and abandoned operations before finishing, delete a playlist before the media only it used, remove only what the task created or the user names, and report what was removed. operations.md gains "Cleaning up" with the delete commands and their refusals (a playlist any screen still uses, archived included; media and apps a screen shows; screen delete only when deletable). commands.md lists app delete. The dashboard-image skill deletes the media a refresh replaced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent cd4076c commit 5d1120a

8 files changed

Lines changed: 88 additions & 2 deletions

File tree

‎plugins/screenrig/skills/screenrig-dashboard/SKILL.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,6 @@ existing [screenrig skill](../screenrig/SKILL.md). Use its bundled
6767
normal playlist workflow. The output is already lossy delivery WebP, so avoid a
6868
second encoding pass. Preserve unrelated playlist content. Follow that skill's
6969
project, target, retry, and playback-verification rules. A local image is not
70-
proof of publication or physical display.
70+
proof of publication or physical display. On a refresh, once the new image is playing,
71+
delete the media it replaced so the project does not fill with old renders
72+
(see [cleaning up](../screenrig/references/operations.md#cleaning-up)).

‎plugins/screenrig/skills/screenrig/SKILL.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,24 @@ no SDK call, `log()` included, while `readyState` is not `active`; see
665665
[SDK startup](references/applications.md#start-the-sdk-in-this-order). The [command inventory](references/commands.md)
666666
provides a compact reference for supported operations.
667667

668+
## Keep the project tidy
669+
670+
The project is the customer's account: leave only what they asked for.
671+
672+
- Reuse before creating: update the existing playlist rather than adding one
673+
per revision, and rerun an interrupted upload, which returns its media.
674+
Tag a task's uploads.
675+
- Track the IDs you create. Before finishing, delete drafts, superseded
676+
playlists, test or replaced uploads, rejected generations, test apps, check
677+
webhooks and abandoned operations.
678+
- Delete a playlist before the media and apps only it used: media and app
679+
deletes check only what screens show now. A playlist delete is refused while
680+
any screen, archived included, uses it; reassign that screen first.
681+
- Remove only what you created in this task or what the user names; ask before
682+
deleting anything else. Report what you created and removed, with IDs.
683+
684+
See [cleaning up](references/operations.md#cleaning-up).
685+
668686
## Resolve issues and ask for support
669687

670688
Own diagnosis and resolution for the user: inspect the actual error and current

‎plugins/screenrig/skills/screenrig/references/commands.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ app update <id> <directory> [--expect-rev REVISION] [--no-wait] [--poll-ms MS]
232232
app rename <id> --name NAME [--expect-rev REVISION]
233233
app list
234234
app show <id>
235+
app delete <id> [--expect-rev REVISION]
235236
media generate (--prompt TEXT | --prompt-file FILE) [--aspect-ratio RATIO] [--quality low|medium|high] [--tag TAG]
236237
[--no-progress]
237238
media upload <file> [--content-type TYPE] [--tag TAG] [--no-wait] [--poll-ms MS]

‎plugins/screenrig/skills/screenrig/references/operations.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,3 +414,25 @@ the user; do not create replacement conversations to bypass their human request.
414414

415415
End a resolved conversation with `support close --conversation-id ID`. Its history
416416
remains readable; staff can reopen it. Start a new conversation for a new issue.
417+
418+
## Cleaning up
419+
420+
```bash
421+
screenrig screen assign scr_SCREEN --playlist-id pl_KEEP
422+
screenrig playlist delete pl_OLD
423+
screenrig media delete med_OLD
424+
screenrig app delete app_OLD
425+
screenrig screen archive scr_TEST
426+
screenrig operations cancel op_ABANDONED
427+
screenrig invitations revoke inv_UNUSED
428+
screenrig webhooks delete whk_CHECK
429+
```
430+
431+
`playlist delete` is refused while any screen, archived or pending included,
432+
assigns, schedules or takes over with it. `media delete` and `app delete` (every
433+
release; `application_in_use`) are refused while a screen shows the item, not
434+
while another playlist references it: check with `playlist show` first. On a
435+
recurring refresh, delete the replaced media once the new one plays; on
436+
`resource_conflict`, retry at the next refresh. `screen delete` works only when
437+
`screen show` reports `deletable: true`; otherwise archive. Delete local renders and previews you wrote unless the user
438+
wants them.

‎skills/screenrig-dashboard/SKILL.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,6 @@ existing [screenrig skill](../screenrig/SKILL.md). Use its bundled
6767
normal playlist workflow. The output is already lossy delivery WebP, so avoid a
6868
second encoding pass. Preserve unrelated playlist content. Follow that skill's
6969
project, target, retry, and playback-verification rules. A local image is not
70-
proof of publication or physical display.
70+
proof of publication or physical display. On a refresh, once the new image is playing,
71+
delete the media it replaced so the project does not fill with old renders
72+
(see [cleaning up](../screenrig/references/operations.md#cleaning-up)).

‎skills/screenrig/SKILL.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,24 @@ no SDK call, `log()` included, while `readyState` is not `active`; see
665665
[SDK startup](references/applications.md#start-the-sdk-in-this-order). The [command inventory](references/commands.md)
666666
provides a compact reference for supported operations.
667667

668+
## Keep the project tidy
669+
670+
The project is the customer's account: leave only what they asked for.
671+
672+
- Reuse before creating: update the existing playlist rather than adding one
673+
per revision, and rerun an interrupted upload, which returns its media.
674+
Tag a task's uploads.
675+
- Track the IDs you create. Before finishing, delete drafts, superseded
676+
playlists, test or replaced uploads, rejected generations, test apps, check
677+
webhooks and abandoned operations.
678+
- Delete a playlist before the media and apps only it used: media and app
679+
deletes check only what screens show now. A playlist delete is refused while
680+
any screen, archived included, uses it; reassign that screen first.
681+
- Remove only what you created in this task or what the user names; ask before
682+
deleting anything else. Report what you created and removed, with IDs.
683+
684+
See [cleaning up](references/operations.md#cleaning-up).
685+
668686
## Resolve issues and ask for support
669687

670688
Own diagnosis and resolution for the user: inspect the actual error and current

‎skills/screenrig/references/commands.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ app update <id> <directory> [--expect-rev REVISION] [--no-wait] [--poll-ms MS]
232232
app rename <id> --name NAME [--expect-rev REVISION]
233233
app list
234234
app show <id>
235+
app delete <id> [--expect-rev REVISION]
235236
media generate (--prompt TEXT | --prompt-file FILE) [--aspect-ratio RATIO] [--quality low|medium|high] [--tag TAG]
236237
[--no-progress]
237238
media upload <file> [--content-type TYPE] [--tag TAG] [--no-wait] [--poll-ms MS]

‎skills/screenrig/references/operations.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,3 +414,25 @@ the user; do not create replacement conversations to bypass their human request.
414414

415415
End a resolved conversation with `support close --conversation-id ID`. Its history
416416
remains readable; staff can reopen it. Start a new conversation for a new issue.
417+
418+
## Cleaning up
419+
420+
```bash
421+
screenrig screen assign scr_SCREEN --playlist-id pl_KEEP
422+
screenrig playlist delete pl_OLD
423+
screenrig media delete med_OLD
424+
screenrig app delete app_OLD
425+
screenrig screen archive scr_TEST
426+
screenrig operations cancel op_ABANDONED
427+
screenrig invitations revoke inv_UNUSED
428+
screenrig webhooks delete whk_CHECK
429+
```
430+
431+
`playlist delete` is refused while any screen, archived or pending included,
432+
assigns, schedules or takes over with it. `media delete` and `app delete` (every
433+
release; `application_in_use`) are refused while a screen shows the item, not
434+
while another playlist references it: check with `playlist show` first. On a
435+
recurring refresh, delete the replaced media once the new one plays; on
436+
`resource_conflict`, retry at the next refresh. `screen delete` works only when
437+
`screen show` reports `deletable: true`; otherwise archive. Delete local renders and previews you wrote unless the user
438+
wants them.

0 commit comments

Comments
 (0)