一键导入
oc-poll
Check the message queue for new user messages and process them. This is the heartbeat of clawed-back. Typically triggered by CronCreate on a schedule.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check the message queue for new user messages and process them. This is the heartbeat of clawed-back. Typically triggered by CronCreate on a schedule.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Robust, line-based file editing. Replace a range of lines in a file with new content by line number instead of exact string matching. Use when the user says 'robust-edit', '/robust-edit', 'replace lines', 'edit lines N to M', or when character-level matching with the Edit tool keeps failing on multi-line changes or uncertain whitespace.
Review code changes for quality, security, and correctness. Use when the user says "review this PR", "review these changes", "check my code", "look at what I changed", or after implementing a feature. Produces a severity-organized report.
Diagnose and fix context window issues. Use when Claude seems confused, forgetful, slow, or the user says "context is full", "you forgot", "you're repeating yourself", "start fresh", or "why are you ignoring my instructions".
Structured git workflow for commits, branches, and PRs. Use when the user says "commit", "create a PR", "new branch", "prepare for review", "ship this", or "push my changes". Safe, conventional git operations with checkpoints.
Deep interview to reach shared understanding before building. Use when starting a complex feature, when requirements are unclear, or when the user says "grill me", "interview me", "ask me questions", "let's figure this out", or "grill me lightly" for a quick version.
Approval gate for dangerous operations. Use internally before executing destructive commands, file deletions, git pushes, or external API calls from the web chat. Do NOT invoke directly.
| name | oc-poll |
| description | Check the message queue for new user messages and process them. This is the heartbeat of clawed-back. Typically triggered by CronCreate on a schedule. |
| allowed-tools | Bash(python*) Read Write |
You are the heartbeat of clawed-back. Your job is to check if there are new messages from the user and process them.
First, do a lightweight peek at the queue:
cd $PROJECT_ROOT/.claude/skills/oc-poll/scripts && python queue_manager.py peek
If {"pending": 0} — no new messages. Do nothing more.
If pending > 0 — process messages by reading and handling them:
cd $PROJECT_ROOT/.claude/skills/oc-poll/scripts && python queue_manager.py readdata/sessions/conversation.jsoncd $PROJECT_ROOT/.claude/skills/oc-poll/scripts && python queue_manager.py write '{"content": "...", "type": "text"}'cd $PROJECT_ROOT/.claude/skills/oc-poll/scripts && python queue_manager.py ack <id>cd $PROJECT_ROOT/.claude/skills/oc-poll/scripts && python queue_manager.py peek — if more pending, repeatThe polling state file is at data/sessions/poll_state.json:
{
"mode": "idle",
"last_activity": 0.0,
"cron_job_id": null
}
IDLE → ACTIVE: When you find a message, update last_activity to now and mode to active. The outer polling mechanism should switch from CronCreate (1 min) to /loop (10s).
ACTIVE → IDLE: When checking and finding no messages, look at last_activity. If it was more than 5 minutes ago, update mode to idle. The outer mechanism switches back to CronCreate.