|
| 1 | +--- |
| 2 | +name: issue-create |
| 3 | +description: "Create a tracked issue in this repo end to end — duplicate check, v2 label, type label, server-scope label, milestone, board card, Status and Priority. Use when asked to file, create, open or raise an issue; when picking its labels or its milestone; when checking whether one already exists; or when work discovered mid-task needs an issue of its own." |
| 4 | +disable-model-invocation: false |
| 5 | +--- |
| 6 | + |
| 7 | +# Creating an issue |
| 8 | + |
| 9 | +An issue **you** create is not "created" until every step below is done. A |
| 10 | +label is a repo tag, the milestone is a release bucket, and the board is a |
| 11 | +separate org project: `--label v2` does **not** add a board card, and adding a |
| 12 | +card does **not** set a Status or a Priority. |
| 13 | + |
| 14 | +| # | Step | Applies | |
| 15 | +| --- | --- | --- | |
| 16 | +| 1 | **`v2` label** | Always | |
| 17 | +| 2 | **Type label**: exactly one of `bug` / `enhancement` / `documentation` / `chore` / `question` | Always | |
| 18 | +| 3 | **Scope label**: `server-<name>` | Only when the issue concerns **one** server | |
| 19 | +| 4 | **Milestone** | Always | |
| 20 | +| 5 | **A card on the Servers V2 board (#43)** | Always | |
| 21 | +| 6 | **Status** on that card: `Todo` (or `In Progress` if you start now) | Always | |
| 22 | +| 7 | **Priority** on that card | Always | |
| 23 | + |
| 24 | +The rules behind each row are in [`AGENTS.md`](../../../AGENTS.md) under |
| 25 | +**Issue-driven work style**; this skill is the procedure. Rows 5–7 need the |
| 26 | +board's IDs, which only the `board-ops` skill holds, so **load `board-ops` |
| 27 | +before step 5**; it is step 5's first action. |
| 28 | + |
| 29 | +Set the labels and milestone at **create time**, never by backfilling: an |
| 30 | +unlabeled issue appears in no `v2`-filtered query, and an unmilestoned one drops |
| 31 | +out of release planning silently. |
| 32 | + |
| 33 | +**Never create a duplicate.** **Never create a draft card** (a board card with |
| 34 | +no issue number): every board item is a real GitHub issue. |
| 35 | + |
| 36 | +## 0. Check for an existing issue first |
| 37 | + |
| 38 | +Search **all** states, not just open. A closed issue is still a duplicate: it |
| 39 | +may have been completed, rejected, or filed and superseded, and refiling it |
| 40 | +loses that history. When one matches, the call is whether to reopen it or file |
| 41 | +genuinely new work; either way you need to have seen it. |
| 42 | + |
| 43 | +```sh |
| 44 | +gh issue list --repo modelcontextprotocol/servers --state all --limit 200 \ |
| 45 | + --search "<keywords>" --json number,title,state,stateReason,labels,milestone |
| 46 | +``` |
| 47 | + |
| 48 | +This repository has thousands of issues, most from outside contributors, so |
| 49 | +search with two or three phrasings (the symptom, the tool or server name, the |
| 50 | +error text) before concluding there is none. Also check the board itself, where |
| 51 | +approved work already has a card: |
| 52 | + |
| 53 | +```sh |
| 54 | +BOARD=$(gh project item-list 43 --owner modelcontextprotocol --format json --limit 2000) |
| 55 | +# --limit truncates silently: trust the listing only when it is complete. |
| 56 | +if jq -e '(.items | length) == .totalCount' <<<"$BOARD" >/dev/null; then |
| 57 | + jq -r '.items[] | "\(.content.number)\t\(.status)\t\(.title)"' <<<"$BOARD" \ |
| 58 | + | grep -i "<keyword>" |
| 59 | +else |
| 60 | + echo "board listing incomplete or failed — raise --limit; not concluding anything" >&2 |
| 61 | +fi |
| 62 | +``` |
| 63 | + |
| 64 | +## 1. Pick the labels |
| 65 | + |
| 66 | +**`v2`.** Every issue created through this flow carries it. It marks work |
| 67 | +tracked by this workflow; there is no other version label in this repository. |
| 68 | + |
| 69 | +**Type.** Exactly one: |
| 70 | + |
| 71 | +| Type | Use for | Not for | |
| 72 | +| --- | --- | --- | |
| 73 | +| `bug` | Something is broken, wrong, or regressed against its intended behavior, including a server that reports something false about the protocol | A missing capability that was never built | |
| 74 | +| `enhancement` | A new capability, or extending an existing one: features, protocol-feature demonstrations, tracking issues | A cleanup with no behavior change | |
| 75 | +| `documentation` | Prose deliverables: READMEs, `docs/`, `AGENTS.md` rules, skills | Code that happens to need a doc update | |
| 76 | +| `chore` | Maintenance with no user-facing behavior change: dependencies, build and CI tooling, refactors, release plumbing | Anything a user of a server would notice | |
| 77 | +| `question` | An open question or discussion with no agreed deliverable yet | Work someone has already decided to do | |
| 78 | + |
| 79 | +**Don't force the binary.** `bug` and `enhancement` are the two most reached |
| 80 | +for, and pressing a docs task or a dependency pin into `enhancement` degrades it |
| 81 | +to "not a bug", at which point filtering by it stops telling you anything. |
| 82 | + |
| 83 | +**Scope.** When the issue concerns exactly one server, add its label: |
| 84 | + |
| 85 | +| Server directory | Scope label | |
| 86 | +| --- | --- | |
| 87 | +| `src/everything/` | `server-everything` | |
| 88 | +| `src/filesystem/` | `server-filesystem` | |
| 89 | +| `src/memory/` | `server-memory` | |
| 90 | +| `src/sequentialthinking/` | `server-sequentialthinking` | |
| 91 | +| `src/fetch/` | `server-fetch` | |
| 92 | +| `src/git/` | `server-git` | |
| 93 | +| `src/time/` | `server-time` | |
| 94 | + |
| 95 | +An issue about the repository as a whole (CI, root scripts, `AGENTS.md`, |
| 96 | +skills, release tooling) carries **no** scope label. An issue that really spans |
| 97 | +two or three servers takes each of their labels; one that spans them all is |
| 98 | +repository-wide and takes none. |
| 99 | + |
| 100 | +## 2. Pick the milestone |
| 101 | + |
| 102 | +If the user didn't name one, use the **current** milestone: the open `v2.x` |
| 103 | +milestone with the nearest due date. |
| 104 | + |
| 105 | +```sh |
| 106 | +gh api repos/modelcontextprotocol/servers/milestones --jq \ |
| 107 | + 'map(select(.state=="open" and (.title|startswith("v2")))) | sort_by(.due_on == null, .due_on) |
| 108 | + | .[] | "\(.title)\tdue \(.due_on // "none" | .[0:10])\topen=\(.open_issues)"' |
| 109 | +``` |
| 110 | + |
| 111 | +The first line is the default. Milestones are **release** buckets, so pick by |
| 112 | +_when the work ships_, not by size. If a new issue plainly can't make the |
| 113 | +current milestone, say so and put it in the next one rather than leaving it |
| 114 | +blank. A sub-issue normally inherits its parent's milestone. |
| 115 | + |
| 116 | +## 3. Pick the Priority |
| 117 | + |
| 118 | +Priority is a board field (Urgent / High / Medium / Low), not a label. Pick it |
| 119 | +by impact and urgency, and say in one line why: |
| 120 | + |
| 121 | +| Priority | For | |
| 122 | +| --- | --- | |
| 123 | +| Urgent | A security problem, a broken release, or something blocking other work now | |
| 124 | +| High | A real defect users hit, or work other planned work depends on | |
| 125 | +| Medium | The default for planned work | |
| 126 | +| Low | Nice to have; nothing waits on it | |
| 127 | + |
| 128 | +A scored rubric replaces this table when the `issue-triage` skill lands (#4868). |
| 129 | + |
| 130 | +## 4. Create it |
| 131 | + |
| 132 | +```sh |
| 133 | +gh issue create --repo modelcontextprotocol/servers \ |
| 134 | + --title "<title>" \ |
| 135 | + --label v2 --label "<type from step 1>" --label "<server-name from step 1>" \ |
| 136 | + --milestone "<milestone from step 2>" \ |
| 137 | + --body "<body>" |
| 138 | +``` |
| 139 | + |
| 140 | +Drop the `server-…` label for a repository-wide issue, and repeat it for each |
| 141 | +server when an issue spans a few. `gh issue create` prints |
| 142 | +the new issue's URL; keep it for the next step. |
| 143 | + |
| 144 | +A good body states the problem, how to reproduce it (the server, its |
| 145 | +configuration, the client, the request), the expected behavior, and which spec |
| 146 | +era it concerns when that matters. |
| 147 | + |
| 148 | +## 5. Board it, in Todo, with its Priority |
| 149 | + |
| 150 | +Filing an issue for work you intend to happen **is** approving it, so it starts |
| 151 | +in **Todo** with its milestone already set, not in `Incoming`, which is the queue |
| 152 | +for issues nobody has evaluated yet. Work you are starting immediately goes |
| 153 | +straight to **In Progress**. |
| 154 | + |
| 155 | +**Load the `board-ops` skill now** and run its add-card recipe with the Status |
| 156 | +and the Priority from step 3. This file cannot board the issue on its own: the |
| 157 | +project, field and option IDs live in `board-ops` and only there. An |
| 158 | +option ID is regenerated whenever its field's option list is edited, so a |
| 159 | +second copy here would go stale silently and break issue creation even after |
| 160 | +`board-ops` was fixed. |
| 161 | + |
| 162 | +## 6. Verify |
| 163 | + |
| 164 | +Read the issue back and confirm every row of the table at the top: |
| 165 | + |
| 166 | +```sh |
| 167 | +N=<ISSUE_NUMBER> |
| 168 | +gh api graphql -F n="$N" -f query='query($n:Int!){ |
| 169 | + repository(owner:"modelcontextprotocol",name:"servers"){issue(number:$n){ |
| 170 | + number title milestone{title} labels(first:20){nodes{name}} |
| 171 | + projectItems(first:100){nodes{project{number owner{... on Organization{login}}} |
| 172 | + fieldValues(first:20){nodes{... on ProjectV2ItemFieldSingleSelectValue{ |
| 173 | + name field{... on ProjectV2SingleSelectField{name}}}}}}}}}}' \ |
| 174 | + --jq '.data.repository.issue | {number, title, milestone: .milestone.title, |
| 175 | + labels: [.labels.nodes[].name], |
| 176 | + board: [.projectItems.nodes[] |
| 177 | + | select(.project.number==43 and .project.owner.login=="modelcontextprotocol") |
| 178 | + | [.fieldValues.nodes[] | select(.field) | {(.field.name): .name}] | add]}' |
| 179 | +``` |
| 180 | + |
| 181 | +The issue is created when `labels` holds `v2`, exactly one type and the scope |
| 182 | +label if one applies, `milestone` is set, and `board` holds exactly one entry |
| 183 | +with both a `Status` and a `Priority`. The filter matches the board's owner as |
| 184 | +well as its number, because project numbers are only unique per owner. |
| 185 | + |
| 186 | +## Issues that arrive from elsewhere |
| 187 | + |
| 188 | +An issue opened through the GitHub UI, by an outside reporter or by a |
| 189 | +maintainer, arrives with **no `v2` label, no milestone and no card**. That is |
| 190 | +normal on arrival, not a defect to fix the moment it lands: it is not approved |
| 191 | +yet, so it enters the board in **Incoming**, unmilestoned, through triage (the |
| 192 | +`issue-triage` skill, #4868), never through this flow. |
0 commit comments