You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then fetch all feedback using the GraphQL script at [scripts/get-pr-comments](../scripts/get-pr-comments):
13
13
14
14
```bash
15
-
if [ -n"${CLAUDE_SKILL_DIR}" ] && [ -f"${CLAUDE_SKILL_DIR}/scripts/get-pr-comments" ];then
16
-
SCRIPT_DIR="${CLAUDE_SKILL_DIR}/scripts"
17
-
else
18
-
echo"ce-resolve-pr-feedback bundled scripts are unavailable in this harness; use the fallback gh commands below.">&2
15
+
# SKILL_DIR = the absolute directory you loaded the ce-resolve-pr-feedback SKILL.md from.
16
+
# The Bash tool's CWD is the user's project, not the skill dir, and shell state does not
17
+
# persist between Bash calls — set SKILL_DIR in each block below that runs a bundled script.
18
+
SKILL_DIR="<absolute path of the directory containing the ce-resolve-pr-feedback SKILL.md>"
19
+
SCRIPT_DIR="$SKILL_DIR/scripts"
20
+
if [ !-f"$SCRIPT_DIR/get-pr-comments" ];then
21
+
echo"ce-resolve-pr-feedback bundled scripts not found under $SCRIPT_DIR; use the fallback gh commands below.">&2
19
22
exit 1
20
23
fi
21
24
@@ -170,10 +173,10 @@ For `needs-human` verdicts, post the reply but do NOT resolve the thread. Leave
170
173
171
174
0.**Verify the thread ID** before replying. GitHub Enterprise can return inconsistent node IDs for the same thread depending on the query path. Always confirm the ID from `get-pr-comments` resolves to the correct thread using [scripts/get-thread-for-comment](../scripts/get-thread-for-comment) with the comment's numeric URL ID:
172
175
```bash
173
-
if [ -n"${CLAUDE_SKILL_DIR}" ] && [ -f"${CLAUDE_SKILL_DIR}/scripts/get-thread-for-comment" ];then
174
-
SCRIPT_DIR="${CLAUDE_SKILL_DIR}/scripts"
175
-
else
176
-
echo"ce-resolve-pr-feedback bundled scripts are unavailable in this harness; use gh api to inspect the review thread.">&2
176
+
SKILL_DIR="<absolute path of the directory containing the ce-resolve-pr-feedback SKILL.md>"
177
+
SCRIPT_DIR="$SKILL_DIR/scripts"
178
+
if [ !-f"$SCRIPT_DIR/get-thread-for-comment" ];then
179
+
echo"ce-resolve-pr-feedback bundled scripts not found under $SCRIPT_DIR; use gh api to inspect the review thread.">&2
177
180
exit 1
178
181
fi
179
182
@@ -185,10 +188,10 @@ The returned `id` is the authoritative thread ID to use for reply and resolve. I
185
188
186
189
1.**Reply** using [scripts/reply-to-pr-thread](../scripts/reply-to-pr-thread):
187
190
```bash
188
-
if [ -n"${CLAUDE_SKILL_DIR}" ] && [ -f"${CLAUDE_SKILL_DIR}/scripts/reply-to-pr-thread" ];then
189
-
SCRIPT_DIR="${CLAUDE_SKILL_DIR}/scripts"
190
-
else
191
-
echo"ce-resolve-pr-feedback bundled scripts are unavailable in this harness; post the reply with gh api or gh pr comment as appropriate.">&2
191
+
SKILL_DIR="<absolute path of the directory containing the ce-resolve-pr-feedback SKILL.md>"
192
+
SCRIPT_DIR="$SKILL_DIR/scripts"
193
+
if [ !-f"$SCRIPT_DIR/reply-to-pr-thread" ];then
194
+
echo"ce-resolve-pr-feedback bundled scripts not found under $SCRIPT_DIR; post the reply with gh api or gh pr comment as appropriate.">&2
192
195
exit 1
193
196
fi
194
197
@@ -198,10 +201,10 @@ Check that the returned comment URL contains the correct `OWNER/REPO` and PR num
198
201
199
202
2.**Resolve** using [scripts/resolve-pr-thread](../scripts/resolve-pr-thread):
200
203
```bash
201
-
if [ -n"${CLAUDE_SKILL_DIR}" ] && [ -f"${CLAUDE_SKILL_DIR}/scripts/resolve-pr-thread" ];then
202
-
SCRIPT_DIR="${CLAUDE_SKILL_DIR}/scripts"
203
-
else
204
-
echo"ce-resolve-pr-feedback bundled scripts are unavailable in this harness; resolve the thread with gh api if supported.">&2
204
+
SKILL_DIR="<absolute path of the directory containing the ce-resolve-pr-feedback SKILL.md>"
205
+
SCRIPT_DIR="$SKILL_DIR/scripts"
206
+
if [ !-f"$SCRIPT_DIR/resolve-pr-thread" ];then
207
+
echo"ce-resolve-pr-feedback bundled scripts not found under $SCRIPT_DIR; resolve the thread with gh api if supported.">&2
205
208
exit 1
206
209
fi
207
210
@@ -223,10 +226,10 @@ Include enough quoted context in the reply so the reader can follow which commen
223
226
Re-fetch feedback to confirm resolution:
224
227
225
228
```bash
226
-
if [ -n"${CLAUDE_SKILL_DIR}" ] && [ -f"${CLAUDE_SKILL_DIR}/scripts/get-pr-comments" ];then
227
-
SCRIPT_DIR="${CLAUDE_SKILL_DIR}/scripts"
228
-
else
229
-
echo"ce-resolve-pr-feedback bundled scripts are unavailable in this harness; use the fallback gh commands from Step 1.">&2
229
+
SKILL_DIR="<absolute path of the directory containing the ce-resolve-pr-feedback SKILL.md>"
230
+
SCRIPT_DIR="$SKILL_DIR/scripts"
231
+
if [ !-f"$SCRIPT_DIR/get-pr-comments" ];then
232
+
echo"ce-resolve-pr-feedback bundled scripts not found under $SCRIPT_DIR; use the fallback gh commands from Step 1.">&2
Copy file name to clipboardExpand all lines: skills/ce-setup/SKILL.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,13 +28,14 @@ Before running the script, display:
28
28
Compound Engineering -- checking your environment...
29
29
```
30
30
31
-
Run the bundled check script when the skill directory can be resolved:
31
+
Run the bundled check script. Set `SKILL_DIR` to the absolute directory you loaded this `ce-setup` SKILL.md from — the Bash tool's CWD is the user's project, not the skill dir, so a bare `scripts/` path will not resolve:
32
32
33
33
```bash
34
-
if [ -n"${CLAUDE_SKILL_DIR}" ] && [ -f"${CLAUDE_SKILL_DIR}/scripts/check-health" ];then
35
-
bash "${CLAUDE_SKILL_DIR}/scripts/check-health" --version VERSION
34
+
SKILL_DIR="<absolute path of the directory containing this SKILL.md>"
35
+
if [ -f"$SKILL_DIR/scripts/check-health" ];then
36
+
bash "$SKILL_DIR/scripts/check-health" --version VERSION
36
37
else
37
-
echo"Bundled health script is unavailable on this platform; run the inline checks from ce-setup instead."
38
+
echo"Bundled health script not found at $SKILL_DIR/scripts/check-health; run the inline checks from ce-setup instead."
0 commit comments