@willbooster/agent-skills 1.17.1 → 1.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -24
- package/dist/cli.js +2 -2
- package/package.json +1 -1
- package/skills/complete-pr/SKILL.md +18 -19
- package/skills/wbfy/SKILL.md +2 -2
package/package.json
CHANGED
|
@@ -3,30 +3,29 @@ name: complete-pr
|
|
|
3
3
|
description: Complete GitHub pull requests by iterating on CI and review feedback until the PR is ready.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
Read the PR body and its messages using the `fetch-pr` skill.
|
|
7
|
+
Then, merge the latest remote `main` branch into the current branch fixing any conflicts.
|
|
8
|
+
After that, fetch the current repository owner with `gh repo view --json owner --jq '.owner.login'`.
|
|
9
|
+
If the owner is `WillBooster` or `WillBoosterLab`, follow the first workflow below. Otherwise, follow the second workflow below.
|
|
9
10
|
|
|
10
11
|
## Workflow for `WillBooster` or `WillBoosterLab` repositories
|
|
11
12
|
|
|
12
|
-
1.
|
|
13
|
-
2.
|
|
14
|
-
3.
|
|
15
|
-
4.
|
|
16
|
-
5.
|
|
17
|
-
6. Address valid review comments by updating the code. For invalid comments, add explanatory comments to the code detailing why the existing implementation is necessary.
|
|
13
|
+
1. Check the CI (GitHub Actions) results using the `check-pr-ci` skill.
|
|
14
|
+
2. If any workflow has failed, fix the CI issues, commit, push, and then return to step 1. Otherwise, proceed to the next step.
|
|
15
|
+
3. Fetch unresolved review threads using the `manage-pr-review-threads` skill.
|
|
16
|
+
4. Review each unresolved thread to determine if it requires code or documentation changes. Validate each claim against the current codebase first, and reproduce issues or consult official documentation when necessary instead of relying on memory.
|
|
17
|
+
5. Address valid review comments by updating the code. For invalid comments, add explanatory comments to the code detailing why the existing implementation is necessary.
|
|
18
18
|
- If there are valid review comments that are out of scope for the current PR, create new issues for them.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
6. Reply to all review threads using the `manage-pr-review-threads` skill.
|
|
20
|
+
7. If you made changes in step 5, commit and push them, post `/gemini review` on the PR, wait for 5 minutes (`sleep 5m`), and return to step 1.
|
|
21
|
+
8. Update the PR title and body using the `update-pr` skill to reflect all changes.
|
|
22
22
|
|
|
23
23
|
## Workflow for the other repositories
|
|
24
24
|
|
|
25
|
-
1.
|
|
26
|
-
2.
|
|
27
|
-
3.
|
|
28
|
-
4.
|
|
29
|
-
5.
|
|
30
|
-
6. If there are valid review comments to address, make only the changes supported by the validation from step 5, commit, push, and then return to step 2.
|
|
25
|
+
1. Check the results of CI (GitHub Actions) with the `check-pr-ci` skill.
|
|
26
|
+
2. If any workflow has failed, fix the CI issues, commit, push, and then return to step 1. Otherwise, proceed to the next step.
|
|
27
|
+
3. Fetch unresolved review threads.
|
|
28
|
+
4. Review each unresolved thread and decide whether it requires a code or documentation change. Validate each claim against the current codebase first, and reproduce it or check official documentation when needed instead of relying on memory. Ignore only comments that are clearly outdated, incorrect, or intentionally declined with solid reasoning.
|
|
29
|
+
5. If there are valid review comments to address, make only the changes supported by the validation from step 4, commit, push, and then return to step 1.
|
|
31
30
|
- Do not post any message like review replies on non-WillBooster repositories.
|
|
32
|
-
|
|
31
|
+
6. Update the PR title and body with the `update-pr` skill to reflect all the changes.
|
package/skills/wbfy/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: wbfy
|
|
3
|
-
description: Apply `wbfy` to the current repository.
|
|
3
|
+
description: Apply `wbfy` to the current (target) repository.
|
|
4
4
|
allowed-tools: Bash(bun:*), Bash(gh:*), Bash(git:*), Bash(yarn:*)
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ allowed-tools: Bash(bun:*), Bash(gh:*), Bash(git:*), Bash(yarn:*)
|
|
|
8
8
|
|
|
9
9
|
1. If the current branch is `main`, create and switch to a new branch from the latest remote `main` branch.
|
|
10
10
|
- Make sure the branch is derived from the latest remote `main` branch to avoid merge conflicts when opening a PR.
|
|
11
|
-
2. Run `yarn start <
|
|
11
|
+
2. Run `yarn start <root_path_of_target_repo>` in `~/ghq/github.com/WillBooster/wbfy`.
|
|
12
12
|
3. Run `yarn check-for-ai` or `bun check-for-ai` in the target repository (do not run this in `wbfy`).
|
|
13
13
|
4. If any checks fail, do one of the following:
|
|
14
14
|
- Fix the issues in the target repository, then return to step 2.
|