technicalpickles / technicalpickles/pickled-claude-plugins

git/pull-request skill doesn't cover gh issue create, and body-file drafts need a body-only guard

Open
#107 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10
Forks
3
Avg merge
18h 9m
Merged PRs (30d)
18

Description

gh issue create --body-file posted a raw scratch draft into a real GitHub issue verbatim, # Title heading and all, duplicating the title inside the body. Filing a2acode#41 today: I'd drafted the issue as one scratch file with # Title / # Body sections (nice for reviewing before posting), then piped the whole file straight into --body-file without splitting it first. The posted issue opened with a "# Title" heading, the title text again, then a "# Body" heading before the actual content.

Caught it immediately by running gh issue view --json body right after filing, out of habit rather than because anything in the flow forced the check. Fixed with a follow-up gh issue edit --body-file pointed at just the body half.

git/pull-request (plugins/git/skills/pull-request/SKILL.md) covers exactly this shape of mistake for PRs, it always drafts to a file and confirms before gh pr create/edit/comment --body-file. But its trigger list is scoped to gh pr create, gh pr edit, gh pr comment. Filing a GitHub issue (as opposed to a PR) against a repo, ours or someone else's, has no equivalent skill at all, so nothing caught the draft-file shape before it hit --body-file.

Two ways to close the gap, not mutually exclusive:

  1. Extend pull-request (or add a sibling skill) to cover gh issue create/edit/comment --body-file, with the same "always confirm the draft before posting" step it already has for PRs.
  2. Add an explicit rule to whichever skill ends up owning this: a --body-file draft must be body content only, no wrapper headings, no title duplicated inside it. If a scratch draft is written with separate title/body sections for readability, split it into a real title string and a body-only file before the gh call, don't hand the whole thing to --body-file.

Either way, a "verify what actually got posted" step (gh issue/pr view --json body) right after create would have caught this even without the drafting fix, and is cheap enough to be worth adding regardless.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read plugins/git/skills/pull-request/SKILL.md and compare its gh pr create/edit/comment --body-file guidance with the missing gh issue create/edit/comment flow. Decide whether the existing skill or a sibling skill should own the issue workflow, then cover body-only drafts, confirmation before posting, and post-create verification with gh issue/pr view --json body. Done means the documented flow prevents wrapper headings and duplicated titles from being posted.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github, markdown
Domain
cli, developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.