TheVoskamps

issue-set-size

Set the size slot on a single issue, dispatching on the slot's configured kind (number, single-select, issue-field, label, or skip).

TheVoskamps 0 Updated 1mo ago
GitHub

Install

npx skillscat add thevoskamps/claude-plugins-marketplace/issue-set-size

Install via the SkillsCat registry.

SKILL.md

Set the size slot on a single issue — the slot declared as
github-project.fields.size in .issues/repo-config.md. What
<value> means depends on the slot's kind:, and the script writes
it through that kind's own path: a project field, a native GitHub
issue field, or a label.

Invocation

/issue-set-size <issue> <value>
  • <issue> (required): an issue reference. In another repo the slot is that
    repo's own.

  • <value> (required): one argument, quoted when it has spaces. By the
    slot's kind:

    • kind: number — an integer within the slot's min/max.
    • kind: single-select, kind: issue-field,
      kind: label — an option name, matched case-insensitively.
      A size slot backed by GitHub's native Effort field takes that
      field's own options, High / Medium / Low, not a t-shirt set.
    • kind: skip or slot absent — ignored.

    Run /issue-field-options size when you need to choose a value
    rather than set one you already hold.

Execution

Run the issue-set-size script, which this plugin puts on PATH,
with the Bash tool from inside the repo's working tree:

issue-set-size <issue> "<value>"

The script validates the value, skips the write when the slot already
holds it (every kind but number), and otherwise writes it and
re-reads the slot, exiting non-zero when the re-read does not show the
value it set. A kind: label write also removes the slot's other
option labels, so at most one remains; labels in the namespace that
are not among the slot's options are left alone. Print its stdout as
it stands. On a non-zero exit, relay its stderr verbatim and stop: it
carries the canonical wording for a missing github-project: block,
an issue not found, an out-of-range number, a name not in the options,
a value of the wrong shape for the kind, a stale field ID (re-run
/repo-config), a viewer who may not set native issue fields, or a
write that did not land.

Output

On success, exactly one line; no URL:

#<N> size set to <value>.
#<N> size set to <CanonicalOption> (via label `<namespace><Option>`).

The second form is a kind: label slot's. When the slot already held
the value, set to reads already set to. The option name always
carries the config's capitalization, not the caller's.

When the slot is kind: skip or absent from fields:, the script
prints this line instead and exits zero — a warning, not an
error:

/issue-set-size has nothing to do: this repo has no size
slot configured. (Run /repo-config to add one.)

For an issue in another repository, the line names that repository in
place of this repo, and says to run /repo-config in it.

Jira backend

The script serves the GitHub backend only. Under issues: Jira it
exits non-zero with its fixed Jira message before it reads or writes an
issue; follow
skills/lib/issue.md → "Jira backend" → "Metadata setters" instead.