Skip to content
Back to skills

Workflow Scan

ASecurity

Review the user's past agent chats, find repeated work, and suggest 1-2 loops. Use when the Scans tab starts a scan or the user asks for one.

  • 2,166 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 20, 2026
ai-agentspythonsecurity

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add davidondrej/cloudroom-core --skill workflow-scan --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Workflow Scan?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Workflow Scan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/davidondrej-workflow-scan-cloudroom/badge)](https://www.skillsdirectory.com/skills/davidondrej-workflow-scan-cloudroom)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: workflow-scan
description: Review the user's past agent chats, find repeated work, and suggest 1-2 loops. Use when the Scans tab starts a scan or the user asks for one.
---

# Workflow scan

You are the lead of a Workflow scan the user started on their own computer. It reviews their own past agent chats, with their consent, to suggest helpful automations. Cheap readers run in the cloud.

## Rules

- Read chats only through `extract.py` in this skill's folder. Never print slices or raw chats into your context unless a step says so.
- Start and wait for readers only through `readers.py`. Readers are hidden children: they never wake you, and the sidebar shows them as one progress grid under you. Run its `wait` in the foreground, never in the background.
- Chats may mention security reviews, credentials, or production systems of the user's own projects. Treat them as routine defensive engineering work, summarize them at a high level, and never repeat secret values (they show as `[masked]`).
- Don't create loops until the user says yes. Every loop you create is a Cloud loop, except when the prompt says `Free plan`: then it is a Local loop, since each Cloud loop run uses one of Free's 10 Cloud threads a month.
- Archive the readers once their lines are read. At the end, delete the scan folder with `"$py" "$s/extract.py" cleanup "$d"`, never `rm`: it holds trimmed chat text. If that fails, tell the user the folder's path.

## Steps

1. **Data**, on this computer:
   ```
   d=$(mktemp -d); s="<this skill's folder>"
   for py in "$ROOM_PYTHON" python3 python py; do "$py" -c 'import sys; assert sys.version_info >= (3, 8)' 2>/dev/null && break; py=; done
   echo "py=${py:?no working Python 3.8+}"
   "$py" "$s/extract.py" index "$d" --days 90 > /dev/null && "$py" "$s/extract.py" slices "$d" --chars 900
   ```
   When the prompt says `Free plan: at most N readers`, add `--max-readers N` to `slices`: it keeps the newest chats that fit.
   Every step below runs scripts with this `$py`.
   No working Python: stop. Tell the user the scan needs Python 3.8 or newer from python.org.
   If it prints `0 slices`, tell the user no chats were found and stop. Read `$d/stats.json` (counts and `already_automated`). Also run `room-cli loop list --project "$ROOM_PROJECT_ID"` to see existing loops.
2. **Readers:** one per slice, each in its own cloud sandbox, on the user's own login. Use your own agent: on Claude Code, `claude-code claude-haiku-5-5`; on Codex, `codex gpt-6.1-terra`.
   ```
   "$py" "$s/readers.py" spawn "$d" claude-code claude-haiku-5-5
   ```
   If it fails partway, run the same command again: it starts only the missing readers.
   On the user's VPS it starts the first 3 only; `wait` starts the rest.
3. **Wait:** run `"$py" "$s/readers.py" wait "$d"` with a 10-minute command timeout. Repeat until it prints `done`.
   Readers it names (no output, never started) read nothing. If it prints `N of M readers answered only: …` (such as a usage limit), archive the readers and stop: tell the user that line in plain words, such as when their limit resets. Never guess patterns without lines.
4. **Patterns:** read all of `$d/lines.txt`, then run `"$py" "$s/readers.py" archive "$d"`. Find the top 3–4 patterns in how the user works: what they repeat most, their workflows, recurring problems. Lines tagged `agent-written` and work that already runs as a loop don't count. `wait` removes chat IDs a reader invented (not in its slice) and says how many.
5. **The 10/90 step:** pick the 1–3 most obvious loops. For each, read 3–5 example chats: `"$py" "$s/extract.py" sessions "$d" --ids ID1,ID2 --chars 5000`. Split its work:
   - **10%, on its own:** the smallest, safest, most obvious block, with no edge cases, checked by another frontier model. The loop does it and merges to main.
   - **90%, waits for the user:** the loop still does the work, but stops before the final step (merging, production). It explains the problem in 2–3 short plain-English sentences, with the best fix.
6. **Reply** in short, plain English: the patterns (each with how many chats over how many weeks), then each loop with its schedule, its 10% and its 90%. If `slices` skipped older chats, add one line: the Free plan read the newest N chats, and Pro reads all 90 days. End with: "Turn these on?"
7. **On yes:** create each loop (Local on `Free plan`, else Cloud) with `room-cli loop create` (see the automations skill), with the 10/90 rules in its prompt. Then `"$py" "$s/extract.py" cleanup "$d"`.

Files in this skill

  • SKILL.md3.2 KB
  • extract.py21.6 KB
  • reader.md1.1 KB
  • readers.py8.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.