Skip to content

Commit 3708b50

Browse files
nkoji21claude
andcommitted
fix(agents): fix fix-ci invocation and pr-flow gh command robustness
fix-ci was invoking git-commit as a slash-command without declaring Skill in allowed-tools, which would silently fail at runtime. Switch to Skill tool invocation and declare allowed-tools: Bash, Skill. pr-flow used `cd $WORKTREE_PATH && gh pr view ...` to capture the PR URL, which is fragile since cd only affects that shell invocation. Replace with `gh -C $WORKTREE_PATH pr view ...` for explicit directory context. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5b7d05e commit 3708b50

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.agents/skills/fix-ci/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: fix-ci
33
description: Auto-diagnose and fix CI failures by fetching GitHub Actions logs via gh CLI and resolving errors.
44
user-invocable: true
5+
allowed-tools: Bash, Skill
56
---
67

78
Let's fix whatever error we can find in CI using the `gh` CLI.
@@ -21,4 +22,4 @@ Let's fix whatever error we can find in CI using the `gh` CLI.
2122
3. Fetch the logs for the broken action using `gh run view <run-id> --log-failed`
2223
4. Make a quick plan on what needs to be fixed
2324
5. Fix the error
24-
6. Commit the fix using `/git-commit`
25+
6. Commit the fix using the Skill tool to invoke `git-commit`

.agents/skills/pr-flow/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Use the Skill tool to invoke the `git-pr` skill with args `--path $WORKTREE_PATH
4848

4949
After the skill completes, capture the PR URL:
5050
```
51-
cd $WORKTREE_PATH && gh pr view --json url --jq '.url'
51+
gh -C $WORKTREE_PATH pr view --json url --jq '.url'
5252
```
5353

5454
If `gh pr create` failed because a PR already exists, retrieve the existing PR URL with the same command.

0 commit comments

Comments
 (0)