---
name: botkits-routine-healthcheck
description: >-
  Needs Grok Bot. Use when auditing Grok Bot routines for token waste, offering a fleet checkup after template import, deciding cadence, or running the standing routine-healthcheck wake.
compatibility: Needs Grok Bot (reads Grok Bot routines).
title: botkits-routine-healthcheck
canonical_url: https://skilld.dev/gh/botkitsdev/botkits/botkits-routine-healthcheck
last_updated: 2026-11-22T01:30:43.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install botkitsdev/botkits/botkits-routine-healthcheck`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/botkits-routine-healthcheck`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/botkitsdev/botkits/botkits-routine-healthcheck) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/botkits-routine-healthcheck`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/botkits-routine-healthcheck --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/botkits-routine-healthcheck --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Routine healthcheck

Audit every bot's scheduled and event routines for wasted wakes and noise, then propose fixes. Report only. Don't change another bot's routines until the user picks which fixes to apply.

## When

- The standing `routine-healthcheck` routine fires (default Monday morning).
- First run after import: offer once ("want a checkup of every bot's routines?") and run only on yes.
- The user asks for a routine audit, a token check, or cheaper wakes.
- Before you create a new standing routine.

After the first checkup, offer once to create the weekly `routine-healthcheck` routine if it doesn't exist. Don't re-ask on later runs.

## Collect

1. List every folder in `/home/box/agent-data/agents/`.
2. For each: the bot name from `profile.json`, then every `automations/*/automation.json`.
3. Per routine, note: cron or event, enabled or paused, runs per day (work it out from the cron), and whether the prompt says to stay silent when nothing changed.

## Flag

Each flag names the bot, the routine, the evidence, and a one-line fix.

- **Too often.** Anything denser than hourly (every 15 minutes is 96 wakes a day). Suggest hourly, a few fixed times, or weekday working hours. If it's watching Slack, GitHub, or mail, suggest an event trigger instead of a poll.
- **Talks when it has nothing.** No silence rule, or it sends filler like "(no change)". A message the user can't act on is noise, and noise trains people to ignore the real ones.
- **Heavy host.** A frequent routine on a bot whose chat is already long, so every wake drags that history along. Move it to a fresh, small bot.
- **Dead weight.** Paused for weeks, finished its job (a watch past its end date), or two bots doing the same job.
- **Never acted on.** If the user hasn't responded to or used a routine's output in weeks, propose pausing it.

## Report

One list, worst first: bot, routine, flag, fix, and estimated wakes saved per week. Add a total. No essay. If everything is fine on a scheduled run, say nothing.

Offer to apply fixes only after the user picks. When creating a new bot for a standing sweep, give it one routine at the slowest schedule that still works.

## Inspired by

- [Lauren Tan (@poteto), dr eggbot](https://x.ai/bot/marketplace/bots/dr-eggbot-v2) (marketplace template; no reuse license shown, so no text is copied). Does well: names a weekly token and waste audit that stays quiet and waits for the user to pick. Missing: the listing gives the schedule and intent but no flags, cost estimate, or report shape.
- [Google SRE Book, Monitoring Distributed Systems](https://sre.google/sre-book/monitoring-distributed-systems/). Does well: every page should be actionable, noisy alerts get ignored, and rarely used rules should be up for removal. Missing: about production alerting, not agent wakes or token cost.
- [Google SRE Book, Eliminating Toil](https://sre.google/sre-book/eliminating-toil/). Does well: defines repetitive, automatable work with no lasting value. Missing: no audit procedure for scheduled jobs.

## What this version adds

- Wakes-per-day math and a weekly savings total in the report.
- The "actionable or silent" test and a "never acted on" flag, taken from alerting practice.
- Event triggers suggested in place of polling.
