Skip to content

feat(commands): add goal-pr and goal-all-scrap-issues commands - #1778

Merged
dyoshikawa merged 2 commits into
mainfrom
add-goal-pr-and-goal-all-scrap-issues-commands
Jun 9, 2026
Merged

feat(commands): add goal-pr and goal-all-scrap-issues commands#1778
dyoshikawa merged 2 commits into
mainfrom
add-goal-pr-and-goal-all-scrap-issues-commands

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Add two new rulesync command definitions under .rulesync/commands/ (targets: *).

  • goal-pr — Drives a pull request all the way to merge. It runs /review-pr, fixes every finding of severity mid or above, and repeats until a review round reports no mid-or-above findings, then merges via /merge-pr. If no PR exists yet, it opens one with /commit-push-pr first. A hard cap of 10 iterations prevents infinite loops.
  • goal-all-scrap-issues — Builds on /resolve-scrap-issues. Processes every open maintainer-scrap issue one at a time: fact-checks each with web research, closes the ones that need no action, and runs /goal-pr to fix, review, and merge the ones that do. Repeats until no actionable scrap issues remain (hard cap of 20 issues per run).

Notes

  • Both follow the existing command conventions (see agent-team, review-pr, resolve-scrap-issues).
  • Generated tool outputs are gitignored, so only the source .rulesync/commands/*.md files are committed.

Test plan

  • pnpm cicheck:code — typecheck + lint + 6049 tests pass.
  • pnpm cicheck:content — cspell + secretlint + skill-docs sync pass.
  • Verified both commands generate cleanly via pnpm dev generate --targets claudecode --features commands.

🤖 Generated with Claude Code

cm-dyoshikawa and others added 2 commits June 8, 2026 22:03
Add two new rulesync command definitions:

- goal-pr: drives a PR to merge by running /review-pr, fixing every mid-or-above finding, and repeating until a review round is clean, then merging via /merge-pr.

- goal-all-scrap-issues: processes every open maintainer-scrap issue one at a time, fact-checking each with web research, closing the ones that need no action, and running /goal-pr to fix, review, and merge the ones that do.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Address code/security review findings on PR #1778:

- Make green CI part of goal-pr's exit condition and merge precondition; never admin-bypass failing/pending checks.

- Escalate high-risk changes (CI workflows, build/release config, dependency manifests) instead of auto-merging.

- Treat untrusted issue/comment/web content strictly as data, not instructions, to limit prompt-injection into the auto-merge chain.

- Push via 'git push origin HEAD' and stage only changed files; require a clean working tree before the auto-PR path.

- Clarify issue ordering, mandatory Closes line, and marking capped issues as processed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit 80efa04 into main Jun 9, 2026
4 checks passed
@dyoshikawa
dyoshikawa deleted the add-goal-pr-and-goal-all-scrap-issues-commands branch June 9, 2026 05:14
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants