This skill should be used when the user starts their workday PR session and wants one desk for everything PR — "pr desk", "start my PR desk", "what needs my review", "review sweep", "review queue", "which PRs can I merge", "triage feedback on my PRs", "watch github", "monitor my PRs", "check hourly for reviews", "weekly PR review", or /pr-desk [week]. Gathers PRs awaiting their review and their own PRs with new feedback (github.com + GitHub Enterprise), fans out review and feedback-triage subagents, reports linked tables with merge confidence and recommended actions, lets them pick actions, then watches hourly in the same session. Never posts, pushes or marks anything read.
Ships in sejas-ai-code-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Run once at the start of a workday session (Mondays, or every weekday), then keep watching in that conversation. One run = gather → fan out → report → pick actions → schedule the watch.
scripts/gather.sh [--summary]: github.com INCOMING + MINE + notifications as JSON, with
delta per PR against state.json. Saves last-gather.json. Read-only.scripts/mark-seen.sh [ghe.json]: record what was reported. Run it after the report.scripts/week.sh, scripts/board.sh <owner/repo>: weekly section and repo board.scripts/notifications.sh, scripts/find-clone.sh <owner/repo>: helpers.config.json (copy config.example.json; git-ignored): paths, board_repos, agent cap, cron, bot logins.prompts.md: agent prompts, tick prompt, GHE recipe, report skeleton. Read it before step 2.identity_config (gh_user, gh_user_enterprise, enterprise_host,
enterprise_owner, enterprise_repos). Never hardcode handles or hosts.~/claude.nosync/pr-desk/. Reports: ~/claude.nosync/reviews/pr-desk/YYYY-MM-DD.md.
Review docs: ~/claude.nosync/reviews/YYYY-MM-DD-<repo>-<n>-<slug>.md.PATCH /notifications is forbidden).internal_hosts_re in config.json) and rewrite any hit before showing it.⚠️ No connection row in the affected table.bash ~/.claude/skills/pr-desk/scripts/gather.sh --summary (then read fields from
~/claude.nosync/pr-desk/last-gather.json with jq as needed). Any errors[] entry → warning
rule above; partial: true means GONE was suppressed.prompts.md §5): try once, report, move on./pr-desk week: also week.sh and board.sh for each board_repos entry.What the JSON already decides (do not recompute):
| Field | Meaning |
|---|---|
incoming[] | open PRs with my review requested (direct false = via a team), plus PRs I reviewed that got commits after my review (rereview) |
freshness | new no review MD · stale last commit after newest MD mtime · current · draft |
needs_review_agent | new/stale and not draft |
mine[].flags | changes_requested, unresolved:N (last word not mine), ci_failing, conflicts, approved_unmerged, new_comments |
needs_triage | changed since last seen and has feedback to answer |
delta | new · new_commits · new_activity · state_change · unchanged |
gone[] | PRs seen last run that are no longer open (merged/closed) |
notifications[] | participating notifications not covered above (mentions, team requests on others' PRs) |
Freshness compares last commit with the review MD mtime, never updatedAt (comments and
labels churn it).
max_parallel_agents)needs_review_agent → general-purpose agent running the quick-pr-review skill (prompts.md §1).needs_triage → general-purpose triage agent (prompts.md §2).changes_requested, then oldest.
Over the cap: launch the first batch, start the next batch as agents finish.ls the review MDs before
trusting a verdict. Show the tables (step 3) as soon as the gather is done, with
reviewing… cells, and fill them when agents return; don't block the first answer on them.Use the skeleton in prompts.md §6. Keep it compact; one table per section.
Merge confidence 0-100 (INCOMING), from the latest review MD for the PR (or the agent's
return): base by verdict, Approve 85-95, Comment/needs discussion 50-70, Request changes 10-40.
Subtract for blocking high-confidence bugs (-10 to -20), open product questions (-5 to -10),
20+ files (-5), draft (-10), no update in a month (-10), failing CI or conflicts (-5).
Add for tiny scope, screenshots and solid tests, only non-blocking findings. Say once that the
score blends verdict, finding severity and staleness. No MD and no agent result → n/a.
MINE rows: flags in plain words plus one recommended action. Rows with a triage result get
a sub-table (### Triage: repo#n) with the recommended option per comment; show the reply
draft text in full (it's what the user will copy).
Save the report to ~/claude.nosync/reviews/pr-desk/YYYY-MM-DD.md (append ## Tick HH:MM
sections later in the day; never overwrite the morning run).
AskUserQuestion, multiSelect: true, max 4 questions × 4 options: group as "Fixes",
"Replies", "Reviews", "Other". If there are more candidates, offer the top ones by priority
and list the rest numbered in chat. Options, labelled with the linked PR in the description:
prompts.md §3. Change stays uncommitted in
a worktree; show the diff when it returns.pbcopy it when a
single draft is chosen). The user posts it./pr-walkthrough <url>, or run the layout.sh command the
review agent returned.Then run bash ~/.claude/skills/pr-desk/scripts/mark-seen.sh [~/claude.nosync/pr-desk/ghe.json]
(omit the file when GHE failed, so its old state is kept).
week)From week.sh and board.sh:
waiting_nudge_days: who is on the hook, and a suggested nudge.board_repos: every open non-draft PR, columns PR · Title · Author ·
Created · Updated · Review requested · Conversation · Status. — in Review requested marks
orphans worth grabbing; a team (e.g. a rotation) is not a person. Conversation = unresolved
threads first, then human comments, then review states; bot chatter is not a conversation.
Group separately: mine, bots (one line), merge_candidate (approved, no unresolved threads).
Drafts: count only. Flag updated > 30 days as stale.CronCreate (session cron, not /schedule: cloud routines have no gh auth):
cron from config.json tick_cron (weekdays 09:07 … 15:07), recurring: true, prompt =
the tick prompt in prompts.md §4, verbatim. Tell the user the job id, the cadence, that it
dies with the session and expires after 7 days, and how to cancel (CronDelete <id>).
Don't schedule a second job if one from this skill already runs (CronList).
The gather is already a delta: act only on rows with delta != "unchanged", gone[] and
notifications[]. Fan out only for those. Nothing new → reply exactly pr-desk: nothing new,
no PushNotification, no mark-seen needed. Something new → compact delta tables, one-line
PushNotification, append to today's report, AskUserQuestion, mark-seen. Don't re-list items
already reported unless they changed. A morning tick (before 10:00) covers the overnight
or weekend gap automatically, because since is the last run.
| Mistake | Fix |
|---|---|
| Running mark-seen before the report is shown | Deltas are lost on a crash; mark after reporting |
Using updatedAt for review staleness | Use freshness (last commit vs MD mtime) |
| Unscoped GHE search returning 0 read as "nothing" | Scope every GHE search by owner + repo |
| Spawning agents one message at a time | One message per batch, ≤ cap |
isolation: "worktree" from a session outside the PR's repo | Use the explicit worktree steps in prompts.md §3 |
| Reading every review MD | Only the newest MD per PR still open |
| Re-review agent starting from scratch | Point it at the prior MD and ask for the delta |
config.example.json (opens in a new tab)prompts.md (opens in a new tab)scripts/annotate.jq (opens in a new tab)scripts/board.sh (opens in a new tab)scripts/find-clone.sh (opens in a new tab)scripts/gather.sh (opens in a new tab)scripts/lib.sh (opens in a new tab)scripts/mark-seen.sh (opens in a new tab)scripts/notifications.sh (opens in a new tab)scripts/search.graphql (opens in a new tab)scripts/week.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/sejas-ai-code-skills:pr-deskfrom sejas-ai-code-skills
sejas-ai-code-skills@cascade-code-general-misc-3 is listed by joshuarweaver/cascade-code-general-misc-3 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin sejas-ai-code-skills40 skills in this plugin
/ai-prsList all open PRs targeting the Studio AI command with draft status, approval state, and requested reviewers/ai-radarUse when Antonio wants to catch up on frontier AI — "what's new in AI", "AI radar", "what is karpathy working on", "AI trends", "research digest", "what should I learn next", "where to invest learning time", or /ai-radar./blog-postThis skill should be used when the user asks to "write a blog post", "draft a blog post", "create a blog post", "write an article about", or wants to produce a markdown blog post on any topic. Outputs to ~/claude.nosync/posts/.