Skip to content

Commit 7429ec5

Browse files
cliffhallclaude
andcommitted
feat: board-ops and issue-create skills; remove the empty-skills bootstrap
Add the first two skills for #4858 Part 6, adapted from the MCP Inspector: - board-ops: gh recipes for the Servers V2 board (#43) only. The project node id and the Status/Priority field ids live here and nowhere else; option ids are resolved by name at run time instead of being tabled. The option-deletion hazard, the snapshot and the recovery recipe are copied verbatim, with only the board number and ids swapped. - issue-create: duplicate check across all states, v2 + exactly one type label (now including chore) + a server-<name> scope label where one server is concerned, the nearest-due open v2.x milestone, a Todo card with a Priority via board-ops, and a read-back query that verifies it. - evals for both (five positives, two negatives each). AGENTS.md gains the two Skills index rows, the .claude/skills/ tree entry, chore in the type-label rule, and the "Maintaining the skills" section that verify-skills and docs/skill-authoring.md already link to. As the first skill-adding PR, remove #4863's EMPTY_SKILLS_BOOTSTRAP allowance and .claude/skills/.gitkeep: an empty skills directory is fatal again. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent f114f2a commit 7429ec5

8 files changed

Lines changed: 679 additions & 102 deletions

File tree

‎.claude/skills/.gitkeep‎

Whitespace-only changes.

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

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