Agent skill
runtime-monitor
Monitor ADR-0217 real workloads across Redis queue, Restate, Dkron, and transitional Inngest using joelclaw CLI plus the pi TUI monitor extension. Use when asked to monitor jobs, watch runtime health, keep an eye on async work, run a workload dashboard, or report back on system state. Always pair with `pi-tui-design` for TUI work and `system-architecture` for topology truth.
Install this agent skill to your Project
npx add-skill https://github.com/joelhooks/joelclaw/tree/main/skills/runtime-monitor
SKILL.md
Runtime Monitor
Use this skill when the task is real workload monitoring, not vague status-checking.
The canonical operator surfaces are:
joelclaw jobs statusjoelclaw queue depthjoelclaw queue control statusjoelclaw queue observejoelclaw restate statusjoelclaw restate cron status- pi extension tool:
runtime_jobs_monitor
Load order
Before doing runtime monitor work:
- load
system-architecture - load
pi-tui-designif you are building or changing the monitor widget/TUI - load
joelclawfor CLI operator flows
What to use when
First glance
joelclaw jobs status --hours 1 --count 10
This is the first operator answer to:
- can the system take more work right now?
- is the queue/runtime layer healthy?
- is Dkron alive?
- is Inngest still healthy during transition?
Queue-specific investigation
joelclaw queue depth
joelclaw queue control status --hours 1
joelclaw queue observe --hours 1
joelclaw queue stats --since <iso|ms>
Use these once jobs status tells you the queue layer is the interesting bit.
Runtime substrate investigation
joelclaw restate status
joelclaw restate cron status
joelclaw runs --count 20 --hours 1
Use these when the top-level surface says Restate, Dkron, or transitional Inngest needs a closer look.
Async pi monitor
The loaded pi extension at packages/pi-extensions/inngest-monitor/index.ts exposes:
runtime_jobs_monitorinngest_sendinngest_runs
Start
{"action":"start","interval":5,"report":true}
Effects:
- polls
joelclaw jobs statusin the background - paints a persistent TUI widget
- emits OTEL on runtime severity changes and meaningful workload-state changes
- sends hidden follow-up summaries when the runtime meaningfully changes or the monitor stops/times out
Status
{"action":"status"}
Returns the latest runtime snapshot:
- overall status/summary
- queue depth
- active pause count
- Restate / Dkron / Inngest state
Stop
{"action":"stop"}
Stops the background poller and sends a final follow-up summary.
Rules
joelclaw jobs statusis the aggregated truth surface; do not rebuild the same picture by hand unless the command is wrong.- If
jobs statusis noisy or misleading, fix it first. Don’t teach agents to ignore a lying operator surface. - For TUI work, prefer compact status blocks with explicit severity and short summaries. No decorative sludge.
- Any runtime monitor widget line must be clamped to the active terminal width with pi-tui truncation (
truncateToWidth/visibleWidth). Pi will crash narrow terminals if a custom widget emits over-wide lines. - During transition, Inngest stays visible but must not dominate the runtime story when Restate + queue + Dkron are the real workload path.
- Report earned truth only. If the monitor compiles but hasn’t been dogfooded, say that.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
skill-review
Audit and maintain the joelclaw skill inventory. Use when checking skill health, fixing broken symlinks, finding stale skills, or running the skill garden. Triggers: 'skill audit', 'check skills', 'stale skills', 'skill health', 'skill garden', 'broken skill', 'skill review', 'fix skills', 'garden skills', or any task involving skill inventory maintenance.
cli-design
Design and build agent-first CLIs with HATEOAS JSON responses, context-protecting output, and self-documenting command trees. Use when creating new CLI tools, adding commands to existing CLIs (joelclaw, slog), or reviewing CLI design for agent-friendliness. Triggers on 'build a CLI', 'add a command', 'CLI design', 'agent-friendly output', or any task involving command-line tool creation.
daily-summary
Generate a daily system activity summary across all joelclaw subsystems. Triggers on 'daily summary', 'what happened today', 'system report', 'today's tally', 'activity summary', 'what did we do', 'daily report'.
inngest-durable-functions
Create and configure Inngest durable functions. Covers triggers (events, cron, invoke), step execution and memoization, idempotency, cancellation, error handling, retries, logging, and observability.
recall
Fan-out search across all memory sources when context is unclear or vaguely referenced. Triggers on: 'from earlier', 'remember when', 'what we discussed', 'that thing with', 'the conversation about', 'did we ever', 'what happened with', 'you mentioned', 'we talked about', 'earlier today', 'last session', 'the other day', or any vague reference to past context that needs resolution before the agent can act.
inngest-local
Set up self-hosted Inngest on macOS as a durable background task manager for AI agents. Interactive Q&A to match intent — from Docker one-liner to full k8s deployment with persistent state. Use when: 'set up inngest', 'background tasks', 'durable workflows', 'self-host inngest', 'event-driven functions', 'cron jobs', or any request for a local workflow engine.
Didn't find tool you were looking for?