git-issue-create
Skill6 starsChanged 44 days agoMITView on GitHub
Open one standalone GitHub issue with `gh` - duplicate-checked first, conventional title, repo-template-aware body, auto-resolved labels. Use for every issue-filing request however casual: "open an issue", "file a bug", "make a ticket", "/git-issue-create", "track this", "note this down", "we should fix X later", or whenever the user describes a defect or wanted capability that is clearly not being built right now. A raw `gh issue create` skips the duplicate search, label resolution, and body caps this skill owns. Boundary: work starting now goes to `git-branch-create`; an issue that already exists goes to `git-issue-start`. Creates the issue immediately without asking for confirmation.
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Search for duplicates before drafting anything:
- Distinctive: line 81
Never hardcode the namespaced taxonomy - detect it.
- Distinctive: line 120
No template found - the normal case.
- Distinctive: line 127
Never emit an empty placeholder section.
- Distinctive: line 143
No restating the title. The reader just read it
- Distinctive: line 144
No play-by-play ("first X, then Y").
- Distinctive: line 145
Never invent acceptance criteria, paths, or repro steps.
- Very specific: line 180
Never gh label create. Chain missing -> drop the label, report it
- Distinctive: line 182
Never invent acceptance criteria, file paths, numbers, or repro steps.
- Very specific: line 183
Never --assignee / --milestone / --project unless asked.
- Distinctive: line 186
Never close or edit an existing issue from this skill
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Issue Create
File one standalone issue. No confirm.
Flow
- Boundary check: is the work starting now? Yes -> hand off to
git-branch-create(new work) orgit-issue-start(issue already exists) and stop. Why -> an issue is a record of work deferred; work in flight belongs on a branch, and a second tracker entry for it just rots - Repo:
gh repo view --json nameWithOwner -q .nameWithOwner. Fails -> stop, surface the error (no remote, no auth, not a repo). Never guessowner/name - Search for duplicates before drafting anything:
gh issue list --search "<2-4 distinctive keywords>" --state all --limit 10 \ --json number,title,state,url -q '.[] | "\(.number)\t\(.state)\t\(.title)"'--state all-> a closed issue is the answer often enough that skipping it files the same bug twice. Keywords are nouns from the user's description, not the whole sentence. 10 hits returned -> the search was too broad and real duplicates may sit past the cap; narrow the keywords and search again before proceeding - Triage the hits:
- Strong match (same defect, same capability) -> print its number, title, state, URL. Stop. Offer to comment on it instead (<= 4 prose lines, see Length); reopening is the user's call, not this skill's. Why -> a duplicate backlog is worse than a missing issue: every triage pass afterwards pays for it
- Adjacent match (related, not the same) -> proceed, link it in
## Context - No hits -> proceed
- Parallel:
- Repo issue template:
.github/ISSUE_TEMPLATE/*.md,.github/ISSUE_TEMPLATE/*.yml,.github/issue_template.md, rootissue_template.md(first match wins) gh label list --limit 200 --json name -q '.[].name'
- Repo issue template:
- Draft title per Title. Draft body:
- Template found -> fill that template's structure (preserve headings, order, checklists, HTML comments). A
*.ymlform -> render itslabel/attributesas markdown headings in the same order - None found (the normal case) -> use Fallback Body below
- Template found -> fill that template's structure (preserve headings, order, checklists, HTML comments). A
- Resolve labels per Labels. Exactly one
type: * - Heredoc body so markdown survives the shell:
gh issue create --title "fix(auth): session drops on api deploy" --label "type: bug" --body "$(cat <<'EOF' ## Problem Sessions drop on every API deploy because the cookie is signed with a per-instance key. ## Done when - a session survives a rolling restart of all API pods - no change required to the `users` table EOF )"'EOF'quoted -> no shell interpolation, so$, backticks and#in the body survive intact - Print the issue URL. Name any label dropped in step 7 and why
- User wants to start on it now -> hand off to
git-issue-start
Title
Same grammar as git-commit and git-pr-create:
<type>(<scope>): <short summary>- Type:
build|chore|ci|docs|feat|fix|perf|refactor|test. Type picks and tiebreakers live ingit-commit- use that table, do not re-derive one - Scope: optional, lowercase, one only
- Summary: imperative present, lowercase, no trailing
. - Whole title <= 72 chars
The title is the type signal: fix( is what makes type: bug the obvious label in step 7.
Examples:
fix(api): handle timeout on retryfeat(catalog): filter skills by tagdocs(readme): document the sync contract
Labels
Never hardcode the namespaced taxonomy - detect it. These rules run on forks and third-party repos too.
Fetch once per run:
gh label list --limit 200 --json name -q '.[].name'Resolve each intended label through its candidate chain, first existing name wins:
| Intent | Candidate chain |
feat | type: enhancement -> enhancement -> feature |
fix | type: bug -> bug |
docs | type: documentation -> documentation -> docs |
perf | performance -> type: enhancement -> enhancement |
refactor / chore / build / ci | type: maintenance -> maintenance -> chore |
test | type: maintenance -> tests -> test |
| breaking change | type: breaking -> breaking-change -> breaking |
| dependency bump | type: dependencies -> dependencies -> deps |
| security | type: security -> security |
| priority | priority: <level> -> <level> priority -> <level> |
| blocked | status: blocked -> blocked |
| duplicate | status: duplicate -> duplicate |
- Whole chain missing -> drop that label and say so in the output. Never
gh label create - Exactly one
type: *per issue. Pick the dominant type, never two priority: *only when the user signalled urgency. Never guess a priority- Multi-word names must be quoted:
--label "type: bug"
Body - Repo Template Present
- Template verbatim as the skeleton: headings, order, checklist items, HTML comments
- Fill only the fields the user actually gave you. A required field you cannot answer -> ask, do not invent
- Tick checklist items that apply; leave the rest unchecked
*.ymlform with alabels:key -> those labels are additive to step 7, and still go through the candidate chains
Fallback Body
No template found - the normal case. Fill references/issue-body.md.
Optional, only when it carries a fact:
## Context- <= 2 lines, links to prior issues, PRs, ADRs## Out of scope- <= 2 lines, the adjacent thing a reader would otherwise assume is included
Never emit an empty placeholder section. Drop it.
Acceptance criteria you were not told -> ask, or omit ## Done when. Why -> an invented criterion is worse than a missing one: it closes the issue on the wrong condition.
Length
Hard cap: 8 lines of prose for an issue body, 4 for a comment on an existing one. Headings and code blocks don't count - only text you write.
## Problem: 1-3 lines. What is wrong and what it costs. Not the fix## Done when: one bullet per condition, one line each, 100 chars or fewer. No sub-bullets, no paragraph bullets- Any other section: <= 2 lines, or drop it
- Nothing to say -> drop the section. An empty section is information, filler is not
Prohibitions:
- Why it exists and what "done" means, not how - the code shows how
- No restating the title. The reader just read it
- No play-by-play ("first X, then Y"). No file inventories, no code dumps
- Never invent acceptance criteria, paths, or repro steps. Unknown -> ask or omit
Good:
## Problem
`kst sync` silently skips new MCP files because `kasetto.yaml` enumerates them by name.
## Done when
- adding `mcps/<name>.json` syncs without editing `kasetto.yaml`
- the site and the sync agree on which MCPs existBad - filler opener, restates the title, narrates the work, invents criteria:
## Problem
This issue tracks the comprehensive implementation of a more robust MCP sync
mechanism. Currently the existing configuration leverages an enumeration-based
approach which presents certain challenges.
## Done when
- First we will investigate how kasetto.yaml is parsed
- Then we will design a holistic solution
- Finally we will ensure that all 6 MCP servers sync seamlesslyRules
- Duplicate search runs before the body is drafted. Why -> drafting first makes you argue for filing it
- Strong duplicate -> stop and surface it. Never file a near-duplicate "to be safe"
- Never
gh label create. Chain missing -> drop the label, report it - Exactly one
type: *label. Two type labels break every triage query - Never invent acceptance criteria, file paths, numbers, or repro steps. Unknown -> ask or omit
- Never
--assignee/--milestone/--projectunless asked. Self-assigning implies you are starting, which isgit-issue-start - Body over 8 prose lines -> cut before creating, not after
- One issue per invocation. A list of separate problems -> one issue each, filed one at a time
- Never close or edit an existing issue from this skill
- No "Generated with Claude Code" or co-author trailers
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- blog-writeSkill
- cloudflare-hygieneSkill
- git-branch-cleanupSkill
- git-branch-createSkill
- git-branch-syncSkill
- git-commitSkill
- git-issue-startSkill
- git-issue-triageSkill
- git-pr-createSkill
- herdr-dispatchSkill
- humanizeSkill
- macos-cleanupSkill
- macos-maintenanceSkill
- obsidian-markdownSkill
- spec-applySkill
- spec-archiveSkill
- spec-exploreSkill
- spec-proposeSkill
- spec-verifySkill
- vercel-hygieneSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

