[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77W0EZQANBY9A6V6YP6BCT0":3,"skill-same:01M77W0EZQANBY9A6V6YP6BCT0":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M77W0EZQANBY9A6V6YP6BCT0","task-watcher",null,"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\u002Ft\u002Ftask-watcher\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# task-watcher — Async Task Monitoring & Callback\n\n> **Version**: 1.2.0  \n> **Author**: sly (OpenClaw)  \n> **License**: MIT  \n> **Install**: `clawhub install task-watcher`\n\nMonitor long-running async tasks (content review, CI\u002FCD, deployments) and get Discord\u002FTelegram notifications when states change.\n\n## What It Does\n\nRegister tasks → Watcher polls for state changes → Sends notifications on change\u002Fcompletion.\n\nPerfect for:\n- **Content publishing**: Monitor XHS\u002F社媒 review status after posting\n- **CI\u002FCD**: Track GitHub PR merges, build completions\n- **Deployments**: Watch rollout status\n- **Any async workflow**: Anything that takes time and you want to know when it's done\n\n## Architecture\n\n```\nAgent registers task → tasks.jsonl (shared-context)\n                            ↓\nCron (*\u002F3 * * * *) → watcher.py → Adapter checks state → state changed?\n                                                              ↓ Yes\n                                              Policy decides → Notifier sends Discord\n```\n\nPlugin architecture:\n- **Adapters**: Pluggable state checkers. Built-in: XHS, GitHub PR, Cron Job\n- **Notifiers**: Discord (via `openclaw agent --deliver`), Telegram, Session, File\n- **Policies**: Notification frequency, escalation, retry logic\n- **Stores**: JSONL-based persistence with file locking\n- **Protection**: `expires_at` timeout (default 6h), 3x delivery failure escalation\n\n## Quick Start\n\n### 1. Install\n\n```bash\nclawhub install task-watcher\n```\n\n### 2. Register a monitoring task\n\n```python\nimport sys, os\nsys.path.insert(0, os.path.expanduser(\"~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Ftask-watcher\u002Fscripts\u002Flib\"))\n\nfrom models import CallbackTask\nfrom stores import JsonlTaskStore\n\nstore = JsonlTaskStore(\"~\u002F.openclaw\u002Fshared-context\u002Fmonitor-tasks\u002Ftasks.jsonl\")\ntask = CallbackTask(\n    task_id=\"tsk_my_task_001\",\n    owner_agent=\"content\",\n    target_system=\"xiaohongshu\",\n    target_object_id=\"note_id_here\",\n    reply_channel=\"discord\",\n    reply_to=\"channel:YOUR_CHANNEL_ID\",\n    current_state=\"submitted\",\n    expires_at=\"2026-03-08T12:00:00\",  # 6h timeout recommended\n)\nstore.create(task)\n```\n\nOr via CLI:\n\n```bash\ncd ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Ftask-watcher\npython3 scripts\u002Fregister_task.py \\\n  --task-id tsk_my_001 \\\n  --system xiaohongshu \\\n  --object-id note_abc123 \\\n  --reply-to channel:1234567890 \\\n  --expires-hours 6\n```\n\n### 3. Run watcher (cron)\n\n```bash\n# Add to crontab - every 3 minutes\n*\u002F3 * * * * cd ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Ftask-watcher && \\\n  python3 scripts\u002Fwatcher.py --once >> ~\u002F.openclaw\u002Flogs\u002Fwatcher.log 2>&1\n```\n\n### 4. Custom adapter\n\n```python\nfrom adapters import StateAdapter, StateResult\n\nclass MyAdapter(StateAdapter):\n    @property\n    def name(self): return \"my-system\"\n    \n    def supports(self, task): return task.target_system == \"my-system\"\n    def health_check(self): return True\n    \n    def check(self, task):\n        status = check_my_system(task.target_object_id)\n        return StateResult(state=status, terminal=(status == \"done\"))\n```\n\n## File Structure\n\n```\ntask-watcher\u002F\n├── SKILL.md                    # This file\n├── _meta.json                  # ClawHub metadata\n├── scripts\u002F\n│   ├── watcher.py              # Cron entry point\n│   ├── register_task.py        # CLI task registration\n│   └── lib\u002F\n│       ├── __init__.py         # Package exports\n│       ├── models.py           # Data models (CallbackTask, StateResult, SendResult)\n│       ├── stores.py           # JSONL TaskStore with file locking\n│       ├── adapters.py         # State adapters (XHS, GitHub, Cron)\n│       ├── notifiers.py        # Discord\u002FTelegram\u002FFile notifiers\n│       ├── policies.py         # Notification policies\n│       └── bus.py              # WatcherBus orchestrator\n└── tests\u002F\n    ├── test_models.py\n    ├── test_stores.py\n    ├── test_adapters.py\n    ├── test_notifiers.py\n    ├── test_policies.py\n    └── test_bus.py\n```\n\n## Data Paths\n\n| File | Purpose |\n|------|---------|\n| `~\u002F.openclaw\u002Fshared-context\u002Fmonitor-tasks\u002Ftasks.jsonl` | Active tasks |\n| `~\u002F.openclaw\u002Fshared-context\u002Fmonitor-tasks\u002Faudit.log` | Audit trail |\n| `~\u002F.openclaw\u002Fshared-context\u002Fmonitor-tasks\u002Fnotifications\u002F` | Notification files |\n\n## Built-in Adapters\n\n| Adapter | System | How It Checks |\n|---------|--------|---------------|\n| `xiaohongshu-note-review` | XHS content review | Mock file \u002F packet file |\n| `github-pr-status` | GitHub PR merge | Skeleton (extend for your use) |\n| `cron-job-completion` | Cron job tracking | File-based status check |\n\n## Requirements\n\n- Python 3.10+\n- OpenClaw 2026.3+ (for `openclaw agent --deliver`)\n- No external dependencies (stdlib only)\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Ft\u002Ftask-watcher",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":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill task-watcher",{"tool":37,"command":38},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill task-watcher",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill task-watcher","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ft\u002Ftask-watcher\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"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":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"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":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"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":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"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":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"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",[],[]]