Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

ux-audit: execution discipline + long-running check-in pattern

Jeremy Dawes0a093f61237c
diff --git a/plugins/dev-tools/skills/ux-audit/SKILL.md b/plugins/dev-tools/skills/ux-audit/SKILL.md
index 565e0e07..a1e6e147 100644
--- a/plugins/dev-tools/skills/ux-audit/SKILL.md
+++ b/plugins/dev-tools/skills/ux-audit/SKILL.md
@@ -276,6 +276,18 @@ Graceful if absent — the audit still works without a reference.
- **Ask first**: Destructive actions (delete, send, publish, pay). For Destructive Confidence testing, ask once before running that scenario
- **Stop and confirm**: Anything that emails/notifies external people
+## Execution discipline
+
+Three principles for audit runs that catch the most bugs:
+
+1. **Drive the audit from the main session, not a sub-agent.** Sub-agents are fine for bounded analysis tasks (reviewing a batch of captured screenshots, summarising a thread). But the audit *itself* — the navigation, the noticing, the "this button looks off after the previous interaction" kind of judgement — must happen in the session that's been watching the app. Cross-interaction state lives in that session's working memory; a fresh sub-agent starts cold and misses second-order findings.
+
+2. **Use the browser tool directly.** Chrome MCP or Playwright MCP via the main session's tool calls. Don't hand screenshots to a fresh agent and ask for opinions — that loses the state-dependence that makes audits catch logic errors, business-logic issues, and odd edge cases.
+
+3. **Loop to exhaustion with variations.** Don't stop after one pass through the checklist. After each pass, generate a new angle — different persona, different workflow, different input volume, different starting point, different validation lens — and re-walk. Stop only when a full pass produces no new findings. Single-pass audits by definition miss the second-order issues.
+
+For audits expected to run longer than 30 minutes, set up a 15-min `/loop` check-in alongside the main session — it journals findings, grounds the session, and provides a natural termination signal. See [references/long-running-check-in-pattern.md](references/long-running-check-in-pattern.md).
+
## Reference files
| When | Read |
@@ -285,6 +297,7 @@ Graceful if absent — the audit still works without a reference.
| Full protocol for each of the 8 scenarios | [references/scenario-tests.md](references/scenario-tests.md) |
| Report format and severity rubrics | [references/report-template.md](references/report-template.md) |
| Browser tool commands and viewport notes | [references/browser-tools.md](references/browser-tools.md) |
+| Long-running audit supervision via 15-min `/loop` check-in | [references/long-running-check-in-pattern.md](references/long-running-check-in-pattern.md) |
## Tips
diff --git a/plugins/dev-tools/skills/ux-audit/references/long-running-check-in-pattern.md b/plugins/dev-tools/skills/ux-audit/references/long-running-check-in-pattern.md
new file mode 100644
index 00000000..f552253b
--- /dev/null
+++ b/plugins/dev-tools/skills/ux-audit/references/long-running-check-in-pattern.md
@@ -0,0 +1,59 @@
+# Long-Running Check-In Pattern
+
+For audits and other autonomous work expected to run >30 minutes, set up a companion `/loop` that fires every 15 minutes alongside the main session. The loop is **not** firing the audit itself — the main session is doing that continuously. The loop is a **supervisor prompt** that records findings, confirms activity, and gives the long-running work a durable home.
+
+## Why it helps
+
+1. **Grounding.** The session can't drift silently for an hour. Every 15 minutes it has to articulate what it's found, which forces coherence.
+2. **Progress preservation.** Findings land in a file every 15 minutes, not just at the end. If the session dies or compacts, the record is current.
+3. **Self-termination signal.** When a check-in returns "no new findings, nothing actionable left", that's the natural stopping condition.
+4. **Readable trail.** You (or a later reviewer) can read the progression of findings in chronological chunks, not as one monolithic end-of-run dump.
+
+## When it's worth it
+
+| Task duration | Check-in loop? |
+|---------------|----------------|
+| < 15 min | No — finishes before the first check-in fires |
+| 15–30 min | Optional — probably not worth the setup overhead |
+| 30–60 min | Recommended — catches drift, preserves partial progress |
+| 1+ hours | Strongly recommended — without it, context fragility is real |
+
+Not a replacement for the skill's own internal loop-to-exhaustion. A *complement* that adds journalling and supervision on top.
+
+## Setup
+
+Use `/loop` infrastructure with a 15-minute interval and a supervisor prompt. Example:
+
+```
+/loop 15m Progress check on the UX audit in progress.
+1. What page or area are you currently on?
+2. What findings have you recorded since the last check-in? (new bugs, friction, edge cases)
+3. Any state worth noting — blocked, waiting on input, exploring a side thread?
+4. Append progress to the report file. Then continue where you were.
+```
+
+Key shape: the supervisor prompt is **short, structured, asks for recording**, and explicitly says "continue where you were" so the main session doesn't restart or switch contexts.
+
+## When to tear down
+
+Stop the check-in loop when:
+
+- The audit produces a "no new findings" check-in twice in a row (exhaustion)
+- The audit hits the natural end of the scenario battery and fix-and-verify
+- The user signals the audit is complete
+
+`CronDelete <id>` — session-scoped, no persistence needed.
+
+## Connection to heartbeats
+
+Structurally identical to specialist heartbeat patterns, just at a finer scale:
+
+- **Nightly learnings** (22:03 cron) — end-of-day consolidation, writes to journal/persona/discoveries
+- **Hourly heartbeat** (every :17) — operational presence, scans channels, records signals
+- **15-min check-in** (this pattern) — task-scoped supervision during long autonomous work
+
+Same mechanism (scheduled prompt), same benefit (keep long-running work grounded and recorded), applied at three different periodicities for three different scopes.
+
+## Gotcha
+
+Don't mistake this for a work-doing loop. If the `/loop` fires and the main session isn't already running the audit, the check-in prompt will land in an idle session and probably start a new audit — wrong shape. This pattern only works when the main session is actively working when the check-in fires. Set the loop up *after* starting the audit, not before.