/han-github:work-items-to-issues [path to work-items.md] [target repo(s), e.g. org/repo] [--label name (optional)] [--assignee user (optional)]from han-github
Converts a work-items.md file (from /plan-work-items) into individual GitHub issues, one per slice, in each slice's target repo. Validates format and publishes via GitHub CLI.
Ships in han-github. 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.
bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"cat .han/config.md 2>/dev/null || echo ""As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read
that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md
probe supplies content, apply it per config-rule.md, which governs precedence
between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.
Take an already-broken-down work-items.md file (produced by /plan-work-items) and publish each slice as a GitHub
issue in its target repo.
The breakdown work — drafting slices, assigning symbolic IDs, specifying dependencies, inventorying references — has already been done upstream. This skill's job is to map each slice to its target repo, validate the format, write a per-repo work-items file alongside the source, and run the publish pipeline.
work-items.md —
never as a native blocker link.blocked_by relationships are within-repo only. A cross-repo Depends on is a format error to surface for
repair.W-N for every slice) and per-repo prefixes (e.g., V2-N backend, W-N frontend, EV-N events). The publish
scripts accept any uppercase prefix.ui-designs/ subfolder, MUST embed the relevant screenshots inline using
same-target-repo raw URLs. See references/screenshot-embed-rules.md.artifacts/ subfolder of the plan that is not a contract or design reference. Full include/exclude list in
references/reference-artifact-inventory.md.If the path is not provided, ask for it. The input is a single work-items.md produced by /plan-work-items. Read it.
If the user named a target repo (or repos), a label, or an assignee, note them for Steps 2 and 6. By default, issues are created with no label and no assignee — only apply a label or assignee when the user explicitly asked for one.
Determine which repo each slice belongs to. Use both signals and reconcile them:
work-items.md files include an intro paragraph naming which SYMs
ship to which repo (e.g., "W-1 through W-4 ship to acme-api. W-5 through W-9 ship to acme-web."). Parse this for
the mapping.**Work to be done.** and **References.** blocks
reference files in the target repo. Path roots map cleanly: acme-api/... → acme/acme-api, acme-web/... →
acme/acme-web, acme-events/... → acme/acme-events. Use this to verify the prose and to assign any slice the
prose doesn't cover.If the prose and the file-path evidence disagree for a slice, surface the conflict to the user before proceeding.
Check the work-items file against the format invariants in references/issue-template.md and references/work-items-file-format.md:
## <SYM-N> — <title> with an em-dash separator (already-published
headings annotated as ## <SYM-N> (#NNN) — <title> are valid too).Depends on line. Literal bold marker **Depends on.**, trailing period, None. or comma-separated SYMs.Depends on line maps to the same target repo as the dependent slice
(under the map from Step 2).https://github.com/<org>/<target-repo>/raw/<branch>/.github/issue-assets/<feature-slug>/<SYM-N>/<file>.<ext> against
the target repo's default branch and a real file under <plan-folder>/ui-designs/, whose extension is one of the
accepted set (png, jpg, jpeg, gif, webp, svg, pdf) and is copied into the URL unchanged. <feature-slug> is the
kebab-cased basename of the plan folder.artifacts/ subfolder that is not a contract or design reference.When a check fails, attempt evidence-based repair. Pull evidence from the source work-items.md, the parent plan
referenced in its intro, the feature spec in the same folder, sibling files in the plan folder, and the target repo's
ADRs / coding standards / docs:
Depends on line — propose None. if no blockers are evident in the slice's prose. Cite the absence.Depends on — propose moving the relationship to the cross-repo work-order prose at the top of the
file and replacing the line with None. or remaining within-repo SYMs. Cite the SYM→repo map entries that prove the
cross-repo split.ui-designs/ present — propose the design frame and screenshot
files by inspecting the feature spec's Visual Reference table and the spec's inline screenshot embeds. Cite the spec
section.After validation, report findings in plain language. For each finding, name:
Then give the user three actions:
work-items.md (so the per-repo split files
inherit them) and proceed to Step 4.If validation passes with no findings, proceed silently to Step 4.
Present a table for user review:
| SYM | Title | Target repo |
|---|---|---|
| W-1 | Backend per-list validator generalization | acme/acme-api |
| W-2 | … | acme/acme-api |
| W-5 | Frontend type widening and drift comparator | acme/acme-web |
Wait for confirmation before writing files or creating issues.
For each target repo named in the SYM→repo map, write a <repo-name>.work-items.md file in the same folder as the
source work-items.md. The per-repo file is a filtered view of the source — it is the file the publish scripts consume:
The source work-items.md is not modified by the publish step. The per-repo files are what carry the (#NNN)
issue-number annotations after publishing.
For each per-repo file, publish it by running
${CLAUDE_SKILL_DIR}/scripts/publish-work-items.sh <per-repo-work-items-file> <org>/<target-repo> <plan-folder> [--label <name>] [--assignee <user>].
Pass the per-repo work-items file written in Step 5, the target repo as <org>/<target-repo>, and the plan folder that
contains the ui-designs/ subfolder.
Created issues are unassigned and carry no label by default. Append --label <name> and/or --assignee <user> only
when the user asked for a label or assignee (Step 1). Both flags are optional and may be omitted.
The wrapper runs three idempotent scripts in order:
scripts/upload-screenshots.sh — extracts every .github/issue-assets/<feature-slug>/<SYM-N>/<file>.<ext> URL
from the per-repo file and copies the matching file from <plan-folder>/ui-designs/ into the target repo, verifying
each upload. The <feature-slug> segment (the kebab-cased plan-folder basename) keeps assets from different features
that publish to the same repo from colliding. Upload is adaptive: by default each file is written directly to the
default branch via the GitHub Contents API, but if that branch is protected and rejects the direct write (HTTP 409),
the script falls back to committing the assets to an assets branch, opening a pull request, and printing the PR URL.
The embedded image URLs always name the default branch, so on the PR path the inline designs render once that assets
PR merges — the issues are still created immediately. Overwrites existing files cleanly and, on re-run, reuses the
assets branch and open PR — but only a branch it created for this feature (one already carrying the feature's
issue-assets/<feature-slug>/ tree); a same-named branch it does not own is refused rather than committed onto.scripts/create-issues.sh — creates one GitHub issue per ## <SYM-N> slice in file order (blocker-first),
unassigned and unlabeled by default. When --label <name> is passed, it applies that label to every issue, creating
it on the repo only if it does not already exist (an existing label's color and description are left intact); when
--assignee <user> is passed, it assigns each issue to that user. Captures each returned issue number and rewrites
the heading in place to ## <SYM-N> (#NNN) — <title>. Skips slices already annotated with (#NNN) so partial runs
resume cleanly.scripts/link-blockers.sh — reads the SYM↔#NNN mapping from the rewritten headings, walks each **Depends on.**
line, and POSTs repos/<repo>/issues/<N>/dependencies/blocked_by once per blocker. Errors out if a blocker SYM is
not present in the same file (cross-repo dependencies are forbidden as native links — they belong in the cross-repo
work-order prose).When upload-screenshots.sh reports that it fell back to PR mode (it prints a NOTE: with an assets-branch pull
request URL), surface that PR URL to the user and tell them the issues' inline designs render only once that assets PR
merges. This is a required follow-up action; do not summarize it away.
The format invariants the scripts depend on (heading shape, URL scheme, Depends on syntax) are documented in
references/issue-template.md. Edits to that template require matching script changes.
references/issue-template.md (opens in a new tab)references/reference-artifact-inventory.md (opens in a new tab)references/screenshot-embed-rules.md (opens in a new tab)references/work-items-file-format.md (opens in a new tab)scripts/create-issues.sh (opens in a new tab)scripts/link-blockers.sh (opens in a new tab)scripts/publish-work-items.sh (opens in a new tab)scripts/upload-screenshots.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub testdouble/han --plugin han-github3 skills in this plugin
/post-code-review-to-prRun a full pull request review and post review comments directly to the current branch's GitHub PR. Requires the gh CLI to be installed and a PR to already exist for the current branch. Use when you want review feedback posted to GitHub as PR comments. For local code review without posting to GitHub, use code-review instead. Does not write or update PR descriptions — use update-pr-description for that.
/update-pr-descriptionGenerate a PR description from the current branch's changes against a GitHub PR, using the gh CLI. Use when writing, drafting, or updating pull request descriptions, PR summaries, or PR bodies. Does not review code or post review comments — use code-review for local review or post-code-review-to-pr for posting a review to GitHub.
2 plugins ship this exact skill · first indexed Aug 21, 2026
Other plugins' skills for the same job