/shared:github-planfrom shared
Plans and tracks durable work using GitHub issues, sub-issues, milestones, and projects. Manages claims, blockers, wait records, and status reconciliation for long-running workstreams.
Ships in shared. 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.
Use GitHub issues as the durable planning database: one canonical issue or graph with an observable finish line, current status, next action, and accurate dependencies. Keep fuzzy ideas in chat until they need a durable record. Projects and other views display that record. Keep offline/private drafts in chat until they are ready for a GitHub issue.
Apply task scope and authorization and
talking with the Director. Follow the
executing loop for next and go.
Use github for PRs, Actions, and landing; use direction for changes to
DIRECTION.md or the Director's waypoints.
Before private operational lookup during planning, read .github/github.json when present and use
its task-relevant docs routes and declared relatedRepos. A related repo name
alone establishes no operational authority; use the scope its instructions or
docs assign.
If a declared route answers the task, use it without opening the local docs
fallback.
When the task needs private infrastructure facts, access paths, or operational
ownership and the declared routes do not answer it, make loading docs-lookup
your next step. Complete that load before following a local-context pointer
from repository instructions or opening its private document. Then use the
loaded skill to select and read the task-relevant source. Loading it after the
read does not cover that read. Missing metadata alone
does not require private lookup for ordinary source work; do not read private
operational docs unless the task needs those operational facts. The local
docs source supplies task-specific context, not a repository inventory. Keep
private identities and routing details out of public plans. If neither route
is configured, report the local documentation configuration gap and continue
independent planning from checked-in evidence.
Run the maintained planning helper from the client repository, using this skill's base directory for the path:
uv run <skill-dir>/../github/scripts/gh-plan.py <command>
The frontmatter at the top of this file owns command-policy routing; read it
if the host hides it. Use the sibling github/scripts/gh-issue
and github/scripts/gh-comment for multiline issue/comment writes. If planning
helpers are unavailable, use gh with body files and compact JSON reads under
the github skill's authentication rules. Keep GitHub issues as the durable
record; never bypass an ownership or dependency refusal by changing tools or
identities.
agent:claude and agent:codex route an issue to that agent family. An
unlabeled issue is available to either family; a specific model stays in issue
text. ensure-labels creates both routing labels alongside share and type labels.
Apply assignments only after the installed skills support this convention.
next --agent claude|codex selects that family and unlabeled issues, and reports
other-family issues as assigned_elsewhere. Without the flag, the helper detects
the active harness when only one family’s session markers are present. When
markers conflict or are absent, it checks the bounded parent-process chain for
an executable named codex or claude, including Codex's remote app-server
daemon. An unfamiliar executable or script runtime stops the lookup; version-named
Claude workers still need markers or explicit selection. If the chain cannot
identify the worker, pass --agent claude|codex for the actual
running family. When detection is unavailable
or both routing labels are present, labeled issues remain excluded; identify the
running family with --agent, or resolve the conflicting assignment.
Before go, claim checks the labels again and stops on a mismatch, naming the
label. An explicit Director override for this session permits
claim --agent-override "<recorded decision or user instruction>"; the reason is
recorded in the claim and does not change the assignment or other claim gates.
Do not use --agent to impersonate the assigned family.
Assign new issues with gh-plan.py create ... --agent claude|codex or
gh-issue create ... --agent claude|codex. Creation ensures the requested label
exists and rejects conflicting family labels. It never infers an assignment
from the authoring harness.
Searches, index, and global next repository discovery exclude archived repositories
by default. Add --include-archived to the command to include historical work.
Explicit issue reads and linked dependency evidence remain available.
Within one check of a new bug report, Client request or imported feedback item, check current code, link duplicates and record the concrete next action on the original issue. Keep that issue as the work record; preserve the author's request under issue ownership.
Record each triaged request that remains open, with its next actor/action and any real person/event wait through Create Or Update A Plan and Derived Status. A reproduced defect within the agreed outcome enters staffing in the overall DIRECTION Order and available capacity; no second ticket or Director intake step is needed. Outside-user bugs use the own-projects share; other tooling still needs Order item 3 admission. Features, preferences and unclear reports get a clarifying question or investigation, not an invented build. For clarifying questions on Client reports, follow Asking a Client. Keep stop boundaries and Client release acceptance in force.
For a new request on closed work, reopen its source issue. For a merged change that cannot be reopened, reuse or record one source issue with the comment link and next action. Check that it is a real request first; a reply alone is not one. A reply or acknowledgement never completes a request. Keep the original issue open with its next action until that action is done; link a duplicate to its open canonical work record. A reply does not clear a recorded wait.
The Supervisor or intake agent reuses global next
on each routine check: gh-plan.py --repo OWNER/direction next. Its open-state
inventory includes unlabelled issues, imported feedback and Client-agent reports.
Read needs_status, candidates, underway work, waits and exclusions,
not only available_candidates. Increase --limit until candidate rows match
candidate_count, and follow incomplete graph, discovery and candidate coverage
before calling intake clear within the accessible repositories. Workers apply
triage only to reports on their assigned item or routed to them; portfolio
discovery belongs to the intake agent.
Repository-local next and index also inventory every open issue by default.
Use local needs_status for ordinary agent triage, preserving real holds and
claim checks before implementation. An explicit index --label remains a
filtered query; a truncated inventory requires a larger bound before calling
intake clear.
Check known repository-wide Director holds before selection or implementation; active issue labels and continuing background jobs do not lift a hold.
gh-plan.py next. Respect native blocked-by relationships and the
merged DIRECTION.md milestone order; without that file, milestone creation
order applies. Within a milestone, prioritize dependency impact, then issue
age. Project Focus is context, not an override.show <issue> --full: original request, finish
line, Current Status, blockers, and all comments. Reconcile comment-only
requirements before recommending or implementing it.
For milestone admission, apply the milestone contract
before citing a Track.next, report the selected issue, why it fits the plan, and recorded
waits, then stop without changing planning state. On authorized go, run
gh-plan.py --repo OWNER/REPO claim <issue> --worker <worker> --session <session-id> --branch <task-branch> --next-action "<action>" before creating a
branch or worktree, adding --admission <kind> when the overall Order
admits the work: live-site breakage, a client-request on a live product
(cite the Client's own request with --admission-link), a native-linked
milestone item (no repeated Track citation), a
repeat-stop with both occurrences, own-project work from the Order's
weekly own-projects share, or spare-capacity. Name the
real kind: work that clears a milestone blocker is milestone work once
linked, not spare capacity. Evidence may cite a decision comment, for example
--admission spare-capacity --admission-link https://github.com/OWNER/REPO/issues/123#issuecomment-456.
The claim retains that exact comment URL; admission grants no authority.
Use the claim admission contract
for native milestone qualification and necessary explicit Track evidence.
Claim using exactly the branch the worktree helper will create
(work/<task-slug> for the catalog's github/scripts/dev-worktree). Read
task worktrees for its callable path,
private per-host root setting and host integration. On a host with a guarded
helper, keep its current command until hostHelper is provisioned rather
than using the portable default. Read
Planning: Claim
for refusal, partial recovery, or release. Continue only on confirmed success;
preserve competing or uncertain ownership for the Director to decide. Keep
Current Status current through handoff or completion, then release with the
claim's printed release_command (gh-plan.py release), never a
hand-written release comment.
Claim waits come only from native blockers and the structured wait
record. Before a legacy record's first claim, run gh-plan.py wait <issue>,
read its full evidence once and record every real wait or verified
absence with wait --waiting-for ... --ends-when ... --evidence ... or
wait --clear --evidence .... A wait on a person also takes --ask-url, the
comment that asks them; a wait on another issue becomes a native blocker; an
agent or session is a Next actor. wait --all reports unreviewed open issues
without clearing them. For new plans, create --wait-clear --wait-evidence ...
or create --waiting-for ... --ends-when ... --wait-evidence ... records the
reviewed request directly. A wait nothing checks also takes --recheck,
the date an agent looks again; it never ends the wait. Maintain waits with wait, not status prose;
preserve all unresolved entries when replacing the whole record. Read
Planning: Claim
for the format, authorship and existing-resolution contract.
Claims automatically account for exact authored releases and expired
claim leases, reporting preserved leftovers in retained_artifacts. An
unreleased claim whose host-local lease is live or unknown still refuses.
For an abandoned automation claim with no lease on this host, a direction or
Supervisor session uses release-claim, with a closed-session attestation
and fresh activity checks. Read Planning: Claim first; a merged PR never
proves closure. This releases ownership only;
recorded waits, native blockers and retained-artifact gates still apply.
A session killed without closeout uses the linked Supervisor crash-recovery
route with --termination-record, fresh source-host checks and preserved
artifacts; it does not need a safe-exit verdict it never wrote.
For an authorized PR-only conflict refresh of a finished session, claim its
canonical open planning issue with --resume-from <original-claim-id>;
read Planning: Claim for automatic retained-handoff qualification and the
supported route before claiming. For PR-only work, use
Planning: Claim.
Active ownership still refuses.
For verified pushed WIP without a PR on this same issue, follow
Planning: Claim's ordinary new-branch procedure.
For ordinary successor work before a retained PR can be refreshed, use
--resume-from <original-claim-id>. Read
Planning: Claim for the exact released multi-branch handoff proof; all
retained artifacts and their recorded waits are checked. This claim does
not lift a product hold or authorize changing the retained PRs.
A native child in the same repository may use its parent's released claim
and handoff IDs for that source slice; the helper verifies the native link
and parent ownership on both readbacks and preserves the parent's waits.
Ownership checks traverse the recorded source family across generations;
releasing an intermediate or closing a child does not hide another holder.
Read Planning: Claim before using this cross-record route.For a global invalid-wait finding, read the
supported wait correction procedure
before correcting status or claiming. Global selection does not clear a recorded
wait; repo-local next and normal claim preflight retain it.
Also report each blocking_work_elsewhere pair from gh-plan.py next, naming
the local blocker and the repository/issue it holds up. Read the blocker's
recorded wait and current ownership before proposing action; visibility does
not override candidate exclusions or authorize starting it. Report incomplete
blocking_work_elsewhere_context separately from candidate/dependency coverage,
including truncation, unread gates, and unavailable reads.
Also report dependabot_candidates as Dependabot and Renovate PR work needing
an agent, with each PR's link and age. Supervisor and executing-loop selection
use this same candidate read. Read the PR discussion and check current ownership
before taking it on; the PR is its work record. For authorized PR-only work, claim the PR
through Planning: Claim
before creating a linked worktree, then load github and follow its existing-PR
workflow. Use a linked canonical implementation issue when one exists.
Uncertain or competing ownership remains a stop.
Report dependabot_unverified_candidates and incomplete dependabot_context
as uncertainty. Read Next Work
for the PR discovery bounds. An empty issue list with PR candidates does not
mean no work is available. This visibility changes no priority, hold, or merge
authority.
pr_followthrough preserves a compatibility view of other open PRs. Global
next also puts PRs through the same Next actor queue and ranking as issues,
using one complete inventory by default. Each row keeps the current head and bounded
discussion excerpts with source links, including Client projections. Current
Ready handoffs and claims are underway; drafts, Client-wait handoffs and
structured waits stay held. Legacy or incomplete evidence
stays scope review or unknown. These rows require fresh source custody,
Client authority and readiness checks before action; they never clear an
issue wait or authorize a merge. pr_followthrough_context reports read
coverage and truncation independently of dependency PR coverage.
Check beyond occupied results before saying no work is available.
candidate_count greater than the returned list calls for a larger bounded
--limit; truncated inventory or incomplete dependencies remain a partial
answer. Report those limits and what is underway or waiting. An empty available
list does not establish milestone completion. Ownership checks and status
records do not provide an exclusive lock.
In an <owner>/direction repository, next follows Track: issues and also
discovers open issues in the repository owner's repositories that the
configured actor can access;
gh-plan.py --repo <owner>/direction next selects the same scope elsewhere.
Read the global selection procedure for this mode.
Graph coverage, repository discovery, and active ownership are separate evidence.
Apply repository-wide Director holds before considering any issue there, even
when labels say active or background work continues. Read full discussions and
current ownership evidence before recommending discovered work. Raw candidates
are possible work; available_candidates carries the observed queue evidence. A queue row still requires Choose
Work and fresh claim preflight; partial peer coverage never establishes an
exclusive lock.
The Director’s current overall Order owns work priority and tooling admission.
The linked global selection procedure defines the milestone availability flag;
the Supervisor and weekly check judge tooling admission.
Keep the own-project share available when business
tracks wait. Weekly capacity is audit context, not a per-call quota. Discovery
grants no write, merge, deployment, or direction-adoption authority under
another repository owner.
For graph paths, scope, or incomplete coverage, read
Planning: Next Work.
Read .local/github-plan.md when present before creating, routing, or updating
plans. Resolve people through the optional people skill and local overlays;
absence of people context is normal. Verify unknown actors' claims and
permissions before routing or relying on them. Mention someone only when their
attention is needed now; assignees name the person with a concrete next action.
Search with index or search before creating or proposing an issue, helper,
or tooling; reuse an overlapping canonical issue. Search open and closed issues
across the repository owner's repositories, not only this one:
gh-plan.py search "<terms> user:<owner>" --state all. Say what you found or
what you searched. Read its full discussion before changing scope. Use existing
routing, share and type label conventions; ask before
creating labels other than the friction label that
task scope names.
Treat every human-authored title and body as immutable source material. Repository role grants permissions, not automation ownership of authored words. Never retitle or replace someone's request as plan maintenance. Planning writers edit only bodies the automation authored; on anyone else's issue they post a bot-authored comment or use a linked automation-authored plan. Before creating or editing an issue, read issue templates and ownership; inspect the helper's provenance and keep unknown ownership or disallowed section updates read-only.
Use create for a new plan and update-section for an owned section. Use body
files or stdin for multiline content through the maintained helpers. Correct
Current Status on waiting issues without an execution claim; the writer
preserves wait and ownership records. Use wait for wait changes; source edits
and execution still require their normal claim.
Keep the finish line observable, with scope, acceptance evidence, and one next action.
Write finish-line and acceptance items as plain bullets, not checkboxes; real
pieces of work are native sub-issues.
Size implementation issues and record event waits under GitHub's
issue closing and post-merge proof.
Keep Current Status concise:
Next actor:
Next action:
Last verified:
Follow the actor write contract for claim, release and field-only status edits.
Maintain dependencies with link/unlink and person/event holds with wait;
show projects their current state and blockers. Record decisive evidence and
links needed to resume. Keep raw logs and lengthy validation details in the PR or linked evidence. Completed prerequisites belong
in Relationships, not the current blocker list.
Use a parent issue plus independently finishable sub-issues when any two apply:
Keep intent, finish line, dependency order, and recovery state on the parent; give each child its own finish line and next action.
Use native blocked-by, blocks, and subissue links for execution
dependencies and decomposition, including across repositories. related
provides context without changing sequencing. Body references explain links
but do not replace them.
Native relationship changes do not rewrite either issue's body and do not
require body ownership; they still require authorization for the relationship
write. related changes Markdown, so body-ownership rules apply.
When a maintainer must create or identify a prerequisite, record who returns the canonical links, the return thread, and who verifies and connects the native blockers afterward. Explicitly request that return within existing posting authority; otherwise prepare the draft and name the remaining action. Read the missing-gate template for the return request. Once the gate is known, verify and link it without adding another handoff.
Treat milestones as release or phase-exit gates. Before assigning an issue or
creating, changing, assessing, or closing a milestone, read the
milestone contract, its description, and its open
issues. With DIRECTION.md, only listed milestone titles are eligible; propose
new waypoints through direction.
show, next and the Supervisor board derive status from native issue state,
open blocked-by edges and the authoritative structured wait record. Planning
labels are retired. Routing (agent:*), share (own-project) and type labels
remain decisions, rather than status copies.
active: open, with no open native blocker and a reviewed clear wait.blocked: an open native prerequisite. A separate person/event wait remains
visible alongside it.waiting: a named person, decision or external event in the structured wait.review: missing, malformed or incomplete wait evidence requires review.done: the native issue is closed. Unresolved waits remain visible; closure
does not resolve them or prove another issue's finish line.Maintain waits with wait and dependencies with link/unlink. Missing or
ambiguous evidence stays unknown; neither selection nor a label clears a wait.
An exact question-comment URL in wait evidence can surface its recorded answer
in next's needs_status and launch/claim diagnostics. Read the full answer and
reconcile it through wait or evidenced --wait-resolved before dependent work.
Negative, changed and conditional answers remain decisions to reconcile; every
independent hold and service readback stays in force.
Ordinary delivery awaiting agent or automated QA, review, merge-train routing,
or deployment stays active. Split independent actionable work from unresolved
person/event waits into its own issue. A parent delegated to open sub-issues
uses native sub-issue links without an invented blocked-by edge.
During an authorized planning update, link each verified open prerequisite
with gh-plan.py link <issue> blocked-by <prerequisite>. Prose references and
milestone membership do not create an edge. Use reconcile-status <issue> to
read the derived evidence after a fact write; it does not maintain labels.
When Projects are configured or requested, use them as automatic views of the
issue graph. Do not maintain Focus, Manager, Finish Line, or roadmap dates in
Projects. Read Project views when
using a Project or local context surface, including explicit field requests,
synchronization, or access failures; views never replace the issue graph. If a
configured context helper is useful, read its Local Context Views guidance before
running index.
Run a Plan Direction Checkpoint at implementation boundaries, surprising findings, adjacent work, handoff, a "what's next" request, and before creating, closing, or superseding issues: reconnect the next action to the current plan. Update Current Status only when durable recovery state materially changes; a passing checkpoint needs no artifact.
If scope changes, reconcile the canonical issue, sub-issues, blockers, and labels before pivoting. Classify discoveries as current scope, sub-issue, blocker, related context, or later work. Record Director decisions so a future session does not ask again. Keep recovery-critical state in the issue; link implementation evidence where it already lives under Agent Comments.
When the Director's reply is short or points elsewhere ("as recorded above"),
read every comment since the question, including bot Director decision:
records, and act on the record's wording. When an issue's finish line
paraphrases a quoted decision, build to the quote; ask on the issue before
adding any destructive or behavior-changing rule the quote does not contain.
While another workflow waits on CI, deployment, or review, use independent read-only work or isolated preparation within authorization; return to the waiting workflow before calling it complete.
Stale GitHub planning state is a regression source. Before closeout, handoff, or declaring a workstream done, search related issues. Update every related issue whose Current Status, labels, blockers, relationships, or acceptance criteria changed. Reconcile stale or duplicate plans rather than leaving corrections only in chat or PR comments. Record the winning and superseded PRs on the owning issue when competing PRs are resolved.
Before calling the plan captured or complete, verify that stale, duplicate, related, and PR-linked issues were swept, the canonical graph has the needed parent/children and blockers, and its finish line and next action match reality.
For completed durable plan issues, use gh-plan.py close. It owns the
relationship and decision preflight, native closure and configured Project
Status. The generic github/scripts/gh-issue close helper is for non-plan
issues, or when the plan helper is unavailable.
It also skips the relationship and not-planned decision preflight. Before using
that fallback, read and apply the
closure decision contract,
including its identity, timing, and edit-history checks.
Before closing a planning issue, run
uv run <skill-dir>/../github-work-rollup/scripts/github_unanswered_comments.py --thread OWNER/REPO#NUMBER.
Any attention result or degraded coverage requires a response or explicit
handoff; apply the radar rule.
close itself
refuses while an outside person's comment on the issue or a thread it links has
no reply, naming each one: read and answer it on its thread, then rerun. The
close comment answers people the people index records on the closing issue. Only a
Director decision passed as --unanswered-decision closes over it; read
Planning: Management
before using it.
Completed closure requires all native blockers and sub-issues closed and their
reads complete. Issues the plan blocks do not prevent its closure. Use
--reason not_planned only for explicitly superseded or abandoned plans;
retained open relationships are not completion evidence. For an issue in a
milestone listed in merged DIRECTION.md, a not_planned close of Director-opened
or Director-admitted work requires the Director's approval. Follow the
closure decision contract
for agent scope cuts and their required reason.
Record the exact action in a new comment; never edit existing question or
decision comments to migrate them, or bypass a closure refusal through another tool.
Choose PR closing language under GitHub's
issue closing and post-merge proof.
After a landing, reconcile issues
referenced by the canonical PR body and comments, their native parents, and
every issue it unblocks,
including cross-repository dependents, within
existing posting authority. Check remaining
waits against the landed evidence; update Current Status and native
relationships under Derived Status, preserving unresolved waits,
blockers and Director holds. Close only issues whose finish lines are satisfied;
keep remaining work with its next actor under
issue closing and post-merge proof.
Use gh-plan.py close --comment-file for durable plan issues.
For closure failures, partial Project synchronization, quota or retry/reconciliation, or helper output details, read Planning: Management and the shared API contract there. Keep degraded evidence visible; do not manually mark an issue done while closure is uncertain or silently switch to human authentication.
Local handoff files are scratch unless the Director requested offline/private handoff. Migrate recovery-critical content to the owning issue or PR before closeout, then remove or explicitly preserve the scratch file. For valuable local work found during cleanup, read repository preservation and parking and handoff. Routine disposable artifacts do not need planning issues.
Finish with the current outcome, evidence or uncertainty, next action and who takes it, and any Director decisions still open. Use the executing loop's handoff rules for its commands.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (cbusillo/codex-skills) — no native marketplace selected
npx claudepluginhub p/cbusillo-shared27 skills in this plugin
/babysit-prBabysit a GitHub pull request by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks to monitor a PR, watch CI, handle review comments, keep an eye on failures/feedback, or when PR diagnosis, update/rebase/rerun work, safe-to-exit checks, or merge confirmation turns into ongoing CI/review/merge follow-through./directionUse when the Director starts a direction session, asks for a north star, dead reckoning, a daily or weekly direction check, a direction audit, or milestone proposals; when a repository's DIRECTION.md must be created or changed; or when an executing agent holds a reviewer finding that would change an agreed outcome, in either direction, and must escalate it instead of acting. The Director decides, the direction agent drafts and argues with evidence. Not for planning work inside a milestone (github-plan) or for running a reviewer (model-review)./docs-lookupUse when the answer depends on external docs, environment-specific operational context, or facts about the user's own setup, including devices, radios, networks, accounts, or what is installed where. Look up setup facts in the user's docs or reachable systems before asking the user. Includes discovering source-of-truth docs and access paths for private operations such as DNS or Cloudflare records, and finding where a credential, API token, or secret is stored, but not performing infrastructure actions or mutations.Other plugins' skills for the same job