Install any skill in seconds. Free to start, no credit card required.
Get Started Free →majiayu000/bot-heartbeat
Pilot Bot heartbeat — spawns background subagent for periodic health check, notifies only when issues are detected
Passed 18 of 21 test cases with the skill, and 9 of 21 without it.
and 8 more in the full report
11 fixed8 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
What script location under .claude/skills/bot-heartbeat/scripts is executed to run health checks?
| Checked | Without skill | With skill |
|---|---|---|
| Refers to check.sh as the executable script | Missed | Passed |
The instructions your model reads when the skill loads.
Spawns a background subagent to run periodic checks. The main session is released immediately after the subagent is launched.
run_in_background=truePrompt to pass to the subagent:
You are a heartbeat agent for Pilot Bot.
Steps:
1. Run: bash $PILOT_BOT_DIR/../../.claude/skills/bot-heartbeat/scripts/check.sh
If the script outputs "SKIP", exit immediately (dedup — heartbeat already ran recently).
2. Evaluate whether any issues exist (dead processes, failed jobs, etc.)
3. Check if Telegram MCP tools (reply, react) are available. Track telegram_available.
4. Notification rule:
- NO issues → do NOT send any message. Stay silent.
- Issues found AND telegram_available → send issue details via Telegram reply (brief, no "alive" prefix)
- Issues found AND NOT telegram_available → output alert to console only.
5. Exit.
Keep it brief. Do not ask questions. Do not wait for responses.
The check.sh script implements lock file deduplication:
$PILOT_BOT_DIR/.heartbeat-locktest cases passed, vs 9 / 21 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.