Skip to content

Commit 75c4afd

Browse files
cliffhallclaude
andauthored
fix(skills): pr-flow gate lists verify:skills:cli; bodies via file
The gate table omitted verify:skills:cli, which CI's Root guards job runs on every push, so a skill change could pass the documented local gate and fail CI. It is now a row for anything under .claude/skills/. The PR-create and PR-comment examples passed Markdown bodies inline in double quotes, where backticks run as command substitutions. Both now use --body-file with a quoted heredoc, and the thread-reply example notes the same hazard. The ruff format fix names --frozen and the directory it runs in. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 51bf368 commit 75c4afd

1 file changed

Lines changed: 23 additions & 6 deletions

File tree

‎.claude/skills/pr-flow/SKILL.md‎

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,12 @@ pushing:
119119
| Anything (always) | `npm run validate:guards` (CI's "Root guards" job: root format and lint, the coverage guards, `verify:skills`, the script tests) |
120120
| A TypeScript server | `npm run validate -w src/<server>` (format check, lint, typecheck, build, test) |
121121
| A Python server | `npm run validate:py -- <server>` (locked sync, ruff, ruff format, pyright, pytest, build) |
122+
| Anything under `.claude/skills/` | `npm run verify:skills:cli` (the pinned `claude plugin validate` that CI's "Root guards" job also runs; `validate:guards` only runs the in-repo `verify:skills`) |
122123
| A skill's description, or a new skill | `npm run skills:eval` for the **whole** suite (spends model calls; not in CI). See `AGENTS.md` **Maintaining the skills** |
123124

124125
Verify by exit code, not by grepping the output. Formatting failures are fixed
125-
with `npm run format` (TypeScript) or `uv run ruff format .` (Python).
126+
with `npm run format` at the root (TypeScript), or `uv run --frozen ruff format .`
127+
in the server's directory (Python).
126128

127129
## 5. Client evidence
128130

@@ -154,12 +156,20 @@ Put the evidence in the PR body under **How Has This Been Tested?**.
154156
Base **`v2/main`** (or the lower branch, when stacked). **Never `main`.** Label
155157
it `v2`. The body's **first line is `Closes #<N>`**.
156158

159+
Write the body to a file and pass it with `--body-file`. A body passed inline
160+
in double quotes goes through the shell, so every backtick in its Markdown runs
161+
as a command substitution and `$VAR` expands. Keep the file outside the
162+
worktree, where `git add -A` cannot pick it up.
163+
157164
```sh
158-
gh pr create --repo modelcontextprotocol/servers \
159-
--base v2/main --label v2 \
160-
--title "<title>" --body "Closes #<N>
165+
BODY=$(mktemp)
166+
cat > "$BODY" <<'EOF'
167+
Closes #<N>
161168
162-
<what changed and why, then the template's sections, with the evidence>"
169+
<what changed and why, then the template's sections, with the evidence>
170+
EOF
171+
gh pr create --repo modelcontextprotocol/servers \
172+
--base v2/main --label v2 --title "<title>" --body-file "$BODY"
163173
```
164174

165175
⚠️ Closing keywords only link and auto-close for PRs that target the default
@@ -276,9 +286,16 @@ worth doing on its own. Implementing a suggestion differently is fine.
276286
to the thread it answers.
277287

278288
```sh
279-
gh pr comment <PR> --repo modelcontextprotocol/servers --body "Copilot round <k>: …"
289+
# Quoted heredoc, for the same reason as the PR body in step 6: Markdown
290+
# backticks inside a double-quoted --body run as commands.
291+
gh pr comment <PR> --repo modelcontextprotocol/servers --body-file - <<'EOF'
292+
Copilot round <k>: …
293+
EOF
280294
```
281295
296+
Per-thread replies (`-f body=…` above) need the same care: single-quote
297+
the body, or read it from a file with `-F body=@<file>`.
298+
282299
- ⚠️ **Read the "Suppressed comments" block in the review body.** Those findings
283300
have no comment id, so no thread to reply into. The PR-level summary is the
284301
only place to answer them.

0 commit comments

Comments
 (0)