plugins/claude-code-expert/skills/monitor-tool/SKILL.md
Monitor tool for streaming background process events into conversations — tail logs, watch CI, auto-fix dev server crashes, and /loop self-pacing without Bash sleep loops
npx skillsauth add markus41/claude monitor-toolInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The Monitor tool spawns a background watcher and streams its events into the conversation as new transcript messages. Each event lands immediately and Claude reacts to it — no polling loop, no holding the turn open with a sleep.
Available since v2.1.98.
Bash (sleep loop, polling) Monitor tool
━━━━━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━
while true; do # Claude spawns a watcher
check_ci_status # Watcher runs in background
sleep 30 # Each event → new message
done # Claude reacts immediately
The conversation stays open. Events arrive asynchronously. Claude processes each one and decides whether to act.
> Tail server.log in the background and tell me the moment a 5xx shows up
Claude spawns a watcher on server.log. Each new log line arrives as a transcript message. When a 5xx pattern matches, Claude reacts immediately — describe the error, suggest a fix, or apply one automatically.
> Watch CI on my current branch and fix any failures as they come in
Claude monitors the CI status. When a check fails, it reads the failure output, writes a fix, and pushes — all without you sitting at the terminal.
> Start the dev server in the background, watch for crashes, and restart and fix when it crashes
Claude starts the server, monitors its output, and when a crash appears, reads the traceback, patches the code, and restarts.
> Kick off training and summarize progress every epoch without keeping the session idle
Claude monitors training output and sends epoch summaries as events arrive.
/loop now self-paces: if you omit the interval, Claude picks the next tick based on what it's waiting for. When the Monitor tool is available, Claude reaches for it instead of polling.
> /loop check CI on my PR
Claude will:
> /loop --interval 60 run the dependency audit
> /loop check CI on my PR
If you want to gate what Monitor can watch (e.g., only internal hosts):
{
"hooks": {
"PreToolUse": [{
"hooks": [{
"if": "Monitor(*)",
"type": "command",
"command": ".claude/hooks/monitor-allowlist.sh"
}]
}]
}
}
#!/usr/bin/env bash
# monitor-allowlist.sh — only allow monitoring local files and localhost
set -euo pipefail
INPUT=$(cat)
TARGET=$(echo "$INPUT" | jq -r '.tool_input.target // ""')
case "$TARGET" in
*.log|localhost:*|/tmp/*)
echo '{"decision": "approve"}'
;;
*)
jq -n --arg t "$TARGET" '{"decision":"block","reason":("Monitor target not allowed: "+$t)}'
;;
esac
| Scenario | Best Tool | |----------|-----------| | React to log events in real time | Monitor tool | | Wait for a known-duration process (8-min build) | ScheduleWakeup (~270s, stays in cache) | | Poll a REST endpoint every minute | Monitor tool (wrap in a watcher script) | | Long-idle background check (>30 min) | ScheduleWakeup (1200s+) | | One-shot process check on demand | Bash |
-p (print/pipe) headless modetools
Build Teams-native agents with the Teams SDK (formerly Teams AI Library v2) — App class, activity routing, adaptive cards, streaming, AI-generated labels, feedback, message extensions, Teams-as-MCP-server, and the bring-your-own-AI pattern with Agent Framework.
tools
Run agents on Microsoft Foundry (formerly Azure AI Foundry) Agent Service — prompt agents vs hosted agents, threads/runs and the Responses API, built-in tools (Bing grounding, code interpreter, file search, MCP, OpenAPI, A2A), connected agents, Entra agent identity, SDKs, and observability/evaluations.
tools
Build and host custom engine agents with the Microsoft 365 Agents SDK — AgentApplication, the Activity protocol, channel reach via Azure Bot Service, hosting Agent Framework or Semantic Kernel engines, and the Agents Toolkit/Playground workflow. Successor to the Bot Framework SDK.
tools
Design, govern, and extend Microsoft Copilot Studio agents — topics, generative orchestration, knowledge, tools and MCP, agent flows, autonomous triggers, publishing channels, Copilot Credits pricing, and solution-based ALM on Power Platform.