一键导入
loop-heartbeat
Scheduled discovery automation that runs scans on a heartbeat interval, classifies findings, and routes them to goals or triage inbox.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scheduled discovery automation that runs scans on a heartbeat interval, classifies findings, and routes them to goals or triage inbox.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
上下文优化技能,通过 trigger-based 懒加载和 context composition awareness 自动重组长会话上下文。
Goal-oriented autonomous loop with external completion oracle. Keeps iterating until verifiable stopping conditions are met, checked by a separate model.
Active MCP connector polling that integrates external tools (issue trackers, error monitoring, CI) into the heartbeat loop for cross-system discovery.
Structured rework with git blame attribution for failed goal iterations. Maps failures to responsible changes and routes targeted fix briefs.
将 CodeGraph 作为默认内置 MCP-backed 代码图谱能力接入,用于 brownfield 符号搜索、 调用链、影响面和上下文查询。输出必须回落到 `/team-*` 主链和 artifacts。
Use Open Design as an external local-first design workbench for prototypes, decks, mobile screens, dashboards, DESIGN.md systems, and exportable visual artifacts. Keep TSP responsible for team workflow, handoff, and quality gates.
| name | loop-heartbeat |
| description | Scheduled discovery automation that runs scans on a heartbeat interval, classifies findings, and routes them to goals or triage inbox. |
| origin | ECC |
Scheduled discovery automation that runs scans, finds issues, and routes findings to goals or triage. The heartbeat is what makes a loop a loop — not a one-shot run.
Based on Addy Osmani's Loop Engineering: "Automations are the thing that makes a loop an actual loop. Run prompts on a schedule. Findings go to a triage inbox; empty runs archive themselves."
/heartbeat start to begin scheduled scans/heartbeat run for a one-shot scanThe heartbeat is the "discovery layer" of a loop. It answers: "What's broken right now?" on a recurring basis without human prompting.
Every 30 minutes:
┌─ Run test suite ─── PASS → skip
├─ Run linter ─────── FAIL → create goal (auto-fix)
├─ Audit deps ─────── FAIL → triage inbox (human decision)
└─ Type check ─────── PASS → skip
Create .claude/heartbeat.yaml in the project root:
heartbeat:
interval: "30m"
scans:
- name: "test-health"
command: "npm test 2>&1 | tail -10"
onFailure: "auto-goal"
description: "Test suite health"
- name: "lint-drift"
command: "npm run lint -- --quiet 2>&1 | wc -l"
threshold: 0
onFailure: "triage"
description: "Lint error count"
- name: "type-check"
command: "npx tsc --noEmit 2>&1; echo EXIT:$?"
onFailure: "auto-goal"
description: "TypeScript type errors"
budget:
maxDollarsPerHour: 2.0
pauseOnExhaust: true
| onFailure | Behavior | Use When |
|---|---|---|
auto-goal | Creates /goal automatically | Machine can fix it (tests, lint, types) |
triage | Adds to /triage inbox | Human judgment needed (deps, security) |
notify | Desktop notification only | Informational, no action required |
ignore | Log silently | Monitoring only, aggregate later |
maxDollarsPerHour: Pause heartbeat if scanning costs exceed thispauseOnExhaust: If true, pause (resumable); if false, stop entirely/goal settingsWhen all scans pass:
~/.claude/heartbeat-last-run.json/goal: auto-goal failures create goals via completion-oracle.js/triage: triage failures append to ~/.claude/triage/inbox.jsonlUser: /heartbeat start
System:
Loaded .claude/heartbeat.yaml (3 scans configured)
Registered CronCreate: every 30m
Next run: 30m from now
Budget: $2.00/hour
[30 minutes later, heartbeat fires]
Scan results:
✓ test-health: all tests pass
✗ lint-drift: 4 lint errors found → created goal-a1b2c3d4
✓ type-check: no type errors
Summary: 2/3 scans passed, 1 goal created