| name | poll-for-work |
| description | Poll for assigned experiment PRs for a student. Use this skill to: check for assignments, poll for work, see if there's a PR assigned to me. Triggers for: "any work for me?", "check for assignments", "poll for PRs".
|
| argument-hint | <student-name> |
| context | fork |
| model | claude-sonnet-4-6 |
| effort | high |
poll-for-work
Check whether the advisor has assigned you an experiment PR to work on. This is a one-shot check: return the result to the parent agent immediately.
Assignments are Github labels, not GitHub assignees:
- The current advisor branch is also a routing label. A PR is assigned to you only when it has the following labels:
$ADVISOR_BRANCH (current advisor branch), your name label like so: student:$0, and this status label: status:wip.
- Never use
gh pr list --assignee ..., --author, or a hand-written replacement query for assignment polling.
- Do not use the Claude Code
Monitor tool for assignment polling. The pod entrypoint owns waiting and re-entry.
Arguments
- $0 — Your student name (e.g.
fern)
Steps
- Source the library and query for assigned experiment PRs:
source "${CLAUDE_PLUGIN_ROOT}/scripts/senpai-gh.sh"
student_poll_for_work "$0"
-
If PRs are returned, for each one:
- Note the PR number, title, and branch name
- Check for advisor comments (this might be a revision, not a fresh assignment):
pr_all_comments <number>
-
Return a summary:
If work is available:
WORK_AVAILABLE: PR <pr-number> "<pr-title>" on branch <branch-name>
If the PR has revision comments from the advisor, include that:
WORK_AVAILABLE (REVISION): PR <pr-number> "<pr-title>" on branch <branch-name> — advisor requests: "<advisor-comment>"
If nothing:
NO_WORK
Keep the response short — the parent agent just needs to know whether to start working or keep waiting.