一键导入
watch-for-event
Subscribe to a system event (like agent:idle or task:completed) and create a WorkItem every time it fires — reactive follow-up, not time-based.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Subscribe to a system event (like agent:idle or task:completed) and create a WorkItem every time it fires — reactive follow-up, not time-based.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Plan and create a NESTED team hierarchy (parent coordination team + per-stream child teams) for a complex multi-stream goal. Use INSTEAD of recommend-team/materialize-team when the goal names 2+ parallel work-streams (e.g. frontend + backend + DevOps). Onboarding-only.
Search the live web for a query and return ranked results (title, URL, snippet) as JSON. Works with no API key (DuckDuckGo HTML fallback) and uses the Brave Search API or SerpAPI automatically when BRAVE_API_KEY / SERPAPI_KEY is set. Any agent can call it for research, competitor analysis, market/trend lookups, fact-checking, finding sources to cite, or grounding a non-software goal (marketing, growth, commerce) in real-world information.
Transcribe a local audio (or video) file to text with timestamps using Whisper. Defaults to local whisper.cpp (free, offline, word/segment-level timestamps) and automatically falls back to the OpenAI Whisper API (whisper-1) when the local engine is not installed. Any agent can call it for meetings, podcasts, voice notes, interviews, or video audio tracks.
Accept and take the next available task from the task queue. Use when an agent is idle and ready to pick up the highest-priority unassigned task. For assigning tasks to specific agents, use assign-task instead.
Register the agent as active with the Crewly backend on startup. Use when an agent first launches and needs to join the team and become visible to the orchestrator. For confirming responsiveness after registration, use heartbeat instead.
Analyze git changes and produce a structured code review with automated checks for missing tests, debug statements, potential secrets, large changes, and dependency modifications. Use when reviewing staged changes, unstaged diffs, recent commits, or branch comparisons before submitting a pull request. For task-level quality gates, use check-quality-gates instead.
| name | watch-for-event |
| description | Subscribe to a system event (like agent:idle or task:completed) and create a WorkItem every time it fires — reactive follow-up, not time-based. |
| version | 1.0.0 |
| category | followup |
| skillType | claude-skill |
| tags | ["followup","event","reactive","workitem"] |
| execution | {"type":"script","script":{"file":"execute.sh","interpreter":"bash","timeoutMs":15000}} |
Subscribe to a system event (like agent:idle or task:completed) and create
a WorkItem for yourself or another agent every time it fires. Use this when
your follow-up should be reactive to what Rex/the system does, not tied to
a wall-clock time.
schedule-followup| Need | Use |
|---|---|
| "Whenever Rex goes idle, check progress" | watch-for-event --event-type agent:idle --filter-session rex-session |
| "Alert me when any task completes" | watch-for-event --event-type task:completed |
| "Poll at 9am tomorrow" | schedule-followup --fire-at ... (time, not event) |
| "Check every hour up to 3 times" | schedule-followup --cron "0 * * * *" --max-fires 3 |
| Event | When it fires |
|---|---|
agent:idle | An agent's workingStatus flipped to idle |
agent:active | An agent started working |
agent:inactive | An agent stopped heartbeating |
task:completed | A task was marked done |
task:failed | A task failed |
See types/event-bus.types.ts for the authoritative list.
By default the watcher fires on every occurrence of the event type. Narrow
it with --filter-session (most common) to only fire for one specific agent,
or --filter-json for arbitrary payload matching.
# Only when THIS agent goes idle
bash execute.sh --event-type agent:idle \
--filter-session crewly-marketing-rex-member-1 \
--title "Rex idle — verify Rex task"
# Match a richer filter shape
bash execute.sh --event-type task:completed \
--filter-json '{"missionId":"q2-growth"}' \
--title "Q2 mission task landed"
list-my-followups,
cancellable by name via cancel-followup.--max-fires, great.
Otherwise rely on --max-idle-fires (default 3) to auto-cancel once the
watcher stops producing useful work.cancel-followup --id <trigger-id> or --name <name>maxFires exhausts, or maxIdleFires trips.