Create a new issue end-to-end (title, body, type, priority, size, status, parent, assignees, labels) in a single invocation, in this repo or, named positionally, in another.
Install
npx skillscat add thevoskamps/claude-plugins-marketplace/issue-create Install via the SkillsCat registry.
Issue Create
Create a new issue with all metadata set in one shot: title, body,
issue type, parent link, priority, size, status, assignees, and
labels — in the current repo, or in the repo a leading <repo>
argument names. The issue is fully configured before its URL is
printed.
Invocation
/issue-create [<repo>] --title "..." --body-file PATH
[--type T] [--labels a,b,c]
[--assignee u1,u2 | --no-assignee] [--parent <issue>]
[--priority V] [--size V] [--status S]<repo>(optional): file the issue in this repository instead of
the current one, written in any formskills/lib/issue.md→
"Repositories and issue references" states. The script reads
that repo's.issues/repo-config.mdfrom its default branch,
validates it and uses it exactly as a local create uses the local
one, and reads nothing from the current repo's repo-config. A target
with no repo-config gets a plain issue — title, body, labels, and any--assigneeor--parentpassed — and one output line saying the
project fields were skipped. A target whose repo-config is at an
unsupported schema-version aborts before anything is filed. The
repo-level user-config is this repo's, so a cross-repo default
assignee comes from the user-global one only. There is no--repo
flag; passing one is a usage error.--title(required): issue title.--body-file(required): a file whose contents become the body
verbatim, so long Markdown survives the CLI unchanged.--type(optional): issue type name, matched case-insensitively
against theissue-types:map. Default: the map'sdefault:, thenFeature.--labels(optional): comma-separated label names. Default: none.--assignee(optional): comma-separated GitHub logins. Default:default-assigneefrom the repo-level user-config, then the
user-global one (skills/lib/user-config.md), then the
authenticated GitHub user. A user-config file that exists but
predates schema-version1aborts rather than being skipped. An
empty value resolves the same default.--no-assignee(optional): file the issue with no assignee. No
default is resolved and no user-config is read for one. Passing it
with--assigneeis a usage error.--parent(optional): the parent issue, as an issue
reference; the new issue becomes its sub-issue. A reference that
names no repository resolves in the repo the issue is filed in.--priority,--size,--status(optional): one value per slot,
whose meaning depends on the slot'skind:in repo-config — an
integer withinmin/maxforkind: number, an option name
matched case-insensitively forkind: single-select,kind: issue-fieldandkind: label. Run/issue-field-options,
naming the same<repo>when filing elsewhere, to see what a slot
accepts. A slot with no value resolves through
Step 2 below, then the slot'sdefault:; there is no built-in
default.
Execution
Collect the flags the user gave. Nothing is resolved here that
the script resolves itself.Ask for the slot values the user did not give. For each slot in
priority,size,statuswhose flag was not passed, and which/issue-field-options <slot>does not report as unconfigured, ask
the user withAskUserQuestion— one question per slot, or up to
four combined in one call. With a<repo>, run/issue-field-options <repo> <slot>instead, so every
option, bound and default offered is the target repo's; this step
reads no repo-config itself. The options are the slot's option
names — the indented lines under its first line — in configured
order; akind: numberslot gets an open-ended integer prompt in[min, max]. The first option is the recommendation and carries(Recommended):- size — evaluate the issue body per "Size evaluation
heuristic" below and put that pick first; the rest follow in
configured order. - priority, status — the default
/issue-field-options
reports on the slot's first line,(default: <value>), put first;
the rest follow in configured order. With a<repo>that is the
target's default, exactly as a local create recommends the local
one. With no default reported, recommend nothing and keep the
configured order.
An answer resolves the slot exactly as if its flag had been passed.
An unanswered prompt — a timeout, or a non-interactive caller —
leaves the flag off, so the script falls back to the slot'sdefault:. Skip this step when every slot was passed or is
unconfigured. This step is create-time only; the set-slot verbs
take an explicit value and never prompt.- size — evaluate the issue body per "Size evaluation
Run the script. Run
issue-create, which this plugin puts onPATH, with the Bash tool from inside the repo's working tree,
passing the flags from steps 1 and 2 and no empty values:issue-create [<repo>] --title "<title>" --body-file <path> [--type <T>] [--labels <a,b>] \ [--assignee <u1,u2> | --no-assignee] [--parent <issue>] [--priority <V>] [--size <V>] [--status <S>]The script validates every value against repo-config before it
files anything, so a bad type or slot value aborts with nothing
created. It then creates the issue, adds it to the configured
project board, and sets the type, parent and slots, re-reading each
write and exiting non-zero when a re-read does not show it. When a
step fails after the issue exists, stderr names the issue, its URL,
and the steps that completed; nothing is rolled back.Report. Print the script's stdout as it stands. On a non-zero
exit, relay its stderr verbatim — including which steps completed
when the issue was already created.
Size evaluation heuristic
Step 2 of the execution chain calls into this section to pick the--size prompt's recommended option. The heuristic is read off the
issue body (and title) before any work is done — there is no
code-walking, no git grep, no project-file inspection. The
recommendation is a first-cut estimate the user is free to override
in the prompt.
The heuristic is documented here (not prompt-engineered ad-hoc per
invocation) so the recommendation is reproducible across runs.
The option set is the slot's own, not a fixed t-shirt set
The buckets named below (XS / S / M / L / XL) are the
conventional size options for a kind: label orkind: single-select size slot, and the worked examples use them. But
the heuristic operates on whatever options the slot actually
declares in fields.size.options — it does not assume the t-shirt
set. When the size slot is backed by a native GitHub Issue Field
(kind: issue-field, e.g. the native Effort field), the slot's
effective option set is the native field's own options (High /Medium / Low), and the heuristic ranks and steps across those
options instead.
To apply the heuristic to any option set, first establish a
magnitude order — the options sorted from least-work to most-work —
then run the same heuristic against that order:
- For the t-shirt set the magnitude order is the YAML order
(XS<S<M<L<XL): least-work first. - For the native
Effortfield the YAML order isHigh,Medium,Low, which runs most-work-first, so the
magnitude order is its reverse:Low<Medium<High.
Determine the direction from the option semantics (an "effort" or
"size" magnitude), not from the raw YAML position, so "+1 step"
always means more work regardless of which end the YAML lists
first.
With the magnitude order fixed:
- The base size (signal 2, file count) maps onto the magnitude
order by position: divide the file-count bands below proportionally
across the available options. For the 3-optionEffortscale that
collapses to: 0–2 files →Low, 3–7 files →Medium, >7 files →High. - A step (signals 3 and 4) moves one position along the magnitude
order toward more / less work, clamped to the smallest / largest
option — exactly as the "Combining signals" rule states, just over
the magnitude order rather than raw YAML order. - The triviality / doc-only overrides select the least-work
option (theXSend for t-shirts,LowforEffort). - The median fallback picks the middle of the magnitude order (the
same as the YAML middle when the list is symmetric, e.g.Medium
forEffort).
The file-count → t-shirt mapping in signal 2 below is the canonical
example for the t-shirt set; for any other option set, derive the
analogous proportional mapping over the magnitude order as described
above rather than forcing the t-shirt labels.
Signals
Read each signal off the issue body and combine them per the
"Combining signals" rule below. None of the signals require running
code or reading files in the repo.
Doc-only marker. The body carries a
## Documentation acceptanceor## Code and instruction Markdown acceptancesection — those
heading literals — and the latter is either absent or carries no
bullet beyond a[version-bumped]one. Heavy bias toward XS / S.Only a body with neither section falls back to its language: the
title or body contains language like "rename", "rewrite the docs",
"clarify wording", "update README", or "documentation", and nothing
in it mentions executable behavior.Estimated file count. Find the body's
## Files affected (floor)section — that heading literal, not a
substring of it — and count its bullets. Mapping:- 0-1 files mentioned: XS
- 2-3 files: S
- 4-7 files: M
- 8-15 files: L
15 files: XL
If the body has no such section, fall back to a rough count of
file paths mentioned anywhere in the body (anything that looks
likepath/to/file.extor<dir>/<name>).Distinct concerns / acceptance items. Count the bullets of the
body's## Code and instruction Markdown acceptanceand## Documentation acceptancesections together — those heading
literals, each counted across its### Mechanicaland### Semanticsub-headings. If the body has neither section, count
the items of its numbered task lists instead. Mapping:- 1-2 items: -1 size step (one bucket smaller)
- 3-5 items: no adjustment
- 6-9 items: +1 size step
9 items: +2 size steps
Complexity signals. The body uses language like "refactor",
"rewrite", "migrate", "introduce a new abstraction", "cross-cuts",
"must touch every", "schema change", or names ≥3 distinct
subsystems / skills / agents that all need coordinated edits. Each
signal bumps the size up by one step (cap at +2 from this signal
alone).Triviality signals. Body language like "typo", "one-liner",
"small follow-up", "drive-by", or a body shorter than ~10 lines
with neither acceptance section. Bias toward XS regardless of other
signals.
Combining signals
- Start with the file-count signal (signal 2) as the base size.
- Apply the acceptance-items adjustment (signal 3), over the bullets
of both acceptance sections, in steps. A
"step" forkind: single-select/kind: label/kind: issue-field
slots means moving one option along the magnitude order (see
"The option set is the slot's own, not a fixed t-shirt set" above),
clamped to the smallest / largest option. Forkind: number, a
step is one increment along[min, max]in equal-thirds buckets
(so a slot withmin: 1, max: 9has steps of 3). - Apply complexity signals (signal 4) as additional upward steps.
- Override to the least-work option (the start of the magnitude
order —XSfor the t-shirt set,LowforEffort) if the
triviality signal (signal 5) fires. - Override to the least-work option, or one step above it, if the
doc-only marker (signal 1) fires —XS/Sfor the t-shirt set,Low/MediumforEffort.
If the model genuinely cannot pick a size from the body (e.g. an
issue with one sentence and no other signals), it picks the median
option for kind: single-select / kind: label / kind: issue-field
(the middle of the magnitude order — for a 5-option list[XS, S, M, L, XL] that's M; for the 3-option Effort field[High, Medium, Low] that's Medium). For kind: number, it picksfloor((min + max) / 2). This avoids biasing every "I can't tell"
toward the same default and matches the issue's intent thatrepo-config.md's default: is no longer the recommendation.
Worked examples
- "Fix typo in README.md" — triviality marker + 1 file → XS.
- "Reword the plugin README's install section" with a
## Code and instruction Markdown acceptancesection carrying only[version-bumped] <plugin>and a## Documentation acceptance
section carrying 3 bullets — 2 files, 4 items → S → no adjustment →
doc-only marker fires → XS / S. - "Correct the changelog's release dates" with a
## Documentation acceptancesection carrying 2 bullets and no## Code and instruction Markdown acceptancesection — 1 file,
2 items → XS → -1 step → XS (the floor) → doc-only marker fires from
the sections, whatever the wording → XS / S. - "Add a new
--fooflag to/issue-create" with body listingskills/issue-create/SKILL.mdandskills/lib/issue.mdand one## Code and instruction Markdown acceptancebullet and no## Documentation acceptancesection — 2 files, 1 item → S - 1 step
→ XS (XS is the floor). - "Add interactive prompts to
/issue-create" (this issue,
conceptually) — 2 files affected, ~4 bullets across the two
acceptance sections, "documented not prompt-engineered ad-hoc"
complexity marker → S → no adjustment → +1 from complexity → M. - "Migrate the repo from CodeCommit to GitHub" — many files,
15 distinct concerns, multiple subsystems → L → +2 from
complexity → XL.
Output
The output is a checklist: each line shows either a concrete value
or skipped: <reason>, and the URL is the last line, never a
substitute for the checklist. Values carry the config's capitalization,
not the caller's.
Created issue #1042 "Add /issue-create skill"
type: Feature
priority: High
size: M
status: Backlog
assignee: octocat
parent: #18
https://github.com/<owner>/<repo>/issues/1042type:,priority:,size:,status:andassignee:always
appear. The skip reasons areslot kind: skip,slot absent from fields:,flag not passed and no default,no github-project block in repo-config,no issue-types map in repo-config, andtarget repo has no repo-config.labels:appears only when--labelswas passed, and reads like
the assignee line below.parent:appears only when--parentwas passed.- The issue prints as
skills/lib/issue.md→ "Repositories and issue
references" states. - The assignee line is the re-read set, or
none (--no-assignee)
when that flag was passed. When a requested login did not
land — GitHub accepts an invalid login on create without an error —
it reads<landed> (requested <all>; <missing> did not land)and the
script exits non-zero after printing the checklist. A requested label
that did not land is reported and exits the same way.
A flag skipped for missing project metadata also prints one warning
line before the URL, for --type, --priority, --size and--status in that order, whether or not the flag was passed. The
warning shapes:
warning: slot 'size' is kind: skip in repo-config.md; skipping --size.
warning: slot 'status' is missing from fields: in repo-config.md; skipping --status.
warning: no `github-project:` block in `repo-config.md`; skipping `--priority`. Run `/repo-config` to add it.A <repo> target without a repo-config prints, instead of warnings:
note: project fields skipped: `<owner>/<repo>` has no `.issues/repo-config.md`.Jira backend
The script serves the GitHub backend only. Under issues: Jira in
the repo-config that governs the create — the current repo's, or with
a <repo> the target's alone — it exits non-zero with its fixed Jira
message before filing anything; followskills/lib/issue.md → "Jira backend" → "Create" instead, running
Step 2's prompts the same way and producing the same checklist.