Issue file

From lukoshkin/evangelist · View interactive version

Issue file is an AI agent skill from the GitHub repository lukoshkin/evangelist. Use when asked to file/open/create a GitHub issue. Supports `/issue-file [--ground] <description> [media]` (order arbitrary) for one-shot creation, or free-form requests like "write an issue for this", "log a bug", "open a ticket", "capture this for a fresh session", "ground it now". Defaults to lig

How to use this skill

Skill file

Filing GitHub Issues

Overview

An issue is a cold-start brief: it must let a fresh session (no memory of

this conversation) pick up the work and ship it. Attach what you saw, write

checkable acceptance criteria, and point at the resolution convention.

Grounding depth depends on mode (see Modes below) — by default, filing

preserves the current session's context and the fix session does the

grounding; --ground spends this session's context to hand the fix session a

verified head start. The detailed close protocol lives in the sibling skill

issue-fix.

When to Use

text + attachment combo as a one-shot create request.

"give the fix session a verified head start". Default otherwise is light

mode (see Modes).

if combine-vs-split is genuinely ambiguous.

Modes

Two modes trade current-session context against fix-session readiness:

| Mode | When | Step 2 (Key Files) | Grounding → Verified facts |

|---|---|---|---|

| Light (default) | Mid-task — keep the active context clean; the fix happens in a fresh session anyway. | List 1–3 likely starting points from current context + the description; mark each (guess). Don't open files. | Empty. Push every claim to Hypothesis with a way to confirm. |

| --ground | Done with current work, or the fresh session benefits from a verified head start. | Open implicated files; cite file.ext:line with role. | Filled with what the code actually does. |

Both modes still require: dupe check, label from gh label list, repro steps,

screenshots committed under .github/issue-assets/<NNN>/, checkable

acceptance criteria, cross-links, resolution pointer.

Workflow

  1. Check first. gh issue list --search "<keywords>" (catch dupes — plain

gh issue list only paginates recent). Identify any sibling issues to

cross-link (#NN — short reason). gh label list for a label that exists

(bug / enhancement); never invent one.

  1. Populate Key Files per mode (see Modes above). Light: list 1–3

likely starting points from current context, mark each (guess), leave

Grounding → Verified facts empty. --ground: open the implicated files,

cite file.ext:line, fill Grounding → Verified facts with what the code

does. Never leave the Key Files table blank — it's the single biggest

accelerator for a fresh-session pickup.

  1. Extract session-bound details into the body. Anything in this

conversation that isn't in the code: reproduction steps, observed behavior,

screenshots, logs, user-reported context. The fresh session won't have it

unless the issue does.

  1. Create + attach + finalize. Number isn't known until creation, so:

names, git add + commit (so a fresh checkout has them).

asset paths.

  1. Report the issue URL.

Issue body template

## Summary
One paragraph: what's wrong / wanted. **Screenshot:** `.github/issue-assets/<NNN>/<name>.png`

## Steps to reproduce
1. … 2. … 3. …
**Expected:** …  **Actual:** …

## Grounding
### Verified facts (read from the code)
- `path:line` — what the code actually does.
### Hypothesis (needs confirmation)
- Most likely cause + how to confirm. Flag theories ruled out.

## Key files
| Path | Role |
|---|---|
| `src/foo.py:42` | … |
| `tests/test_foo.py` | … |

## Run / test commands
- `<build>` · `<run>` · `<tests>` · `<lint>` — exact commands.

## Acceptance criteria
- [ ] Concrete, checkable conditions. A future triager (not just the
  implementer) reads these to decide "is this done?" without re-deriving
  the spec.

## Fix directions
- Concrete options the implementer can evaluate.

## References
- `#NN` — sibling issue / blocker / superseded-by.
- `docs/architecture/<topic>.md` — relevant architecture doc.

## Resolution
Reference this issue in the fix commit (e.g. `Iss #<NNN>: <subject>` —
check `git log --oneline -20` for the repo's convention). After merge,
close `#<NNN>` with a comment naming the resolving commit(s). Full
protocol: see the `issue-fix` skill.

Extending an existing issue

When new info arrives after the issue is created (more repro detail, a

related symptom, a found root cause), **add a comment via `gh issue comment

<NNN>`** — don't edit the body. Reasons:

consistency keeps the timeline coherent.

delta.

Edit the body only to fix mistakes in the original (typos, broken links,

wrong line numbers).

Common Mistakes

| Mistake | Fix |

|---|---|

| Restating the symptom only | --ground: open the code, cite file:line. Light: still name 1–3 likely starting points + a way to confirm in Hypothesis. |

| Opening files in light mode | If filing mid-task to preserve context, defer grounding — pass --ground only when intentional. |

| Overclaiming the root cause | Mark it a hypothesis; give a way to confirm. |

| Dropping the user's screenshot | Save to .github/issue-assets/<NNN>/, commit, reference it. |

| Inventing a label | Only use labels from gh label list. |

| Bundling unrelated problems | One issue per independent surface. |

| Vague acceptance ("works correctly") | Make each criterion checkable in code or a log line. |

| Editing the body to add new info | Use a comment — preserves the timeline. |

| No cross-links to siblings | Reference related issues + specs. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.