Skip to content
Back to skills

Write Issue

ASecurity

Use before opening or rewriting an issue someone else will take, so its body holds the whole spec, or a design issue for talk before anything is agreed.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgogitsecurityperformance

Works with

  • cli

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add teamrig/teamrig --skill write-issue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write Issue?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Write Issue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/teamrig-write-issue/badge)](https://www.skillsdirectory.com/skills/teamrig-write-issue)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: write-issue
description: Use before opening or rewriting an issue someone else will take, so its body holds the whole spec, or a design issue for talk before anything is agreed.
---

# Write an issue someone can take alone

An issue is the whole brief for whoever takes it, often someone outside the team, or their agent, who sees only the
issue and the repository. Each question it leaves open costs a round trip, and each rule it leaves out is broken in
the first draft. Write it so the taker can finish without asking. The steps hold for any repository and any tracker;
a tracker's own commands for them are in its section at the end.

## 1. Read what binds the work

Before writing a line, read what the repository already has that the work must follow, and name each in the issue
with its path:

- **Where a change lives.** The repository's own rule on it (`CONTRIBUTING.md`, the instruction files its AI
  CLI reads, a docs page on its layout): which folder or package the change goes in, what counts as one change, what
  a change request holds.
- **What it must match.** The modules it extends or reuses, and the style it follows: a palette, a logo or
  wordmark, a naming rule, a docs voice. Name the file that holds each; a taker who does not know the palette picks
  their own.
- **The design it fits.** The repository's principles and architecture, the decisions already taken (agreed design
  issues, design docs), and its rule on code quality, such as SOLID: the work fits them or the issue says which it
  changes and why.
- **What a change request is held to.** Tests, sign-off, commit size, the checks CI runs.
- **What is there already.** Search the open and closed issues and change requests, so the issue is no
  duplicate, and link the related ones by their title, as `[<its title> (#<n>)](<its full URL>)`: a bare number
  says nothing until it is opened. The same holds for every comment that names other work; work with no issue
  yet gets one before the text names it.

A rule the issue does not state is one the taker will not know.

## 2. The whole spec in the body

- The body is the spec. A comment is for talk: a spec in comments is missed, as a taker reads the body first and an
  agent often reads only the body.
- Write the body in a file first, so it is read in full, checked and posted whole.
- A changed spec replaces the body (`teamrig issue edit <owner/name#n> --body-file <file>` on a repository teamrig
  syncs, else the tracker's own edit), and one short comment says what changed. The tracker's edit history keeps the
  old body.
- No private data: no home folder paths, e-mail addresses, host names, internal task ids, private logs or secrets.
  An issue may be public, and a copy outlives a later edit.
- No security hole: one goes only to the repository's private vulnerability reporting or its `SECURITY.md` route,
  never an issue, and its fix's issue, if any, names the hardening, never the attack
  ([security skill](../security/SKILL.md#a-security-hole)).

## 3. Its sections

These headings, in this order. Leave one out only when it has nothing to say, never vague:

- **TL;DR**: always first, never left out: what the issue is about in one or two short sentences of plain words,
  so a reader skimming the list knows it without reading on.
- **Why**: the problem or goal in two or three sentences, and who it is for.
- **Scope** and **Out of scope**: what is in, and what is not, named, so it is not built.
- **Deliverables**: each file or change with its exact path and format (file type, size, naming, where it is linked
  from).
- **Constraints**: what step 1 found, each with its path.
- **Acceptance checks**: how the taker and the reviewer both know it is done, each a check a reader can run or see:
  a command and its expected output, a page that renders, a test that passes.
- **Risks**: what could go wrong (a break for a caller, a security or data risk, a cost, a migration) and how each
  is softened, or `none foreseen` and why.
- **Regressions considered**: in a bug or a change of behaviour, who depends on what it changes (callers, files and
  contracts, other installs, update and uninstall paths, each OS, each AI CLI, other users, config defaults), what
  could break for each, and the test or the one-line reason per item, by the
  [regression-check skill](../regression-check/SKILL.md).
- **What the maintainer decides**: the choices left open (an option to pick, a design to approve), and what the
  taker proposes for each.
- **Review and dates**: when a draft or the options are due, how long a review takes, and the date it is wanted by,
  if any.
- **Starting points**: the files, functions and docs to read first, by path and name; line numbers drift.

## 4. A goal is a parent with sub-issues

Work that splits into parts different people can take is a parent issue, the goal (its Why, the parts, their order,
done when every part is), with one sub-issue per part, each a full issue by these steps that names its parent in its
Why. Link each to the parent as its sub-issue (`teamrig issue links` from the task tree, or the tracker's own link), and
mark a part that must wait for another as blocked by it.

## 5. Labels and the taker

- Only labels the repository has (list them first): a label added by name that does not exist is made new, typo
  and all.
- One label per meaning: one type, one priority, and one status when the repository uses status labels; never a
  second label that says the same as another (a "help wanted" beside a status that already says the issue is open
  to take).
- A parent issue (a goal) takes no status label: its parts carry the status, and the goal is done when they are.
- A design issue (section 6) takes `design` and no status label: it is not work to take. It is assigned to the
  team's design assignees, when it names any (teamrig's `designAssignees` setting), else to no one.
- `good first issue` only on a small, well-defined issue a newcomer can finish with no knowledge beyond its body;
  on a few such issues, so the label keeps meaning something.
- Assign the issue to its taker once they say they take it; until then it stays unassigned, open to anyone. On a
  repository whose teamrig sync sends the status push, a taker's `/take` comment assigns them for seven days, until
  a change request links the issue.

## 6. A design issue is talk, not a spec

When the question is how something should work and nothing is agreed yet, open a design issue in place of a spec:
everyone, and the agent working for them, gives their side in comments, and no one takes it as work until the
maintainers mark it agreed. It replaces a discussion forum, so the talk stays beside the work it leads to.

- **Label** it `design`, with no status label; assign it to the team's design assignees, if it names any (teamrig's
  status push and `issue migrate` do so from that setting), else to no one. teamrig makes the label
  where a repository lacks it (`teamrig issue label <owner/name#n> --add design`), and its status push shows no
  status on a design issue.
- **Sections**, in place of section 3's: **TL;DR** first (what the talk is about, in plain words), **Question**
  (what to decide, in one or two sentences), **Context** (what
  exists today, by path, and why it needs a decision now), **Options** (each with what it costs and what it gives
  up), **Proposal** (the opener's pick, if any), **Early steps** (what is cheap to do now and would cost far more
  once a later, more mature architecture is built: a port, a config key in place of a constant, data in place of a
  branch in code; no hook for a need no one has named), **Delivery plan** (how the proposal is built, so reviewers
  weigh the breakdown too: milestones in order, each shipping working value early with its deliverable, what done
  means for it and the live proof that shows it; the tasks and sub-tasks under each, with their order, what each
  waits on and a rough size), **Risks** (as in section 3, for each option where they differ and for each milestone:
  what could go wrong and how it is softened), **Pitfalls** (traps a builder or a user falls into, each with the
  test or check that catches it), **Performance** (the expected cost in time, memory, CPU, tokens and network for
  each option and milestone, the limits it must stay under, and how each is measured: a check or a live reading)
  and **How it is agreed** (who decides, by when). As in section 3, leave a section out when the subject gives it
  nothing to say (a design with no software in it may have no performance or delivery plan), never fill it vaguely.
  A repository's own design form, when it has one, sets these.
- **Say at the top** that it is talk: comments with reasons, and no claim, branch, code or change request until it
  is agreed; and that nothing sensitive is posted in it (section 2's list).
- **Agreed** is the maintainer's mark, never a count of comments: a comment starting `Agreed:` that sums up the
  decision. Then the body is rewritten as a spec by sections 2 and 3, or the work opens as new issues linked to it,
  and the `design` label comes off; from then on it is work like any other. The agreed delivery plan becomes the
  tracking: a parent issue per milestone with a sub-issue per task (section 4), or the tracker's milestones where
  it has them, each milestone's deliverable and done-when in its parent's body.

## 7. Read it back

After posting, read the issue back from the tracker (its page, or its own command) and check it against this list: the body
renders (headings, lists, code, links), every path exists, every `#number` is the one meant, the labels and the
parent are set, and nothing private is in it. Fix it by editing the body, then call it done.

## Posting

- A task of a teamrig team going to its tracker: `teamrig issue migrate`, its row's body written by these steps
  ([the command](../teamrig-guide/commands.md#teamrig-issue-migrate)).
- Any other new issue: the tracker's own create, with the body file, or its web form.

## On GitHub

GitHub's own commands for the steps above, until a teamrig command serves each step on every tracker:

- Search (step 1): `gh issue list --state all --search "<words>"` and `gh pr list --state all --search "<words>"`.
- Replace a body (step 2) on a repository teamrig does not sync (outside `github.repos`):
  `gh issue edit <n> --body-file <file>`.
- Link a sub-issue (step 4): the parent's **Create sub-issue**.
- List the labels (step 5): `gh label list`.
- Read it back (step 7): `gh issue view <n>`.
- Open a new issue: `gh issue create --title "<title>" --body-file <file> --label "<label>"`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.