Agent skill

Pi Heartbeat

by espennilsen in espennilsen/pi

Configure periodic health checks via HEARTBEAT.md and the /heartbeat command.

MITAuto-check passed

Install Pi Heartbeat

skills CLI
$ npx skills add espennilsen/pi --skill pi-heartbeat -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install espennilsen/pi pi-heartbeat --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/extensions/pi-heartbeat/skills/pi-heartbeat .claude/skills/pi-heartbeat && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pi-heartbeat
GitHub stars
122
Token cost
~414 tokens
SKILL.md length
131 words
Files
1
Skills in repo
36
Repo updated
First seen
Licence
MIT

At a glance

Configure periodic health checks via HEARTBEAT.md and the /heartbeat command.

  • Works in 3 steps: Enable via --heartbeat flag, /heartbeat… → Create a HEARTBEAT.md in your project… → If the agent responds with HEARTBEAT_OK,…
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Pi Heartbeat is an agent skill from espennilsen/pi. Configure periodic health checks via HEARTBEAT.md and the /heartbeat command.

Its SKILL.md is about 410 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The licence is MIT.

Example prompts

  • “/pi-heartbeat”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Enable via --heartbeat flag, /heartbeat on, or settings.json
  2. Create a HEARTBEAT.md in your project root with check items
  3. If the agent responds with HEARTBEAT_OK, the result is suppressed. Any other response is treated as an alert and sent via pi-channels.

What it can do on your machine

Read from SKILL.md and the folder at commit 79d019b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json and markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pi Heartbeat loads about 414 tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 131 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~414

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from espennilsen/pi at commit 79d019b, republished under its MIT licence (© espennilsen). 131 words, ~414 tokens.

Download SKILL.mdSave it as .claude/skills/pi-heartbeat/SKILL.md (or your agent's skills folder).
name
pi-heartbeat
description
Configure periodic health checks via HEARTBEAT.md and the /heartbeat command.

Pi Heartbeat Extension

Runs a periodic health-check prompt as an isolated subprocess.

Setup
  1. Enable via --heartbeat flag, /heartbeat on, or settings.json:

    json
    { "pi-heartbeat": { "enabled": true, "intervalMinutes": 15 } }
  2. Create a HEARTBEAT.md in your project root with check items:

    markdown
    # Heartbeat Checklist
    - [ ] Check git status — any uncommitted changes?
    - [ ] Check disk space — anything over 90%?
    - [ ] Review td list for blocked tasks
  3. If the agent responds with HEARTBEAT_OK, the result is suppressed. Any other response is treated as an alert and sent via pi-channels.

Configuration (settings.json)
json
{
  "pi-heartbeat": {
    "enabled": false,
    "intervalMinutes": 15,
    "activeHours": { "start": "08:00", "end": "22:00" },
    "route": "ops",
    "showOk": false,
    "prompt": null
  }
}
  • enabled: Start heartbeat on session start
  • intervalMinutes: Check frequency (default: 15)
  • activeHours: Only run during these hours (null = always)
  • route: pi-channels route for alerts (default: "ops")
  • showOk: Also send HEARTBEAT_OK results to the channel
  • prompt: Custom prompt (overrides HEARTBEAT.md)
Commands
  • /heartbeat on — Start periodic checks
  • /heartbeat off — Stop checks
  • /heartbeat status — Show run stats
  • /heartbeat run — Run a check immediately
Events
  • heartbeat:check — Emitted when a check starts
  • heartbeat:result — Emitted with { ok, response, durationMs }

© espennilsen, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in extensions/pi-heartbeat/skills/pi-heartbeat of espennilsen/pi.

Open the folder on GitHubat commit 79d019b

Compare with similar skills

Pi Heartbeat next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pi Heartbeat compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pi Heartbeat this skillespennilsen/pi122—~414Automated safety check: PassMIT
Configure Channelopenclaw/openclaw392k—~946Automated safety check: PassMIT
Skin Health Analyzersickn33/agentic-awesome-skills47k2 repos~293Automated safety check: PassMIT
Codebase Health Dashboardgarrytan/gstack136k—~11kAutomated safety check: NotesMIT
Healthagenticnotetaking/arscontexta3.5k—~7.1kAutomated safety check: NotesMIT
ConfigurationBuilderIO/agent-native7.1k—~2.1kAutomated safety check: PassNone

Similar skills

  • Configure Channel

    openclaw/openclaw

    Configure and prove a chat channel with non-interactive one-liners; secrets only as SecretRefs.

    392k GitHub stars~946 tokensUpdated today
    Auto-check passed
  • Skin Health Analyzer

    sickn33/agentic-awesome-skills

    Analyze skin health data, identify skin problem patterns, assess skin health status.

    47k GitHub starsUsed in 2 repos~293 tokens
    Productivity & AutomationAuto-check passed
  • Runs a project's own type checker, linter, test runner, dead-code detector and shell linter, combines them into a weighted 0-10 score and tracks the trend.

    136k GitHub stars~11k tokensUpdated today
    DevelopmentAuto-check: notes
  • Health

    agenticnotetaking/arscontexta

    Run condition-based vault health diagnostics. An agent skill from agenticnotetaking/arscontexta.

    3.5k GitHub stars~7.1k tokensUpdated 7 mo ago
    Auto-check: notes
  • Configuration

    BuilderIO/agent-native

    Where a configuration value belongs — app config schema, agent-native.config.ts, or an environment variable — and how the layers resolve.

    7.1k GitHub stars~2.1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Health Wellness

    sickn33/agentic-awesome-skills

    Wellbeing check-in register: anonymous flag, department, check-in date, wellbeing score, stress and energy levels, support and resource flags, confidentiality and status.

    47k GitHub starsUsed in 1 repo~3.5k tokens
    Productivity & AutomationAuto-check passed

More from espennilsen/pi

All 36 skills in this repo
  • GitHub

    espennilsen/pi

    Interact with GitHub repos, PRs, issues, CI, and notifications via the pi-github extension commands and gh CLI.

    122 GitHub stars~1k tokensUpdated 19 days ago
    Auto-check passed
  • Skill Creator

    espennilsen/pi

    Create, review, and improve skills for Pi agents. An agent skill from espennilsen/pi.

    122 GitHub stars~2.1k tokensUpdated 19 days ago
    Auto-check passed
  • Dry Code Review

    espennilsen/pi

    Perform a comprehensive DRY (Don't Repeat Yourself) code review on a codebase.

    122 GitHub stars~1.7k tokensUpdated 19 days ago
    Auto-check passed
  • Extract Design System

    espennilsen/pi

    Reverse-engineer a design system from a live website (public URL or localhost).

    122 GitHub stars~2k tokensUpdated 19 days ago
    Auto-check passed
  • PDF Reader

    espennilsen/pi

    Read and extract content from PDF files — text, tables, metadata, and images.

    122 GitHub stars~1.6k tokensUpdated 19 days ago
    Auto-check passed
  • Google Workspace

    espennilsen/pi

    Manage Google Workspace via the gws CLI — Drive, Gmail, Sheets, Docs, Slides, People, Chat, Meet, Forms, and cross-service workflows.

    122 GitHub stars~3.4k tokensUpdated 19 days ago
    Auto-check passed

Questions about Pi Heartbeat

What does Pi Heartbeat do?

Configure periodic health checks via HEARTBEAT.md and the /heartbeat command. Pi Heartbeat is an agent skill from espennilsen/pi.md and the /heartbeat command.

How do I install Pi Heartbeat in Claude Code?

Run `npx skills add espennilsen/pi --skill pi-heartbeat -a claude-code`. Or copy the skill folder (extensions/pi-heartbeat/skills/pi-heartbeat in espennilsen/pi) into .claude/skills/pi-heartbeat in your project. Claude Code loads it when a task matches its description.

How do I install Pi Heartbeat in Codex?

Run `npx skills add espennilsen/pi --skill pi-heartbeat -a codex`. Or copy the skill folder (extensions/pi-heartbeat/skills/pi-heartbeat in espennilsen/pi) into .agents/skills/pi-heartbeat in your project. Codex loads it when a task matches its description.

Can I use Pi Heartbeat in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add espennilsen/pi --skill pi-heartbeat -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pi-heartbeat, .gemini/skills/pi-heartbeat, .github/skills/pi-heartbeat and .opencode/skills/pi-heartbeat in your project.

What does Pi Heartbeat need to run?

SKILL.md names no scripts, command-line tools or credentials: Pi Heartbeat is instructions for the agent only.

Does Pi Heartbeat access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pi Heartbeat safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pi Heartbeat use?

Pi Heartbeat is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pi Heartbeat use?

About 414 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pi Heartbeat?

Skills that share tags, products or a category with Pi Heartbeat: Configure Channel (openclaw/openclaw, 392k stars), Skin Health Analyzer (sickn33/agentic-awesome-skills, 47k stars), Codebase Health Dashboard (garrytan/gstack, 136k stars) and Health (agenticnotetaking/arscontexta, 3.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pi Heartbeat?

espennilsen (a GitHub user) maintains it in espennilsen/pi, which has 122 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on September 21, 2026.

Source: espennilsen/pi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.