Source profileQuality 79/100Review permissions

dyoshikawa/rulesync/.rulesync/skills/goal-pr/SKILL.md

goal-pr

Drive a pull request to a clean state and merge it: run the `review-pr` skill, fix every mid-or-above finding, and repeat until no mid-or-above findings remain, then merge. Use when the user wants to finish a PR by reviewing, fixing, and merging it, or triggers on "the `goal-pr` skill".

Source repository stars
1,263
Declared platforms
0
Static risk flags
1
Last source update
2026-07-28
Source checked
2026-07-28

Decision brief

What it does—and where it fits

targetpr = the user's request

Best for

  • Use when the user wants to finish a PR by reviewing, fixing, and merging it, or triggers on "the `goal-pr` skill".

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/dyoshikawa/rulesync --skill ".rulesync/skills/goal-pr"
Safe inspection promptEditorial

Inspect the Agent Skill "goal-pr" from https://github.com/dyoshikawa/rulesync/blob/310b711fbe8cffc14debb276ade8a384c2b89083/.rulesync/skills/goal-pr/SKILL.md at commit 310b711fbe8cffc14debb276ade8a384c2b89083. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    2-1. Review Phase

    Use the review-pr skill with targetpr. It assigns each finding a severity (low / mid / high / critical) and a sequential number, and also reports the GitHub Actions workflow status.

    Use the review-pr skill with targetpr. It assigns each finding a severity (low / mid / high / critical) and a sequential number, and also reports the GitHub Actions workflow status.Note: the review-pr skill only reads remote state and must not switch the local branch. Keep that constraint intact during the review phase.
  2. 02

    2-3. Fix Phase

    Fix every finding of severity mid or above on the current branch (you may also fix low findings opportunistically). Unlike the review phase, this phase works on the local branch directly:

    Edit the relevant files to address each mid-or-above finding. If youRun pnpm cicheck (or the narrower pnpm cicheck:code / cicheck:contentStage only the files you changed for the fix (review git status first so
  3. 03

    0. Determine and Prepare the Target PR

    1. If targetpr is provided (e.g. 123, 123, or a PR URL), use it. 2. Otherwise, look for the PR of the current branch:

    If targetpr is provided (e.g. 123, 123, or a PR URL), use it.Otherwise, look for the PR of the current branch:If no PR exists yet, create one (this satisfies the "PR is the goal" intent):
  4. 04

    1. Exit Condition

    The loop exits when a single review round satisfies both of:

    0 findings of severity mid, high, or critical (only low findings,The PR's GitHub Actions checks are green — no check is fail orThe loop exits when a single review round satisfies both of:
  5. 05

    2. Iteration Loop

    Repeat the following until the exit condition is satisfied or the cap is hit.

    If mid + high + critical == 0 and CI is green (no fail / pendingIf there are mid-or-above findings, or any CI check is failing: proceed toIf the findings are clean but CI is still pending: wait for the checks to

Permission review

Static risk signals and limitations

Runs scripts

medium · line 80

The documentation asks the agent to run terminal commands or scripts.

git status

Runs scripts

medium · line 81

The documentation asks the agent to run terminal commands or scripts.

git add <changed files>

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score79/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars1,263SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
dyoshikawa/rulesync
Skill path
.rulesync/skills/goal-pr/SKILL.md
Commit
310b711fbe8cffc14debb276ade8a384c2b89083
License
MIT
Collected
2026-07-28
Default branch
main
View the original SKILL.md

Goal PR

target_pr = the user's request

This skill drives a pull request all the way to merge. It repeatedly runs the review-pr skill, fixes every finding of severity mid or above, and merges the PR once a review round reports no mid-or-above findings.

0. Determine and Prepare the Target PR

  1. If target_pr is provided (e.g. 123, #123, or a PR URL), use it.

  2. Otherwise, look for the PR of the current branch:

    gh pr view --json number,title,state,headRefName 2>/dev/null
    
  3. If no PR exists yet, create one (this satisfies the "PR is the goal" intent):

    • Use the commit-push-pr skill to commit the current changes, push the branch, and open a PR.
    • Then resolve target_pr to the freshly created PR number.

Confirm that the current local branch is the PR's head branch, because the fix phase below must commit and push fixes onto that branch. If they differ, ask the user how to proceed and stop.

1. Exit Condition

The loop exits when a single review round satisfies both of:

  • 0 findings of severity mid, high, or critical (only low findings, or none at all, may remain).
  • The PR's GitHub Actions checks are green — no check is fail or pending.

Set a hard safety cap of 10 iterations. If the exit condition is still not met at the cap, stop the loop and report the remaining findings (and any failing CI) to the user for a manual decision instead of merging.

2. Iteration Loop

Repeat the following until the exit condition is satisfied or the cap is hit.

2-1. Review Phase

Use the review-pr skill with target_pr. It assigns each finding a severity (low / mid / high / critical) and a sequential number, and also reports the GitHub Actions workflow status.

Note: the review-pr skill only reads remote state and must not switch the local branch. Keep that constraint intact during the review phase.

2-2. Evaluate the Exit Condition

Use both the findings and the GitHub Actions status from the review result.

  • If mid + high + critical == 0 and CI is green (no fail / pending check): exit the loop and go to Section 3.
  • If there are mid-or-above findings, or any CI check is failing: proceed to the fix phase to address them.
  • If the findings are clean but CI is still pending: wait for the checks to finish (re-check with gh pr checks <pr>), then re-evaluate. Do not proceed to merge while checks are pending.

2-3. Fix Phase

Fix every finding of severity mid or above on the current branch (you may also fix low findings opportunistically). Unlike the review phase, this phase works on the local branch directly:

  1. Edit the relevant files to address each mid-or-above finding. If you intentionally reject a finding, record the reason and treat it as resolved.

  2. Run pnpm cicheck (or the narrower pnpm cicheck:code / cicheck:content when appropriate) and fix any failures before continuing.

  3. Stage only the files you changed for the fix (review git status first so unrelated or generated files are not swept in), commit with a descriptive message, and push to the PR's head branch:

    git status
    git add <changed files>
    git commit -m "<message>"
    git push origin HEAD
    

Emit a short status line such as Iteration N — mid: X, high: Y, critical: Z; pushed fixes, then return to Section 2-1 so the updated PR (and its CI) is reviewed again.

3. Merge

Only reach this step once the exit condition in Section 1 holds — clean findings and green CI. Merge the PR by using the merge-pr skill with target_pr. That skill verifies the PR is open, checks GitHub Actions status, merges with gh pr merge --admin --merge, posts a thank-you comment, and cleans up the local branch.

Safety rules for the merge:

  • Never merge while any check is fail or pending. gh pr merge --admin bypasses required checks, so it must not be used to force past red or in-progress CI. If CI is failing, return to the fix phase; if it is pending, wait.
  • If the PR touches GitHub Actions workflows, build/release configuration, or dependency manifests (e.g. package.json, lockfiles), do not auto-merge. Stop and ask the user to confirm, since these changes carry higher risk.

4. Final Report

After the loop ends, report to the user:

  • Outcome: Merged (exit condition met and PR merged) or Capped (hit the iteration cap without converging; not merged).
  • Iterations: how many review/fix rounds were executed.
  • Final severity summary: the counts per severity from the last review round.
  • Result: the merged PR number and title, or — when capped — the list of remaining mid-or-above findings for the user to decide on.

Alternatives

Compare before choosing

Computed 8610,762

Jeffallan/claude-skills

code-reviewer

Analyzes code diffs and files to identify bugs, security vulnerabilities (SQL injection, XSS, insecure deserialization), code smells, N+1 queries, naming issues, and architectural concerns, then produces a structured review report with prioritized, actionable feedback. Use when reviewing pull requests, conducting code quality audits, identifying refactoring opportunities, or checking for security issues. Invoke for PR reviews, code quality checks, refactoring suggestions, review code, code quali

Computed 85234,327

affaan-m/ECC

dmux-workflows

Multi-agent orchestration using dmux (tmux pane manager for AI agents). Patterns for parallel agent workflows across Claude Code, Codex, OpenCode, and other harnesses. Use when running multiple agent sessions in parallel or coordinating multi-agent development workflows.

Computed 84933

dpearson2699/swift-ios-skills

swiftui-performance

Profile, diagnose, and remediate SwiftUI runtime performance using code review, Instruments, and repeatable measurements. Use when a SwiftUI screen renders slowly, scrolling or animations hitch, view bodies update excessively, list identity churns, layout work spikes, or broad Observation dependencies raise CPU cost. Covers evidence-based triage, SwiftUI Instruments lanes, lazy-container guardrails, state lifetime, and before/after verification.

Computed 83234,327

affaan-m/ECC

dmux-workflows

Multi-agent orchestration using dmux (tmux pane manager for AI agents). Patterns for parallel agent workflows across Claude Code, Codex, OpenCode, and other harnesses. Use when running multiple agent sessions in parallel or coordinating multi-agent development workflows.