From dc0a128730c48e604612a605ff89ec93c9403dbb Mon Sep 17 00:00:00 2001 From: Vladimir Bragin Date: Sat, 28 Nov 2026 19:52:51 -0600 Subject: [PATCH] docs(skills): fix review findings on the ship-pr table row and the stale ssh alias step From the independent review of #139: - ship-pr: indent the "Repository setting" row so it stays inside the table nested in the numbered list. - cross-pc-ssh: HostKeyAlias must name the entry known_hosts holds the key under (ssh saves it under HostName by default), so find it with ssh-keygen -F first; and the helper's --peer takes only an alias or user@host with fixed ssh options, so the user updates HostName before the helper is used. Refs scf-vwan5 Co-Authored-By: Claude Opus 5.5 --- .agents/skills/cross-pc-ssh/SKILL.md | 9 ++++++--- .agents/skills/ship-pr/SKILL.md | 2 +- .claude/skills/cross-pc-ssh/SKILL.md | 9 ++++++--- .claude/skills/ship-pr/SKILL.md | 2 +- .cursor/skills/cross-pc-ssh/SKILL.md | 9 ++++++--- .cursor/skills/ship-pr/SKILL.md | 2 +- 6 files changed, 21 insertions(+), 12 deletions(-) diff --git a/.agents/skills/cross-pc-ssh/SKILL.md b/.agents/skills/cross-pc-ssh/SKILL.md index b767e32..87ec22b 100644 --- a/.agents/skills/cross-pc-ssh/SKILL.md +++ b/.agents/skills/cross-pc-ssh/SKILL.md @@ -51,9 +51,12 @@ alone, and the guard then accepts exactly the boundary commits recorded when it 1. `ssh -n -o BatchMode=yes hostname` must print the peer's name. If it asks for a password or fails host-key verification, stop: setting up keys and known_hosts is the user's step, not this skill's. - If it times out, the alias's `HostName` may be a stale address (DHCP). Try the peer's hostname with the - pinned key, `ssh -n -o BatchMode=yes -o HostKeyAlias= @ hostname`, and pass - the same options as `--peer`. Fixing `~/.ssh/config` is the user's step. + If it times out, the alias's `HostName` may be a stale address (DHCP). To check by hostname with the + pinned key, first find the name `known_hosts` holds it under (`ssh-keygen -F `, then + `ssh-keygen -F `): ssh saves a key under the `HostName` unless `HostKeyAlias` is set. + Then run `ssh -n -o BatchMode=yes -o HostKeyAlias= @ hostname`. The helper's + `--peer` takes only an alias or `user@host`, with fixed ssh options, so before using the helper the + user updates `HostName` in `~/.ssh/config`. 2. `locate`. If it finds no checkout, the repository isn't cloned there (or lives outside the roots); say so rather than searching the peer's disks. diff --git a/.agents/skills/ship-pr/SKILL.md b/.agents/skills/ship-pr/SKILL.md index 25d5661..d9f9e57 100644 --- a/.agents/skills/ship-pr/SKILL.md +++ b/.agents/skills/ship-pr/SKILL.md @@ -130,7 +130,7 @@ Handle every failing job, one cause at a time. | Already broken on base | The base branch's latest run fails the same way | Stop and report | | Flaky test | Force the timing, and show it fail the same way | Fix the race in the test | | Infrastructure | The log shows a runner, network or quota error | One rerun, then stop (with `--no-ci`, step 2b) | -| Repository setting | The job fails before any project step, for example "Dependency review is not supported on this repository" | Name the setting. With the user's go-ahead, change it (that one: `gh api -X PUT repos///vulnerability-alerts`, which turns on the dependency graph), then rerun the job once | + | Repository setting | The job fails before any project step, for example "Dependency review is not supported on this repository" | Name the setting. With the user's go-ahead, change it (that one: `gh api -X PUT repos///vulnerability-alerts`, which turns on the dependency graph), then rerun the job once | 3. **Find the root cause before editing.** A test that passes locally and fails in CI is usually a race. Force it, for example by delaying a mock, and confirm the same error before changing anything. diff --git a/.claude/skills/cross-pc-ssh/SKILL.md b/.claude/skills/cross-pc-ssh/SKILL.md index b767e32..87ec22b 100644 --- a/.claude/skills/cross-pc-ssh/SKILL.md +++ b/.claude/skills/cross-pc-ssh/SKILL.md @@ -51,9 +51,12 @@ alone, and the guard then accepts exactly the boundary commits recorded when it 1. `ssh -n -o BatchMode=yes hostname` must print the peer's name. If it asks for a password or fails host-key verification, stop: setting up keys and known_hosts is the user's step, not this skill's. - If it times out, the alias's `HostName` may be a stale address (DHCP). Try the peer's hostname with the - pinned key, `ssh -n -o BatchMode=yes -o HostKeyAlias= @ hostname`, and pass - the same options as `--peer`. Fixing `~/.ssh/config` is the user's step. + If it times out, the alias's `HostName` may be a stale address (DHCP). To check by hostname with the + pinned key, first find the name `known_hosts` holds it under (`ssh-keygen -F `, then + `ssh-keygen -F `): ssh saves a key under the `HostName` unless `HostKeyAlias` is set. + Then run `ssh -n -o BatchMode=yes -o HostKeyAlias= @ hostname`. The helper's + `--peer` takes only an alias or `user@host`, with fixed ssh options, so before using the helper the + user updates `HostName` in `~/.ssh/config`. 2. `locate`. If it finds no checkout, the repository isn't cloned there (or lives outside the roots); say so rather than searching the peer's disks. diff --git a/.claude/skills/ship-pr/SKILL.md b/.claude/skills/ship-pr/SKILL.md index 25d5661..d9f9e57 100644 --- a/.claude/skills/ship-pr/SKILL.md +++ b/.claude/skills/ship-pr/SKILL.md @@ -130,7 +130,7 @@ Handle every failing job, one cause at a time. | Already broken on base | The base branch's latest run fails the same way | Stop and report | | Flaky test | Force the timing, and show it fail the same way | Fix the race in the test | | Infrastructure | The log shows a runner, network or quota error | One rerun, then stop (with `--no-ci`, step 2b) | -| Repository setting | The job fails before any project step, for example "Dependency review is not supported on this repository" | Name the setting. With the user's go-ahead, change it (that one: `gh api -X PUT repos///vulnerability-alerts`, which turns on the dependency graph), then rerun the job once | + | Repository setting | The job fails before any project step, for example "Dependency review is not supported on this repository" | Name the setting. With the user's go-ahead, change it (that one: `gh api -X PUT repos///vulnerability-alerts`, which turns on the dependency graph), then rerun the job once | 3. **Find the root cause before editing.** A test that passes locally and fails in CI is usually a race. Force it, for example by delaying a mock, and confirm the same error before changing anything. diff --git a/.cursor/skills/cross-pc-ssh/SKILL.md b/.cursor/skills/cross-pc-ssh/SKILL.md index b767e32..87ec22b 100644 --- a/.cursor/skills/cross-pc-ssh/SKILL.md +++ b/.cursor/skills/cross-pc-ssh/SKILL.md @@ -51,9 +51,12 @@ alone, and the guard then accepts exactly the boundary commits recorded when it 1. `ssh -n -o BatchMode=yes hostname` must print the peer's name. If it asks for a password or fails host-key verification, stop: setting up keys and known_hosts is the user's step, not this skill's. - If it times out, the alias's `HostName` may be a stale address (DHCP). Try the peer's hostname with the - pinned key, `ssh -n -o BatchMode=yes -o HostKeyAlias= @ hostname`, and pass - the same options as `--peer`. Fixing `~/.ssh/config` is the user's step. + If it times out, the alias's `HostName` may be a stale address (DHCP). To check by hostname with the + pinned key, first find the name `known_hosts` holds it under (`ssh-keygen -F `, then + `ssh-keygen -F `): ssh saves a key under the `HostName` unless `HostKeyAlias` is set. + Then run `ssh -n -o BatchMode=yes -o HostKeyAlias= @ hostname`. The helper's + `--peer` takes only an alias or `user@host`, with fixed ssh options, so before using the helper the + user updates `HostName` in `~/.ssh/config`. 2. `locate`. If it finds no checkout, the repository isn't cloned there (or lives outside the roots); say so rather than searching the peer's disks. diff --git a/.cursor/skills/ship-pr/SKILL.md b/.cursor/skills/ship-pr/SKILL.md index 25d5661..d9f9e57 100644 --- a/.cursor/skills/ship-pr/SKILL.md +++ b/.cursor/skills/ship-pr/SKILL.md @@ -130,7 +130,7 @@ Handle every failing job, one cause at a time. | Already broken on base | The base branch's latest run fails the same way | Stop and report | | Flaky test | Force the timing, and show it fail the same way | Fix the race in the test | | Infrastructure | The log shows a runner, network or quota error | One rerun, then stop (with `--no-ci`, step 2b) | -| Repository setting | The job fails before any project step, for example "Dependency review is not supported on this repository" | Name the setting. With the user's go-ahead, change it (that one: `gh api -X PUT repos///vulnerability-alerts`, which turns on the dependency graph), then rerun the job once | + | Repository setting | The job fails before any project step, for example "Dependency review is not supported on this repository" | Name the setting. With the user's go-ahead, change it (that one: `gh api -X PUT repos///vulnerability-alerts`, which turns on the dependency graph), then rerun the job once | 3. **Find the root cause before editing.** A test that passes locally and fails in CI is usually a race. Force it, for example by delaying a mock, and confirm the same error before changing anything.