process-monitoring

process-monitoring is a skill for Claude Code, Codex from cdbattags/ai. It costs 44 tokens per session (851 once invoked), scanned A, original, MIT.

A set of instructions for waiting on shell commands and watching background processes finish. It uses the shell's built-in waiting and terminal output instead of delay-based loops.

In plain words
What is it for?
Use it when running builds, installs, tests, database tasks, development servers, or file watchers from the shell.
Why use it?
It avoids unreliable sleep-and-check scripts that can waste time or miss when a command is ready or has failed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when running builds, installs, tests, database tasks, development servers, or file watchers from the shell.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cdbattags/ai/process-monitoring
View source ↗ cdbattags/ai
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cdbattags/ai --skill process-monitoring
Clone the repo
git clone --depth 1 https://github.com/cdbattags/ai

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for process-monitoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/cdbattags/ai/process-monitoring/github.svg)](https://agentmods.dev/skills/cdbattags/ai/process-monitoring)
Your own site
<a href="https://agentmods.dev/skills/cdbattags/ai/process-monitoring"><img src="https://agentmods.dev/badge/skills/cdbattags/ai/process-monitoring/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for process-monitoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/cdbattags/ai/process-monitoring"><img src="https://agentmods.dev/badge/skills/cdbattags/ai/process-monitoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00851
Opus 5 $0.00022 $0.00426
Sonnet 5 $0.00009 $0.00170
Haiku 4.5 $0.00004 $0.00085

Measured 11d ago against content hash b13944b2bf3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

process-monitoring scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Never use `sleep`, `for` loops with delays, or `while ! curl; do sleep` polling patterns in the Cursor Shell tool. The Shell tool has built-in mechanisms for waiting.
src/skills/process-monitoring/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Process Monitoring Without Sleep

Never use sleep, for loops with delays, or while ! curl; do sleep polling patterns in the Cursor Shell tool. The Shell tool has built-in mechanisms for waiting.

Core Principle

The Shell tool's block_until_ms parameter IS the wait mechanism. Terminal output files ARE the monitoring mechanism. You never need to build your own waiting logic.

Pattern 1: Terminating Commands (build, seed, install, test)

Set block_until_ms higher than expected runtime. The shell blocks until the command finishes or the timeout is reached.

# Good: block for up to 120 seconds
Shell(command="pnpm db:seed", block_until_ms=120000)

# Bad: background then sleep-poll
Shell(command="pnpm db:seed &")
Shell(command="sleep 10 && check result")

If the command exceeds block_until_ms, it moves to background automatically. Check the terminal file for the exit_code footer.

Pattern 2: Long-Running Commands (dev server, watcher)

Use block_until_ms: 0 to immediately background, then read the terminal file to check for readiness markers.

# Step 1: Start in background
Shell(command="pnpm dev", block_until_ms=0)
# Returns terminal file path immediately

# Step 2: Read terminal file to check if ready
Read(path="/path/to/terminal/file.txt", offset=-20)
# Look for "ready in" or "Local: http://localhost:3000"

Readiness markers by tool:

Tool Ready marker
Vite ready in or Local: http://localhost:
Next.js Ready in or started server on
Express/Fastify listening on
Any build exit_code: footer in terminal file

Pattern 3: Checking if a Background Command Finished

Read the terminal file. If finished, an exit_code footer appears:

---
exit_code: 0
elapsed_ms: 12345
ended_at: 2026-03-01T...
---

If still running, the header shows running_for_seconds (updated every 5s).

Pattern 4: Verifying a Running Server

Instead of curl polling, just read the terminal file output:

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 102 lines · 44 tokens per session scan A b13944b2bf3a

Subscribe to this mod's changes

process-monitoring is a skill published in the GitHub repository cdbattags/ai (4 stars, last pushed 6mo ago), licensed MIT. It adds 44 tokens to every session and 851 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

implementation-loop

Disciplined plan-build-verify loop for implementing a feature or change. Use when building something new or modifying existing behavior, especially across multiple files.

KingEmma7/cursor-os · 33 tokens

debugging-loop

Systematic reproduce-isolate-fix-verify loop for bugs, test failures, and unexpected behavior. Use when something is broken and the cause is not yet known.

KingEmma7/cursor-os · 37 tokens

tw-migrate

Analyze a Tailwind CSS v3 project and generate a complete migration plan to v4. Scans config, CSS, and template files for v3 patterns and produces a prioritized checklist with exact find-and-replace commands.

RoninForge/roninforge-tailwind-v4 · 48 tokens

tw-component

Generate a UI component using correct Tailwind CSS v4 utility classes, CSS variable theming, and accessibility best practices. Prevents v3 syntax hallucination by grounding output in verified v4 patterns.

RoninForge/roninforge-tailwind-v4 · 43 tokens

tw-validate

Scan a Tailwind CSS project for v3/v4 version mixing, deprecated patterns, and common mistakes. Reports issues with exact file locations and suggested fixes.

RoninForge/roninforge-tailwind-v4 · 35 tokens

template-helpers

Catalog of the reusable building blocks shipped with this Android template — BaseActivity/BaseFragment, the helpers/ extension files (navigation, lifecycle, toast, snackbar, dialogs, images, permissions, theme, locale, settings intents, date, delay), common/ (Firebase, network, observers), and…

orbitalsonic/AndroidPilot · 92 tokens