Turn the current conversation into one typed, sized GitHub issue an agent can pick up cold. No interview. A raw idea, or a bug seen with no agreed fix, goes to capture instead. Use when the user asks to file the work this chat agreed on as an issue.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of File Issue?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/linhvu0711-file-issue)
---
name: file-issue
description: "Turn the current conversation into one typed, sized GitHub issue an agent can pick up cold. No interview. A raw idea, or a bug seen with no agreed fix, goes to capture instead. Use when the user asks to file the work this chat agreed on as an issue."
---
Paths in this skill are relative to its real folder: the one that holds this `SKILL.md`, after links are followed, as `realpath` prints it. Before you run or read one of them, put that real folder's absolute path in front of it.
Read `../../core/github/issue-rules.md` first. It holds the gate, types, sizes, labels, body template, lookup rule, repo convention, duplicate check, and report. This file is the order of operations.
## Steps
1. **Gate.** Apply the readiness gate to what the conversation already holds. Pass: continue. Fail: judge what the chat holds, then take one branch. A caller whose words hold the line `No capture.` takes the Decided branch, whatever the chat holds.
- **Raw**: nobody has decided what to build, or how a broken thing must behave after the fix: a loose idea, or a bug seen with no agreed fix. And the chat names no origin, per the rules file § Duplicates and seeds. Start the `capture` skill, with the thing in the chat's words. After its `Captured:` line, add one line, `Not a ticket yet: <the gate's first gap>.`, and stop.
- **Decided**: anything else, such as agreed work with a missing unhappy path, or a thing whose origin issue is named. List the gaps and stop, per the rules file.
2. **Repo convention.** Load it, or learn it once. Done when `style`, `size` labels, and (only if the user named a priority) the priority label are known.
3. **Type and size.** Pick the type from the table. Size: the estimate line, per the rules file § Size. When a size fact is unknown, run the one lookup round, then decide. When the ticket looks XS or S, the same round also fetches the lines, the pattern to copy (the Standard's way first, per the rules file § Lookup), and the test, so Steps can be written. XXL: give the estimate line, say `file-epic` is the tool for it, and stop. Nothing is created. `task`: no size, no XXL check. The lookup round goes to the platform's docs instead, per the rules file § Lookup, so Steps can be written.
4. **Duplicate check.** Two searches, open then closed, in the issue's repo, per the rules file § Duplicates and seeds. Same open work, not a seed: show it, stop. Origin found: remember its number, and whether it is a bug or a seed. A closed match goes on the Related line.
5. **Write.** Title per the title rule. Body per the template, with the type variant when it applies. Every Done-when line is observable from outside the code. For `feat` and `fix`, walk the five unhappy-path states per the rules file: copy the Standard's rule, else the repo's pattern, else default and mark Open, else the gate fails and you ask in one block. XS and S get Steps when every step comes from a line that was seen and no choice is open, per the Steps rules. A step that needs a decision the chat never made: no Steps, and the size stays. `task`: body per the rules file § Task body, Steps always. Doc text the chat agreed on (a glossary entry, an ADR) goes under `## Docs to write`, word for word, per the rules file.
6. **Create.** Origin bug or seed: rewrite it instead, per the rules file § Origin bug or § Origin seed, with the same labels and `--repo`. Nothing new is created, and nothing is closed. Otherwise:
```bash
gh issue create --repo owner/repo --title "<title>" --body-file "$f" --assignee @me \
--label '"<size label>"' [--label '"<ready-to-build label>"'] [--label '"<priority label>"'] \
[--type <Name>]
```
`--assignee @me` per the rules file § Assignee: the user, unless the user named someone else or said no assignee. `ready-to-build` goes on every ticket that has Steps, and on no other. A `task` is the exception: its only label is `manual`, no size label. Each label name goes in double quotes, per the rules file § Labels.
A missing label from the rules file: create it, retry once. An assignee failure: per the rules file § Assignee, Check first and Never twice. Any other failure: show the error, stop.
7. **Report.** One line: the URL, also put on the clipboard, then the estimate line and the type, as `https://github.com/acme/shop/issues/42 · M: about 60 lines, 3 files · feat`.
## Examples
**User:** `/file-issue` after a chat that settled how order export should work, named `src/orders/export.ts:40`, and said "p1".
Title `[feat] Export orders as CSV from the orders page`. Labels `size/M`, `p1`. Body: What to build in two sentences, six Done-when boxes (four happy, one for the empty list, one for a failed export copying the toast at `ErrorToast.tsx:12`), Scope with the PDF export and "no permission" named as out, Context with the file and the glossary term `Order`. One line back with the URL.
**User:** `/file-issue` after a chat that found the CSV export writes dates as epoch numbers, and pinned it to `src/orders/export.ts:57` and the `formatDate` helper in `src/lib/date.ts:12`.
Size XS: one file, one test. Title `[FIX] CSV export shows dates as epoch numbers`. Labels `size/XS`, `ready-to-build`. Body has Expected, Actual, Repro, two Done-when boxes, and three Steps: wrap the value at `export.ts:57` in `formatDate` like `export.ts:49` already does, add case `formats createdAt as ISO date` to `export.test.ts`, run `pnpm test export`. One line back with the URL.
**User:** `/file-issue` after a chat that found why `[bug] Checkout button does nothing` (#42) fails in Safari.
#42 is the origin bug. Same fix body as above, but `gh issue edit 42`: new title `[FIX] Checkout button does nothing in Safari`, `bug` label off, size label on, the old body kept under Original report. One line back with the URL of #42.
**User:** `/file-issue` after a chat that noticed the Retry button does nothing when the server returns 500, and moved on without deciding what it should do.
Gate fails on "done": nobody said what Retry must do after the fix. Raw: a bug seen with no agreed fix, and no bug issue named. The capture skill files `[bug] Retry button does nothing on a 500 response`. Two lines back: `Captured: <url> (on your clipboard)` and `Not a ticket yet: what must Retry do after a 500?`
**User:** `/file-issue` after a chat that settled order export as CSV, but never said what an empty orders list exports, and the repo has no empty-state pattern to copy.
Gate fails on "done": the empty state changes the work. Decided: the work is agreed and one fact is missing. Reply lists one gap: "What does Export give for an empty list: a CSV with only the header row, or a message and no file?" Nothing is created.
**User:** `/file-issue` after a chat that settled that sign-in with X needs an X developer app, and named the code ticket #5 that will read the credentials.
Type `task`. Title `task: create the X developer app for sign-in`. Label `manual`. Lookup, a reader whose brief asks for the web, fetches the X developer portal pages: the Projects page, the OAuth 2.0 settings, the callback URL field, the review wait. Body: What to build with Where (developer.x.com, the Perch account), Bring (the X login and 2FA), Lead time (about 3 days, app review), Hand back (`X_CLIENT_ID`, `X_CLIENT_SECRET` with the secret warning). Three Done-when boxes, five Steps from the docs, Context with the doc URLs and `Blocks #5`. One line back with the URL.
**User:** `/file-issue` for "move all services to the new config loader".
Lookup counts 41 files across 6 packages, about 1,400 lines. Size is XXL. Reply gives the estimate line and says the work needs `file-epic`.