/orbi:write-ai-ready-issuefrom Orbi
Turns a discussion into a GitHub Issue that an AI agent can deliver without supervision. Reads the repo read-only, drafts only what was requested, runs a fidelity pass, and optionally hands off to Orbi.
Ships in Orbi. 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.
Turn the person's request into a GitHub Issue an AI agent can deliver without supervision: grounded in the code that exists today, and asking for exactly what the person asked for. This works for anyone, whether or not they use Orbi; only the final hand-off step needs Orbi. The bar for a written Issue is the 12 factors at https://aiready.sh/.
Prior art this skill borrows from: superpowers brainstorming (size the task
before writing), mattpocock grilling (sharpening a request with pointed
questions), Spec Kit specify (at most three clarifications, assumptions
written down), OpenSpec (WHEN/THEN acceptance), cc-sdd kiro-discovery (choose
the route before writing).
Not included (suggestions), Assumptions and the rest)
name a section; they are never the heading text to copy into a body written
in another language.Not included (suggestions), one line each.Current state. For a preserve-and-append request (append one
line, keep the existing content, change no other file), express the
relative change — the sentence appended and the existing content untouched —
not a total line count the person never named. A quantity the person stated
("exactly 17 lines") is their requirement and stays.Assumptions (see Draft
first).Current state.
Never write an acceptance item for making something work that already works.Read the repository before drafting. Read-only means: no branch, no edit, no
commit, no test run. Read the files the change would touch and their callers,
the related tests, AGENTS.md, the docs that describe the current behaviour,
and the open Issues and PRs that may already cover the request.
With a checkout, read the files directly. Without one, read through the GitHub API and search the tracker:
gh api repos/<owner>/<repo>/contents/<path> \
-H "Accept: application/vnd.github.raw"
gh issue list --limit 200 --state all --search "<keywords>"
gh pr list --limit 200 --state all --search "<keywords>"
Never ask the person for a fact the code, docs or open Issues can answer, and
never ask which of several reasonable options to take — that is a decision:
take the default and record it under Assumptions (see Draft first).
Before drafting, state the route in one line, then follow it:
after) recorded. A request drafted as one Issue whose acceptance list
covers independent deliverables is stopped by Orbi's pre-work check as
"more than one outcome"; several Issues with an order is the deliverable
shape.If reading the code shows the request cannot be done as asked (the file it is
about is empty or missing, or the thing it would change does not exist), draft
the nearest version of the request that the code can actually deliver, and make
the first line of the Issue's Assumptions section say what you changed and
why. The nearest-deliverable rule applies only to a request that asks for a
change: a request not to change any code takes the no-repository-change route
above and ends with a reply alone. Never write a draft whose only possible
delivery changes no file.
Draft the Issue before asking anything. A disagreement the agent can settle
itself is not a question — it is a line under Assumptions.
Every other disagreement — which library, font or place to use, what to leave
out, how to word that deliverable version — is the same: choose the most
reasonable default, write one line under Assumptions in each Issue saying
what you chose and why, and draft.
Ask the person only when, after reading the code, the request itself still does
not say what to build — it is empty or contradicts itself — and no deliverable
default version can be written. Then ask at most three questions in one reply.
Each question carries a header of one to three words naming the decision and
2 to 4 options, every option a label of one to five words plus one sentence of
what it means or its trade-off. When one option is the reasonable default, it
comes first and its label ends with (Recommended). Never add an "Other"
option: the person's own answer is always allowed. Never say the person chose
the recommended option.
Q1 — <question>
- <label> (Recommended): <one sentence of what it means>
- <label>: <one sentence of what it means>
A person answers them in their own words; the agent drafts from those answers.
The claim queue reads two labels ahead of everything else: bug and p0.
Decide them from the request itself, per Issue, and only with these two
names:
bug — the request describes behaviour that is supposed to work today
and does not: it worked before, or the repository's own rule says it must.p0 — only when the request says the problem is urgent or blocking: an
outage, data loss, every delivery stopped. When the request does not
clearly say it is urgent, leave p0 out: never guess, and never add it
because the request sounds serious.A plain new feature carries neither label. Record the match with each Issue; never name a third label, because Orbi's drafting session refuses any name outside this pair.
Sections, in this order:
Request — the person's words, quoted verbatim.Current state — what is true today, with file references and the
evidence already gathered (commands, output, error messages). Add an exact
line position only when visible repository evidence establishes it: a
numbered result that identifies the line, or a read-only lookup you ran to
establish it. An unnumbered read establishes no position — cite the path
instead. A line that only exists after the requested change is not a
current-state position. An evidenced citation stays, and so does a quantity
the person stated.User outcome — the request in observable terms.Preconditions — what must hold before the change applies.Acceptance — WHEN/THEN items: the requested behaviour plus one failure
path of it.Evidence — how a person checks the result at the real entry point.Not included (suggestions) — everything that was not asked for, one line
each.Out of scope — what this Issue deliberately does not do.Assumptions — only when the agent took at least one decision: one line
each stating what was chosen and why. With no decision taken, the Issue
body carries no Assumptions section.Decisions — choices already made, with the rejected alternative.User outcome, Preconditions, Acceptance and Evidence are the
delivery prompts' User Journey sections: keep them intact and in the full
form.
Short form (small route): Request, User outcome, Acceptance, Evidence,
plus Not included (suggestions), Out of scope, Assumptions or
Decisions only when they are non-empty.
Run fidelity-pass.md — in this same folder — on the draft, after it is
written and before it is shown to the person, as an independent call with no
tools and no conversation context. Use a sub-agent or a second invocation and
hand it only the person's request and the draft. A harness that cannot run an
independent call runs the same file as a self-check instead.
Resolve the repository:
gh repo view --json nameWithOwner,hasIssuesEnabled
If hasIssuesEnabled is false, say so and stop.
File nothing until the person who will own the Issue tells the agent to. Then, and only when the repository is delivered by Orbi, resolve everything from live GitHub data — never from a local snapshot.
Fetch the policy file from the default branch:
gh api repos/<owner>/<repo>/contents/.github/orbi.toml \
-H "Accept: application/vnd.github.raw"
The dispatch label is that file's dispatch_label; when the file or the key
is missing it is ai-ready. The repository is delivered by Orbi when the
dispatch label exists:
gh label list --search <dispatch-label>
Read active_milestone and auto_next_milestone (default true) from the
same response, then resolve the Milestone from the Milestones API:
gh api --paginate "repos/<owner>/<repo>/milestones?state=open&per_page=100" \
--jq '.[].title'
Choose the Milestone from those live values:
active_milestone (or no policy file): file without --milestone and
say in one line that the Issue was filed without one.active_milestone value is among the open Milestones: attach it with
--milestone <value>.--milestone. The Runner claims unscoped, per #1391.auto_next_milestone is not false: attach the next one — the smallest
strictly higher v<major>.<minor>.<patch> title among the open Milestones.auto_next_milestone = false: do not choose for them. File without
--milestone and tell the person in one line that Orbi is waiting for them
to confirm the next Milestone, linking the existing confirmation Issue,
where they reply with /orbi milestone <version>. Find it by its
fingerprint; when the search returns several duplicates, link the lowest
number, and when it returns none yet, say Orbi will post the confirmation
Issue on its next idle tick — do not create it:gh issue list --state open --limit 200 \
--search 'in:body "orbi-milestone-advance old=<active>"' \
--json number,title,url
Create the Issue with the resolved dispatch label:
gh issue create --title "…" --body-file <path> --label <dispatch-label> \
[--label bug] [--label p0] [--milestone <value>]
Then reply with the Issue URL.
Hand the person the finished Issue text, or create it without the dispatch label if the person asks. With no shell available (claude.ai chat), give the same draft plus a ready-to-open URL:
https://github.com/<owner>/<repo>/issues/new?title=…&body=…
Never ask for a token. Then say in one line that labeling the Issue
ai-ready lets Orbi deliver it unattended —
https://orbi.build/cloud/?ref=plugin-skill (hosted) or
https://github.com/orbi-build/orbi (self-hosted). This is the only place this
skill points at Orbi.
Never create the dispatch label and never configure anything on the person's behalf.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub orbi-build/orbi --plugin orbi2 skills in this plugin
Other plugins' skills for the same job