Skip to content

Commit 289339f

Browse files
authored
Merge pull request #4899 from modelcontextprotocol/v2/feat/4866-board-ops-issue-create
Agentic software factory Part 6: board-ops and issue-create skills; chore label
2 parents 4d1f726 + 9b734b9 commit 289339f

8 files changed

Lines changed: 718 additions & 102 deletions

File tree

‎.claude/skills/.gitkeep‎

Whitespace-only changes.

‎.claude/skills/board-ops/SKILL.md‎

Lines changed: 400 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[
2+
{
3+
"prompt": "Move the board card for issue 4810 to In Review.",
4+
"expect": "board-ops"
5+
},
6+
{
7+
"prompt": "How do I set the Priority field on an issue's card on the Servers V2 board?",
8+
"expect": "board-ops"
9+
},
10+
{
11+
"prompt": "The project board rejected my Status option ID. How do I get the current one?",
12+
"expect": "board-ops"
13+
},
14+
{
15+
"prompt": "I'm about to add an option to one of the board's single-select fields. Should I do anything first?",
16+
"expect": "board-ops"
17+
},
18+
{
19+
"prompt": "Several cards lost their Status value after someone edited the field. How do I put it back?",
20+
"expect": "board-ops"
21+
},
22+
{
23+
"prompt": "Write out every command I need to run to file an issue, start to finish, for: the time server returns the wrong UTC offset for Australia/Lord_Howe during daylight saving. I'll run them myself.",
24+
"chain": ["issue-create", "board-ops"]
25+
},
26+
{
27+
"prompt": "Explain the difference between TCP and UDP.",
28+
"expect": null
29+
},
30+
{
31+
"prompt": "What year was the first Moon landing?",
32+
"expect": null
33+
}
34+
]
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
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.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[
2+
{
3+
"prompt": "File an issue titled 'fetch server ignores robots.txt after a redirect' and set it up the way this repo wants.",
4+
"expect": "issue-create"
5+
},
6+
{
7+
"prompt": "Which milestone should a new issue go in, and how do I find the current one?",
8+
"expect": "issue-create"
9+
},
10+
{
11+
"prompt": "Before I file this, how do I check nobody has reported it already?",
12+
"expect": "issue-create"
13+
},
14+
{
15+
"prompt": "I found a bug in the git server while working on something else. How do I get it tracked in this repo?",
16+
"expect": "issue-create"
17+
},
18+
{
19+
"prompt": "Raise an issue for adding a Roots demonstration to the everything server.",
20+
"expect": "issue-create"
21+
},
22+
{
23+
"prompt": "What is the chemical symbol for potassium?",
24+
"expect": null
25+
},
26+
{
27+
"prompt": "Reverse this string: stressed",
28+
"expect": null
29+
}
30+
]

‎AGENTS.md‎

Lines changed: 50 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ not in advance.
1919

2020
## Skills index
2121

22-
| Skill | Covers | How it loads |
23-
| ----- | ------ | ------------ |
22+
| Skill | Covers | How it loads |
23+
| ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
24+
| [`board-ops`](.claude/skills/board-ops/SKILL.md) | `gh project` recipes and the IDs for the Servers V2 board (#43); resolving option IDs by name; the option-deletion hazard and its recovery | Model-invoked, or `/board-ops` |
25+
| [`issue-create`](.claude/skills/issue-create/SKILL.md) | The create flow: duplicate check, `v2` + type + server-scope labels, milestone, board card, Status + Priority, and the query that verifies them | Model-invoked, or `/issue-create` |
2426

25-
There are no skills in this repository yet. A PR that adds a skill under
26-
`.claude/skills/<name>/SKILL.md` adds its row to this table in the same change,
27-
and the table never lists a skill that does not exist.
27+
A PR that adds a skill under `.claude/skills/<name>/SKILL.md` adds its row to
28+
this table in the same change, and the table never lists a skill that does not
29+
exist. How skills are kept reachable is under
30+
[Maintaining the skills](#maintaining-the-skills).
2831

2932
## Project structure
3033

@@ -38,6 +41,7 @@ servers/
3841
│ ├── fetch/ Py mcp-server-fetch PyPI Fetches web content and converts it for LLMs
3942
│ ├── git/ Py mcp-server-git PyPI Git repository operations
4043
│ └── time/ Py mcp-server-time PyPI Time and timezone conversion
44+
├── .claude/skills/ On-demand procedures (see the Skills index above)
4145
├── scripts/ Release tooling (release.py)
4246
├── docs/ Design documents
4347
├── .github/workflows/ typescript.yml, python.yml (per-package CI), release.yml (dispatch-only publish),
@@ -186,9 +190,48 @@ the template's "How Has This Been Tested?" heading.
186190
two copies of a command sequence or an ID are worse than one, because the stale
187191
copy is indistinguishable from the live one.
188192

193+
### Maintaining the skills
194+
195+
Skills are conditional: a skill's body loads only when it is invoked, so a skill
196+
that stops being reachable loses behavior **silently**. Four rules keep that
197+
from happening. How to write a description that fires, and eval cases that
198+
measure it, is [`docs/skill-authoring.md`](./docs/skill-authoring.md).
199+
200+
1. **`npm run verify:skills` must pass.** It runs inside `validate:guards`, and
201+
CI runs it with `verify:skills:cli` (the authoritative `claude plugin
202+
validate`, at a pinned CLI version) on every push and pull request. It parses
203+
each `SKILL.md`'s frontmatter the way Claude Code does. Malformed YAML loads
204+
the body with an _empty_ description, so `/name` still works while the skill
205+
can never auto-fire; an unquoted `#` truncates the description silently.
206+
**Quote any description containing `#` or `:`**, and keep the opening `---`
207+
on the file's first line.
208+
2. **Every skill declares `disable-model-invocation` explicitly. Default it to
209+
`false`.** Invoking a skill has no side effects (it loads instructions), and
210+
work is usually asked for in prose, which a `true` skill can never answer. A
211+
`true` skill also cannot be reached from another skill's body. Reserve `true`
212+
for a procedure only ever started deliberately by name.
213+
3. **A model-invoked skill carries committed eval cases** at
214+
`.claude/skills/<name>/evals/evals.json`: at least five positives and at
215+
least one negative. `npm run skills:eval` runs them (it needs the `claude`
216+
CLI, or `copilot` with `AGENT=copilot`, and spends real model calls, so it is
217+
**not** in the gate). Run the **whole** suite when adding a skill or editing a
218+
description, since a new skill can lower the trigger rate of the others, and
219+
aim each case at what only the skill holds, never at something this file
220+
already answers.
221+
4. **Keep the listing inside its budget.** Claude Code truncates the skill
222+
listing when it overflows, dropping the least-invoked entries first.
223+
`verify:skills` prints this repo's share against the budget in
224+
`scripts/lib/skill-manifest.mjs` and fails when it is exceeded. Put the key
225+
use case first in each description.
226+
227+
A rule that must never drop out of context stays in this file: in a long
228+
session, auto-compaction can drop an older skill's body entirely.
229+
189230
## Issue-driven work style
190231

191-
All work is driven by items on the Servers V2 board (#43).
232+
All work is driven by items on the Servers V2 board (#43). The _recipes_ for
233+
the flows below are in the `issue-create` and `board-ops` skills; the rules are
234+
here.
192235

193236
- **Before starting work, check the board for the relevant item.**
194237
- **Every board item is a real GitHub issue.** No draft cards. Before creating an
@@ -198,7 +241,7 @@ All work is driven by items on the Servers V2 board (#43).
198241
- **Label every issue and every PR `v2`**, at create time. It marks work tracked
199242
by this workflow.
200243
- **Label every issue with exactly one type label**: `bug`, `enhancement`,
201-
`documentation` or `question`. A PR needs no type label; it is classified
244+
`documentation`, `chore` or `question`. A PR needs no type label; it is classified
202245
through the issue it closes.
203246
- **Label an issue that concerns one server with its scope label**
204247
(`server-everything`, `server-filesystem`, `server-memory`,

0 commit comments

Comments
 (0)