一键导入
heartbeat
Periodic wake-up service that checks HEARTBEAT.md for pending tasks and executes them automatically. Use this skill to write or update HEARTBEAT.md.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Periodic wake-up service that checks HEARTBEAT.md for pending tasks and executes them automatically. Use this skill to write or update HEARTBEAT.md.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Schedule reminders and recurring tasks. Actions: add, list, remove or set_context.
Private knowledge base for indexing multimodal files or folders into a knowledge graph, supporting multi-hop graph retrieval
Generate wiki docs + Mermaid diagrams for any codebase. Use when the user asks to document a codebase, generate architecture diagrams, or create a structured wiki for a repo.
Parse an image from a file path to obtain a description, enabling non-multimodal LLMs to have vision capabilities.
When the user needs to transcribe video (such as .mp4, .mkv, .avi) into text, use the python_repl tool to generate text.
Karpathy's LLM Wiki: build/query interlinked markdown KB.
| name | heartbeat |
| description | Periodic wake-up service that checks HEARTBEAT.md for pending tasks and executes them automatically. Use this skill to write or update HEARTBEAT.md. |
HEARTBEAT.md is the task manifest for the heartbeat service. Every tick, the service reads this file and lets the LLM decide whether there are active tasks to execute.
from skills.builtin.core.heartbeat.scripts import add_task_to_heartbeat
task_text: str = "{placeholder}" # <- The task description to add (as a Markdown list item or paragraph)
index: int | None = int("{placeholder}") # <- Optional 0-based insertion position within Active Tasks content lines (skipping blanks and HTML comments). ``None`` (default) appends at end.
res = add_task_to_heartbeat(task_text, index)
print(res)
Example values for task_text:
- Check email inbox, if there are unread emails from Alice, summarize and report
- If last code sync was more than 24 hours ago, pull latest main branch and run tests
- Send daily work report at 18:00: summarize today's conversation records
from skills.builtin.core.heartbeat.scripts import list_active_tasks
print(list_active_tasks())
from skills.builtin.core.heartbeat.scripts import list_completed_tasks
print(list_completed_tasks())
Use this when a task is done and won't be executed again — it moves the task from Active Tasks to Completed.
from skills.builtin.core.heartbeat.scripts import move_task_to_completed
task_text: str = "{placeholder}" # <- The task description to add (as a Markdown list item or paragraph)
res = move_task_to_completed(task_text)
print(res)
Both functions accept None | str | list[str] — the behavior is determined by the argument type:
None → clear all completed recordsstr → substring match, remove matching line(s)list[str] → substring match each string, remove all matchingfrom skills.builtin.core.heartbeat.scripts import remove_tasks_from_completed
# Clear all completed records
res = remove_tasks_from_completed()
print(res)
# Remove any line containing "check email"
res = remove_tasks_from_completed("check email")
print(res)
# Remove multiple by substring match
res = remove_tasks_from_completed(["check email", "pull code", "daily report"])
print(res)
clear_completed_tasks is an alias with identical behavior:
from skills.builtin.core.heartbeat.scripts import clear_completed_tasks
# all
res = clear_completed_tasks()
print(res)
# single substring
res = clear_completed_tasks("check email")
print(res)
# batch
clear_completed_tasks(["pull code", "report"])
print(res)