automatelisted
Install: claude install-skill crsmithdev/aleph
# Automate
Search what happened at run time for work an agent or a tool could take over: what keeps going wrong, what
keeps being done by hand, and where a session lost turns. Then fix the findings Chris picks. refit-agents reads
one repo's agent files; automate reads what happened, in every repo on the machine.
The argument sets the scope:
- A window (`3d`, `30d`), or none for 14 days: steps 1 to 5. A **finding** is one cause seen in two or more
sessions (three for work done by hand). Claude Code deletes transcripts after 30 days by default, so a
longer window sees less than it says.
- `session [<id>]`, or none at the end of a session: the [Session](#session) steps, for this session or a past
one.
- `act`, with the findings Chris picks from a report: the [Act](#act) steps.
## Steps
1. **Scan.** Run `bun <skill dir>/scan.ts --days <n>`, and save its JSON in the scratchpad. It reads every
transcript under `~/.claude/projects` (about 15 s for 14 days). Each finding has a `kind`, a `key`, its
`count`, `sessions`, `days`, `cli` (sessions that are Chris's; the rest are headless workers), `first`,
`last`, the raw `sample` and `cwd` of the latest hit, and `ids` (the latest sessions it was seen in). `cut`
counts the findings past `--top`. The scan leaves out commands that only read and errors with no word in
them. Drop hits from your own session: its id is in the path of the transcript it writes now. Done when
the JSON is saved and you have read every fin