[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76YXTJ7D8BBY5CX5Q5MF41Z":3,"skill-same:01M76YXTJ7D8BBY5CX5Q5MF41Z":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":49},"01M76YXTJ7D8BBY5CX5Q5MF41Z","heartbeat",null,"Use this skill when the user wants to run or configure the heartbeat autonomous loop, check past heartbeat runs, set the heartbeat tier\u002Fpolicy, view or edit heartbeat instructions (HEARTBEAT.md), or enable agent proactive behavior. Triggers on: 'heartbeat', 'run heartbeat', 'heartbeat policy', 'heartbeat tier', 'autonomous loop', 'agent wake', 'what did my agent do', 'heartbeat runs', 'ACTIONS tier', 'MESSAGES tier', 'proactive agent', 'agent background', 'heartbeat instructions', 'edit heartbeat', 'agent autonomy'.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Faicoo-heartbeat\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: heartbeat\ndescription: \"Use this skill when the user wants to run or configure the heartbeat autonomous loop, check past heartbeat runs, set the heartbeat tier\u002Fpolicy, view or edit heartbeat instructions (HEARTBEAT.md), or enable agent proactive behavior. Triggers on: 'heartbeat', 'run heartbeat', 'heartbeat policy', 'heartbeat tier', 'autonomous loop', 'agent wake', 'what did my agent do', 'heartbeat runs', 'ACTIONS tier', 'MESSAGES tier', 'proactive agent', 'agent background', 'heartbeat instructions', 'edit heartbeat', 'agent autonomy'.\"\nuser-invokable: true\nmetadata:\n  author: systemind\n  version: \"1.0.0\"\n---\n\n# Heartbeat — Autonomous Agent Loop\n\nHeartbeat is Aicoo's proactive engine. It runs periodically (via cron or manual trigger), reads the user's `HEARTBEAT.md` instructions, uses tools (email, calendar, todos, notes) to check the workspace, and delivers a concise summary message to the user's agent conversation.\n\n---\n\n## Concepts\n\n| Concept | Meaning |\n|---------|---------|\n| HEARTBEAT.md | User-editable instruction file in `\u002FMemory\u002FSelf\u002F`. Defines what the agent checks each run. |\n| Tier | `MESSAGES` (default) = read-only checks + summary. `ACTIONS` = can take write actions (future). |\n| Run | A single execution of the heartbeat loop. Tracked in `heartbeat_runs`. |\n| Suppression | If the agent produces a near-duplicate message (>85% Jaccard similarity within 24h), it's suppressed. |\n| Agent Turn | The AI model call that processes instructions, uses tools, and produces a summary. |\n\n---\n\n## API Endpoints\n\nBase: `https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1`  \nAuth: `Authorization: Bearer ${AICOO_API_KEY:-$PULSE_API_KEY}`\n\n---\n\n### Run Heartbeat (manual trigger)\n\n```bash\ncurl -s -X POST \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Frun\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{}' | jq .\n```\n\nOptional body:\n\n| Field | Type | Notes |\n|-------|------|-------|\n| `tier` | string | `ACTIONS` or `MESSAGES`. If set, updates policy before running. |\n| `dryRun` | boolean | Reserved for future use. |\n\nResponse:\n\n```json\n{\n  \"success\": true,\n  \"result\": {\n    \"runId\": 42,\n    \"tier\": \"MESSAGES\",\n    \"text\": \"All clear — 2 emails in inbox (neither urgent), standup at 2 PM, 1 overdue todo: 'Review PR #312'.\",\n    \"suppressed\": false,\n    \"suppressReason\": null,\n    \"delivered\": true,\n    \"toolCalls\": 4,\n    \"model\": \"gpt-5-mini\",\n    \"elapsedMs\": 3200\n  }\n}\n```\n\n---\n\n### Get Heartbeat Policy\n\n```bash\ncurl -s \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Fpolicy\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" | jq .\n```\n\nResponse:\n\n```json\n{\n  \"success\": true,\n  \"policy\": {\n    \"tier\": \"MESSAGES\"\n  }\n}\n```\n\n---\n\n### Set Heartbeat Policy\n\n```bash\ncurl -s -X POST \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Fpolicy\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"tier\": \"ACTIONS\" }' | jq .\n```\n\nValid tiers:\n- `MESSAGES` — read-only checks, delivers summary message (default)\n- `ACTIONS` — agent can take write actions (send emails, create todos, etc.)\n\n---\n\n### List Past Runs\n\n```bash\ncurl -s \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Fruns?limit=10\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" | jq .\n```\n\n**Query params:**\n\n| Param | Default | Notes |\n|-------|---------|-------|\n| `limit` | 20 | Max 50 |\n\nResponse:\n\n```json\n{\n  \"success\": true,\n  \"runs\": [\n    {\n      \"id\": 42,\n      \"userId\": \"...\",\n      \"tier\": \"MESSAGES\",\n      \"status\": \"completed\",\n      \"source\": \"manual\",\n      \"messageId\": 1234,\n      \"startedAt\": \"2026-05-19T08:30:00Z\",\n      \"endedAt\": \"2026-05-19T08:30:03Z\",\n      \"summary\": \"Delivered. 4 tool calls, 3200ms\",\n      \"insights\": null\n    }\n  ]\n}\n```\n\nRun statuses: `running`, `completed`, `failed`  \nSources: `manual`, `cron`\n\n---\n\n### Get Run Detail (with actions)\n\n```bash\ncurl -s \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Fruns\u002F42\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" | jq .\n```\n\nResponse includes the run record plus any `heartbeat_actions` taken during that run:\n\n```json\n{\n  \"success\": true,\n  \"run\": { \"id\": 42, \"status\": \"completed\", \"summary\": \"...\" },\n  \"actions\": [\n    {\n      \"id\": 1,\n      \"runId\": 42,\n      \"type\": \"search_calendar_events\",\n      \"mode\": \"message\",\n      \"status\": \"executed\",\n      \"payload\": { \"query\": \"today\" },\n      \"result\": { \"events\": [...] }\n    }\n  ]\n}\n```\n\n---\n\n### Read HEARTBEAT.md Instructions\n\n```bash\ncurl -s \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Finstructions\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" | jq .\n```\n\nResponse:\n\n```json\n{\n  \"success\": true,\n  \"instructions\": \"# Heartbeat Checklist\\n\\n- Check email for urgent...\",\n  \"isDefault\": false,\n  \"updatedAt\": \"2026-05-19T10:30:00Z\"\n}\n```\n\n---\n\n### Edit HEARTBEAT.md Instructions\n\n```bash\ncurl -s -X PUT \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Finstructions\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"content\": \"# Heartbeat Checklist\\n\\n- Check email for urgent messages\\n- Review calendar for next 2 hours\\n- Browse Aicoo Square builders subsquare\\n- Flag overdue high-priority tasks\\n- If new post opportunities, draft a Square post\"\n  }' | jq .\n```\n\nMax 10,000 characters. Default HEARTBEAT.md (created on first run if missing):\n\n```markdown\n# Heartbeat Checklist\n\n- Check email for urgent or important messages\n- Review calendar for events in the next 2 hours\n- Flag overdue or high-priority tasks\n- Summarize what you found, even if everything looks fine\n```\n\n---\n\n### Quick Status\n\n```bash\ncurl -s \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Fstatus\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" | jq .\n```\n\nResponse:\n\n```json\n{\n  \"success\": true,\n  \"status\": {\n    \"tier\": \"MESSAGES\",\n    \"lastRun\": {\n      \"id\": 42,\n      \"status\": \"completed\",\n      \"source\": \"cron\",\n      \"startedAt\": \"2026-05-19T08:30:00Z\",\n      \"endedAt\": \"2026-05-19T08:30:03Z\",\n      \"summary\": \"Delivered. 4 tool calls, 3200ms\"\n    },\n    \"runsLast24h\": 8\n  }\n}\n```\n\n---\n\n## Scheduling\n\nHeartbeat runs via the platform's cron system (not user-configured intervals yet). For external scheduling:\n\n### Claude Code\n\n```\n\u002Floop 30m run heartbeat and report summary\n\u002Froutine heartbeat every 30 minutes: POST \u002Fv1\u002Fheartbeat\u002Frun, report result\n```\n\n### Cron (standalone)\n\n```bash\n# Every 30 minutes during work hours\n*\u002F30 9-18 * * 1-5 curl -s -X POST \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Frun\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" > \u002Fdev\u002Fnull\n```\n\n---\n\n## How Heartbeat Works Internally\n\n1. **Policy check**: loads tier from `heartbeat_policies`\n2. **Instructions load**: reads `HEARTBEAT.md` from user's memory\u002Fself\n3. **Memory context**: loads user's long-term memory for personalization\n4. **Tool setup**: creates tools for email, calendar, todo, notes (write-heavy tools excluded)\n5. **Agent turn**: runs multi-step AI call (up to 12 steps, 40s timeout)\n6. **Suppression check**: compares output to last 24h message (Jaccard >0.85 = suppress)\n7. **Delivery**: appends message to pinned agent conversation, increments unread\n8. **Record**: updates `heartbeat_runs` with status, summary, messageId\n\n### Tools available to heartbeat\n\n- `search_calendar_events` — check upcoming events\n- `search_emails` — scan inbox\n- `search_todos` \u002F `create_todo` — task management\n- `search_notes` \u002F `create_note` — workspace notes\n- `memory_write` — save durable facts (rate-limited: 1 write per 60min, max 4 daily entries)\n\n### Tools excluded from heartbeat\n\nSend email, schedule meetings, edit calendar events, edit notes, project management tools, composio tools.\n\n---\n\n## Practical Patterns\n\n### Pattern 1: Morning briefing heartbeat\n\nEdit HEARTBEAT.md:\n```markdown\n# Heartbeat Checklist\n\n- Summarize unread emails (top 3 by importance)\n- List today's calendar events with times\n- Show overdue\u002Fdue-today tasks\n- Note any pending friend\u002Fagent requests\n```\n\n### Pattern 2: Square-aware heartbeat\n\nEdit HEARTBEAT.md:\n```markdown\n# Heartbeat Checklist\n\n- Check email for urgent messages\n- Review calendar for next 2 hours\n- Browse Aicoo Square `builders` and `projects` subsquares\n- If I find relevant posts, note them for follow-up\n- If I have project updates to share, draft a Square post\n```\n\n### Pattern 3: Network monitoring heartbeat\n\nEdit HEARTBEAT.md:\n```markdown\n# Heartbeat Checklist\n\n- Check for new agent access requests\n- Review unread direct messages\n- Scan group chats for mentions\n- Flag anything requiring my decision\n```\n\n---\n\n## Full Endpoint Reference\n\n| Endpoint | Method | Purpose |\n|----------|--------|---------|\n| `\u002Fv1\u002Fheartbeat\u002Frun` | POST | Trigger heartbeat manually |\n| `\u002Fv1\u002Fheartbeat\u002Fpolicy` | GET\u002FPOST | Get\u002Fset tier (MESSAGES\u002FACTIONS) |\n| `\u002Fv1\u002Fheartbeat\u002Fruns` | GET | List past runs (limit param) |\n| `\u002Fv1\u002Fheartbeat\u002Fruns\u002F{id}` | GET | Inspect run + actions detail |\n| `\u002Fv1\u002Fheartbeat\u002Finstructions` | GET | Read HEARTBEAT.md content |\n| `\u002Fv1\u002Fheartbeat\u002Finstructions` | PUT | Update HEARTBEAT.md content |\n| `\u002Fv1\u002Fheartbeat\u002Fstatus` | GET | Quick status: last run, tier, run count today |\n\n### Planned (not yet implemented)\n\n| Endpoint | Method | Purpose |\n|----------|--------|---------|\n| `\u002Fv1\u002Fheartbeat\u002Fschedule` | GET\u002FPOST | Get\u002Fset schedule (interval, active hours, weekdays) |\n\nUntil schedule API exists, use external cron or Claude Code `\u002Floop`\u002F`\u002Froutine`.\n\n---\n\n## Integration with Other Skills\n\n- **square**: Add Square browsing\u002Fposting to HEARTBEAT.md for autonomous discovery\n- **group-chat**: Heartbeat can monitor group activity and surface unread summaries\n- **context-sync**: Heartbeat's `memory_write` tool keeps long-term memory updated\n- **daily-brief**: Heartbeat runs multiple times\u002Fday; daily-brief is once per morning\n\n---\n\n## Security Notes\n\n- Heartbeat excluded tools prevent unintended write actions in MESSAGES tier\n- Memory writes are rate-limited (1 per 60min cooldown, max 4 daily entries, max 3 long-term)\n- Duplicate suppression prevents notification spam\n- Agent turn has 40s timeout to prevent runaway executions\n- Never expose API keys in heartbeat output\n","# Heartbeat — Autonomous Agent Loop\n\nHeartbeat is Aicoo's proactive engine. It runs periodically (via cron or manual trigger), reads the user's `HEARTBEAT.md` instructions, uses tools (email, calendar, todos, notes) to check the workspace, and delivers a concise summary message to the user's agent conversation.\n\n---\n\n## Concepts\n\n| Concept | Meaning |\n|---------|---------|\n| HEARTBEAT.md | User-editable instruction file in `\u002FMemory\u002FSelf\u002F`. Defines what the agent checks each run. |\n| Tier | `MESSAGES` (default) = read-only checks + summary. `ACTIONS` = can take write actions (future). |\n| Run | A single execution of the heartbeat loop. Tracked in `heartbeat_runs`. |\n| Suppression | If the agent produces a near-duplicate message (>85% Jaccard similarity within 24h), it's suppressed. |\n| Agent Turn | The AI model call that processes instructions, uses tools, and produces a summary. |\n\n---\n\n## API Endpoints\n\nBase: `https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1`  \nAuth: `Authorization: Bearer ${AICOO_API_KEY:-$PULSE_API_KEY}`\n\n---\n\n### Run Heartbeat (manual trigger)\n\n```bash\ncurl -s -X POST \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Frun\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{}' | jq .\n```\n\nOptional body:\n\n| Field | Type | Notes |\n|-------|------|-------|\n| `tier` | string | `ACTIONS` or `MESSAGES`. If set, updates policy before running. |\n| `dryRun` | boolean | Reserved for future use. |\n\nResponse:\n\n```json\n{\n  \"success\": true,\n  \"result\": {\n    \"runId\": 42,\n    \"tier\": \"MESSAGES\",\n    \"text\": \"All clear — 2 emails in inbox (neither urgent), standup at 2 PM, 1 overdue todo: 'Review PR #312'.\",\n    \"suppressed\": false,\n    \"suppressReason\": null,\n    \"delivered\": true,\n    \"toolCalls\": 4,\n    \"model\": \"gpt-5-mini\",\n    \"elapsedMs\": 3200\n  }\n}\n```\n\n---\n\n### Get Heartbeat Policy\n\n```bash\ncurl -s \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Fpolicy\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" | jq .\n```\n\nResponse:\n\n```json\n{\n  \"success\": true,\n  \"policy\": {\n    \"tier\": \"MESSAGES\"\n  }\n}\n```\n\n---\n\n### Set Heartbeat Policy\n\n```bash\ncurl -s -X POST \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Fpolicy\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"tier\": \"ACTIONS\" }' | jq .\n```\n\nValid tiers:\n- `MESSAGES` — read-only checks, delivers summary message (default)\n- `ACTIONS` — agent can take write actions (send emails, create todos, etc.)\n\n---\n\n### List Past Runs\n\n```bash\ncurl -s \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Fruns?limit=10\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" | jq .\n```\n\n**Query params:**\n\n| Param | Default | Notes |\n|-------|---------|-------|\n| `limit` | 20 | Max 50 |\n\nResponse:\n\n```json\n{\n  \"success\": true,\n  \"runs\": [\n    {\n      \"id\": 42,\n      \"userId\": \"...\",\n      \"tier\": \"MESSAGES\",\n      \"status\": \"completed\",\n      \"source\": \"manual\",\n      \"messageId\": 1234,\n      \"startedAt\": \"2026-05-19T08:30:00Z\",\n      \"endedAt\": \"2026-05-19T08:30:03Z\",\n      \"summary\": \"Delivered. 4 tool calls, 3200ms\",\n      \"insights\": null\n    }\n  ]\n}\n```\n\nRun statuses: `running`, `completed`, `failed`  \nSources: `manual`, `cron`\n\n---\n\n### Get Run Detail (with actions)\n\n```bash\ncurl -s \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Fruns\u002F42\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" | jq .\n```\n\nResponse includes the run record plus any `heartbeat_actions` taken during that run:\n\n```json\n{\n  \"success\": true,\n  \"run\": { \"id\": 42, \"status\": \"completed\", \"summary\": \"...\" },\n  \"actions\": [\n    {\n      \"id\": 1,\n      \"runId\": 42,\n      \"type\": \"search_calendar_events\",\n      \"mode\": \"message\",\n      \"status\": \"executed\",\n      \"payload\": { \"query\": \"today\" },\n      \"result\": { \"events\": [...] }\n    }\n  ]\n}\n```\n\n---\n\n### Read HEARTBEAT.md Instructions\n\n```bash\ncurl -s \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Finstructions\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" | jq .\n```\n\nResponse:\n\n```json\n{\n  \"success\": true,\n  \"instructions\": \"# Heartbeat Checklist\\n\\n- Check email for urgent...\",\n  \"isDefault\": false,\n  \"updatedAt\": \"2026-05-19T10:30:00Z\"\n}\n```\n\n---\n\n### Edit HEARTBEAT.md Instructions\n\n```bash\ncurl -s -X PUT \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Finstructions\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"content\": \"# Heartbeat Checklist\\n\\n- Check email for urgent messages\\n- Review calendar for next 2 hours\\n- Browse Aicoo Square builders subsquare\\n- Flag overdue high-priority tasks\\n- If new post opportunities, draft a Square post\"\n  }' | jq .\n```\n\nMax 10,000 characters. Default HEARTBEAT.md (created on first run if missing):\n\n```markdown\n# Heartbeat Checklist\n\n- Check email for urgent or important messages\n- Review calendar for events in the next 2 hours\n- Flag overdue or high-priority tasks\n- Summarize what you found, even if everything looks fine\n```\n\n---\n\n### Quick Status\n\n```bash\ncurl -s \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Fstatus\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" | jq .\n```\n\nResponse:\n\n```json\n{\n  \"success\": true,\n  \"status\": {\n    \"tier\": \"MESSAGES\",\n    \"lastRun\": {\n      \"id\": 42,\n      \"status\": \"completed\",\n      \"source\": \"cron\",\n      \"startedAt\": \"2026-05-19T08:30:00Z\",\n      \"endedAt\": \"2026-05-19T08:30:03Z\",\n      \"summary\": \"Delivered. 4 tool calls, 3200ms\"\n    },\n    \"runsLast24h\": 8\n  }\n}\n```\n\n---\n\n## Scheduling\n\nHeartbeat runs via the platform's cron system (not user-configured intervals yet). For external scheduling:\n\n### Claude Code\n\n```\n\u002Floop 30m run heartbeat and report summary\n\u002Froutine heartbeat every 30 minutes: POST \u002Fv1\u002Fheartbeat\u002Frun, report result\n```\n\n### Cron (standalone)\n\n```bash\n# Every 30 minutes during work hours\n*\u002F30 9-18 * * 1-5 curl -s -X POST \"https:\u002F\u002Fwww.aicoo.io\u002Fapi\u002Fv1\u002Fheartbeat\u002Frun\" \\\n  -H \"Authorization: Bearer $AICOO_API_KEY\" > \u002Fdev\u002Fnull\n```\n\n---\n\n## How Heartbeat Works Internally\n\n1. **Policy check**: loads tier from `heartbeat_policies`\n2. **Instructions load**: reads `HEARTBEAT.md` from user's memory\u002Fself\n3. **Memory context**: loads user's long-term memory for personalization\n4. **Tool setup**: creates tools for email, calendar, todo, notes (write-heavy tools excluded)\n5. **Agent turn**: runs multi-step AI call (up to 12 steps, 40s timeout)\n6. **Suppression check**: compares output to last 24h message (Jaccard >0.85 = suppress)\n7. **Delivery**: appends message to pinned agent conversation, increments unread\n8. **Record**: updates `heartbeat_runs` with status, summary, messageId\n\n### Tools available to heartbeat\n\n- `search_calendar_events` — check upcoming events\n- `search_emails` — scan inbox\n- `search_todos` \u002F `create_todo` — task management\n- `search_notes` \u002F `create_note` — workspace notes\n- `memory_write` — save durable facts (rate-limited: 1 write per 60min, max 4 daily entries)\n\n### Tools excluded from heartbeat\n\nSend email, schedule meetings, edit calendar events, edit notes, project management tools, composio tools.\n\n---\n\n## Practical Patterns\n\n### Pattern 1: Morning briefing heartbeat\n\nEdit HEARTBEAT.md:\n```markdown\n# Heartbeat Checklist\n\n- Summarize unread emails (top 3 by importance)\n- List today's calendar events with times\n- Show overdue\u002Fdue-today tasks\n- Note any pending friend\u002Fagent requests\n```\n\n### Pattern 2: Square-aware heartbeat\n\nEdit HEARTBEAT.md:\n```markdown\n# Heartbeat Checklist\n\n- Check email for urgent messages\n- Review calendar for next 2 hours\n- Browse Aicoo Square `builders` and `projects` subsquares\n- If I find relevant posts, note them for follow-up\n- If I have project updates to share, draft a Square post\n```\n\n### Pattern 3: Network monitoring heartbeat\n\nEdit HEARTBEAT.md:\n```markdown\n# Heartbeat Checklist\n\n- Check for new agent access requests\n- Review unread direct messages\n- Scan group chats for mentions\n- Flag anything requiring my decision\n```\n\n---\n\n## Full Endpoint Reference\n\n| Endpoint | Method | Purpose |\n|----------|--------|---------|\n| `\u002Fv1\u002Fheartbeat\u002Frun` | POST | Trigger heartbeat manually |\n| `\u002Fv1\u002Fheartbeat\u002Fpolicy` | GET\u002FPOST | Get\u002Fset tier (MESSAGES\u002FACTIONS) |\n| `\u002Fv1\u002Fheartbeat\u002Fruns` | GET | List past runs (limit param) |\n| `\u002Fv1\u002Fheartbeat\u002Fruns\u002F{id}` | GET | Inspect run + actions detail |\n| `\u002Fv1\u002Fheartbeat\u002Finstructions` | GET | Read HEARTBEAT.md content |\n| `\u002Fv1\u002Fheartbeat\u002Finstructions` | PUT | Update HEARTBEAT.md content |\n| `\u002Fv1\u002Fheartbeat\u002Fstatus` | GET | Quick status: last run, tier, run count today |\n\n### Planned (not yet implemented)\n\n| Endpoint | Method | Purpose |\n|----------|--------|---------|\n| `\u002Fv1\u002Fheartbeat\u002Fschedule` | GET\u002FPOST | Get\u002Fset schedule (interval, active hours, weekdays) |\n\nUntil schedule API exists, use external cron or Claude Code `\u002Floop`\u002F`\u002Froutine`.\n\n---\n\n## Integration with Other Skills\n\n- **square**: Add Square browsing\u002Fposting to HEARTBEAT.md for autonomous discovery\n- **group-chat**: Heartbeat can monitor group activity and surface unread summaries\n- **context-sync**: Heartbeat's `memory_write` tool keeps long-term memory updated\n- **daily-brief**: Heartbeat runs multiple times\u002Fday; daily-brief is once per morning\n\n---\n\n## Security Notes\n\n- Heartbeat excluded tools prevent unintended write actions in MESSAGES tier\n- Memory writes are rate-limited (1 per 60min cooldown, max 4 daily entries, max 3 long-term)\n- Duplicate suppression prevents notification spam\n- Agent turn has 40s timeout to prevent runaway executions\n- Never expose API keys in heartbeat output\n",{"name":5,"metadata":24,"description":7,"user-invokable":27},{"author":25,"version":26},"systemind","1.0.0",true,"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fa\u002Faicoo-heartbeat",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":27},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill heartbeat",{"tool":43,"command":44},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill heartbeat",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill heartbeat","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Faicoo-heartbeat\u002FSKILL.md",[],[51,59,66,73,80,87],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":58},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":58},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":58},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":58},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":58},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":58},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]