From 15c22eb1a1486e17bec2dc1ec71907837ce8db3a Mon Sep 17 00:00:00 2001 From: Ikuo Degawa Date: Thu, 9 Jul 2026 16:16:44 +0900 Subject: [PATCH 1/2] Replace sed with tr in retrospective skill's munged-cwd example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Step 1 example used `pwd | sed 's|/|-|g'` for simple `/` → `-` character translation. `tr` is the dedicated tool for that operation and needs no regex delimiters. This also avoids a self-collision with PreToolUse hooks that soft-deny bare `sed` invocations. --- claude/skills/retrospective/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/claude/skills/retrospective/SKILL.md b/claude/skills/retrospective/SKILL.md index 3014d4c3..ffb0cd59 100644 --- a/claude/skills/retrospective/SKILL.md +++ b/claude/skills/retrospective/SKILL.md @@ -29,7 +29,7 @@ Compute the current session's transcript path. The Session ID is already substituted below when this SKILL.md loads: - Session ID: `${CLAUDE_SESSION_ID}` -- Munged cwd: run `pwd | sed 's|/|-|g'` (every `/` becomes `-`, so a +- Munged cwd: run `pwd | tr '/' '-'` (every `/` becomes `-`, so a leading `/` becomes a leading `-`) - Full path: `$HOME/.claude/projects//.jsonl` From 96060fd171d3f8a1cbc0c1c9ed6867dfd57eb444 Mon Sep 17 00:00:00 2001 From: Ikuo Degawa Date: Thu, 9 Jul 2026 16:35:46 +0900 Subject: [PATCH 2/2] Document why gh api is required in pr-reaction skill Add an inline note above the `gh api /pulls/N/comments` call in pr-reaction.md explaining that neither the `gh pr-review` extension nor high-level `gh pr` subcommands expose `user.type` on review comments, so the REST API call is the intended path. Without this context, a reader (or a PreToolUse guardrail) sees `gh api` and looks for a replacement that doesn't exist. --- claude/skills/git-workflow/pr-reaction.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/claude/skills/git-workflow/pr-reaction.md b/claude/skills/git-workflow/pr-reaction.md index 75ded790..2c67b067 100644 --- a/claude/skills/git-workflow/pr-reaction.md +++ b/claude/skills/git-workflow/pr-reaction.md @@ -31,6 +31,10 @@ gh pr-review review view -R / \ --unresolved --not_outdated --include-comment-node-id ``` +`gh api` is required here: the `gh pr-review` extension does not +expose `user.type` on review comments (no equivalent flag), and no +high-level `gh pr` subcommand returns per-line review comments. + ```bash gh api /repos///pulls//comments \ --jq '.[] | {node_id, user_login: .user.login, user_type: .user.type}'