Remove old lookagain review runs, keeping today's results by default
Scanned 2/12/2026
Install via CLI
openskills install HartBrook/lookagain---
name: tidy
description: Remove old lookagain review runs, keeping today's results by default
disable-model-invocation: true
allowed-tools: Glob, Bash(rm -rf .lookagain/????-??-??T??-??-??)
argument-hint: "[key=value ...]"
---
# Tidy Old Review Runs
You are cleaning up old review results from `.lookagain/`.
## Parse arguments
The user may pass key=value pairs after the command name. The raw argument string is:
> $ARGUMENTS
If the argument string is empty or blank, the user provided no overrides — use all defaults. Parse `key=value` pairs from the string. For any key not provided, use the default.
| Key | Default | Description |
|---|---|---|
| `keep` | `1` | Keep runs from the last N days |
| `all` | `false` | Remove all runs including today's (`true` or `false`) |
## Process
1. Use Glob to list all directories under `.lookagain/` matching the pattern `.lookagain/????-??-??T??-??-??/`.
2. If no run directories exist, tell the user there's nothing to tidy and stop.
3. Determine which runs to remove:
- If the resolved `all` value is `true`, remove ALL run directories.
- Otherwise, calculate the cutoff date by subtracting the resolved `keep` value (in days) from today's date. Remove only run directories whose date portion (the `YYYY-MM-DD` prefix of the directory name) is strictly before the cutoff date.
4. Before deleting, validate each directory name matches the exact pattern `YYYY-MM-DDTHH-MM-SS` (all digits in the right positions). Skip any directory that doesn't match.
5. For each validated run directory to remove, use Bash to delete it: `rm -rf .lookagain/<run-id>`
6. Report what was done:
```
## Tidy Complete
Removed N run(s): <list of run-ids removed>
Kept M run(s): <list of run-ids kept>
```
If nothing was removed, say so:
```
## Nothing to Tidy
All N run(s) are within the keep window.
```
No comments yet. Be the first to comment!
Playbook for creating and editing uCoz landing pages via MCP tools (`templates_tool`, `ftp_tool`, `modules_tool`). Use for tasks such as: "build a landing page", "update the homepage as a landing page", "create a promo page on the homepage", "add a lead form / menu / SEO to the homepage". Homepage: `page_list`, `page_get`; first publish — `page_update` with full `page_tmpl`; HTML edits after generation — `patch_template` (module_id=2, template_id=1), not `update_template`. Activate the mail f...