Skill

submit-pr-review

Submit saved review to GitHub—paste blocks inline, approve or request-changes via gh. Resolves session artifacts on disk.

Compatibility: Requires gh CLI authenticated to GitHub, and jq.

Install this skill

npx skills add adiutama/skills --skill submit-pr-review

Invoked as /submit-pr-review [<pr-url or pr-number>] [optional free-text instructions].

Disk held the findings; the PR deserves the voice—human opener, then paste blocks at the lines.

Step 1 — Parse

PR identity (URL or number) + optional instructions. No identity → instructions-only input.

Step 2 — Resolve

  1. bash <SKILL_DIR>/scripts/resolve-session.sh <PR_IDENTITY>owner, repo, number, head_sha, session_path.
  2. Else ask once for PR URL/number; stop.

Empty session_path → no session; stop. Else read fully. Lookup: session-sources.md.

Step 3 — Submit pipeline

  1. Event + personal message — event.md.
  2. Pre-submit summary — summary.md. No unposted findings → stop.
  3. Review body — body.md.
  4. Submit:
bash <SKILL_DIR>/scripts/submit-review.sh <OWNER> <REPO> <NUMBER> <HEAD_SHA> <EVENT> <<'EOF'
{ "body": "<composed>", "comments": [{ "path": "<file>", "line": <N>, "body": "<paste>" }] }
EOF

APPROVE without inline findings → omit comments.

  1. Mark posted: bash <SKILL_DIR>/scripts/mark-posted.sh <session_path> <ID1> … — output review URL.

skills/submit-pr-review/SKILL.md