task-observer
Skill0 starsChanged 13 days agoMITView on GitHub
Watch long-running tasks and report on them without burning context — builds, test suites, migrations, data jobs, training runs, deploys, servers — and catch an agent going in circles. Use when a command may take more than a minute or two, when running several jobs in parallel, when asked to monitor, babysit, keep an eye on or report on a task, or to set up the loop-guard hook that warns on repeated or failing tool calls.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- willy92wins/DayZ-Modding-Knowledge-Packtheir own version, first seen Nov 8, 2026
- VorElze/hermes-office-skillstheir own version, first seen Nov 1, 2026
- okfriansyah-moh/agentic-workflowtheir own version, first seen Oct 25, 2026
- jeremybrasher/grokbot-skillstheir own version, first seen Oct 25, 2026
- rebelytics/one-skill-to-rule-them-alltheir own version, first seen Sep 25, 2026
- beelabstudio/aitheir own version, first seen Sep 20, 2026
Used with
Projects with it also use ui-ux-pro-max.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
StrayDragonSkillui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- rebelytics/one-skill-to-rule-them-all★ 3.8ksame name
- iamneilroberts/claude-skills★ 26same name
- willy92wins/DayZ-Modding-Knowledge-Pack★ 20same name
- jeremybrasher/grokbot-skills★ 11same name
- AthArvA-188/top-10-claude-skills★ 3same name
- anupkatuwal/claude-skills★ 1same name
- Carefree-1991/claude-skills★ 1same name
- mahiunfiltered/claude-code-skills★ 1same name
- beelabstudio/ai★ 0same name
- okfriansyah-moh/agentic-workflow★ 0same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bug-huntSkill
- compaction-guardSkill
- framework-upgradeSkill
- iran-paymentsSkill
- persian-rtlSkill
- record-skillSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Start: every long command through the observer, in the background (Bash run_in_background: true): python3 .observer/observe.py run <name> …
- Very specific: line 23
Never read the full log into the conversation: Use status <name>; if you need more, Grep the log for the error, then Read 40–80 lines …
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Task observer
Two failure modes on long work: polling blind (re-reading huge logs, sleep loops, or forgetting the task exists) and going in circles (re-running the same failing command, re-editing the same file). This skill fixes both with two stdlib-only scripts in <skill-dir>/scripts/.
Long-running commands — observe.py
Copy once per project (so commands stay short): mkdir -p .observer && cp <skill-dir>/scripts/observe.py .observer/ and add .observer/ to .git/info/exclude.
- Start every long command through the observer, in the background (Bash
run_in_background: true):python3 .observer/observe.py run <name> [--stall 300] [--repeat 20] -- <command ...>It logs all output to.observer/<name>.logand keeps.observer/<name>.jsoncurrent: state, elapsed, idle time, last progress line (37%,120/500,epoch 4), and the most repeated error line (numbers/paths normalized). - Wait with the observer, also in the background, so you are re-invoked when something happens instead of polling:
python3 .observer/observe.py wait <name> --timeout 1800Exit codes:0done ·1failed/stopped/lost ·3stalled (no output for--stalls) or repeating (same error--repeattimes) ·4timeout, still running. - Check any time:
observe.py status(one line per task) orobserve.py status <name> --tail 20. - Stop:
observe.py stop <name>(SIGTERM to the whole process group).
Rules:
- Never read the full log into the conversation. Use
status <name>; if you need more,Grepthe log for the error, then Read 40–80 lines around it. - On stalled: check whether it is waiting for input (prompts,
y/N, auth), a deadlock, or genuinely slow (a big download with no progress output). Decide stop vs. extend; don't just wait again with the same timeout. - On repeating: the job is retrying something that won't fix itself (DB down, wrong URL, missing file). Stop it, fix the cause, restart.
- Choose
--stallfrom the job: ~120 s for builds/tests, 600+ s for jobs that print rarely (DB migrations, model training without per-step logs). - Parallel jobs: one name each, one
waiteach; report with onestatuscall. - Report to the user in one line per task (name · state · elapsed · progress · top error), not log excerpts, unless they ask.
Agent loops — loop_guard.py (PostToolUse hook)
Install when the user wants it, or when a long autonomous run is starting. Add to .claude/settings.json (project) or ~/.claude/settings.json (user), merging with existing hooks:
{ "hooks": { "PostToolUse": [ { "matcher": "*", "hooks": [
{ "type": "command", "command": "python3 \"$CLAUDE_PROJECT_DIR/.observer/loop_guard.py\"" } ] } ] } }and copy <skill-dir>/scripts/loop_guard.py to .observer/. It records each tool call (a hash, not the content) in .observer/agent-<session>.jsonl and warns Claude (stderr + exit 2) when, within the last 30 calls:
| Pattern | Default trigger |
| same-call | identical tool + input ≥3× |
| same-fail | the same failing call (numbers ignored) ≥3× |
| fail-streak | 5 failed calls in a row |
| edit-churn | one file edited ≥6× |
Each warning fires at most once per 10 calls. Tune with LOOP_GUARD_* env vars (see the script header); LOOP_GUARD_OFF=1 disables it. It never blocks a call and exits 0 on any internal error. |
When you see a [loop-guard] message, do what it says before the next tool call: state in one or two sentences what you tried and why it failed, then change approach (different hypothesis, smaller repro, read the actual error) or ask the user. Do not re-run the same call to "check again".
Subagents and parallel agents
- Give each background agent a task name and ask it to finish with one status line (
name · done/failed · result · evidence). - A long-running agent's own shell work should go through
observe.pytoo, so the parent canstatusit without reading its transcript.
When NOT to use
Commands that finish in under a minute (just run them), interactive commands (they will stall — run them yourself or ask the user), and services meant to run forever (start with observe.py run but don't wait; check status when needed).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

