submitting-code-reviews

Submit drafted code review comments to GitHub pull requests via batch API.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/blaknite/agent-skills --skill submitting-code-reviews
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: submitting-code-reviews
Source: https://github.com/blaknite/agent-skills/tree/main/submitting-code-reviews
Command: npx skills add https://github.com/blaknite/agent-skills --skill submitting-code-reviews

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, jq, ruby, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of submitting finalized code review comments to GitHub pull requests, handling the technical details of API interaction and line mapping.

Core Features & Use Cases

  • Automated Submission: Posts drafted review comments as a batch to a GitHub PR.
  • Intelligent Event Suggestion: Recommends 'COMMENT', 'REQUEST_CHANGES', or 'APPROVE' based on comment content.
  • Tone Validation: Integrates with giving-kind-feedback to ensure comments are constructive.
  • Precise Line Mapping: Accurately identifies the correct lines in the diff for each comment.

Quick Start

Use the submitting-code-reviews skill to submit the drafted comments for pull request number 123 in the owner/repo repository.

Frequently Asked Questions about submitting-code-reviews

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate submitting code review comments to a GitHub pull request?

The GitHub batch review API submits drafted code review comments to a GitHub pull request by mapping them to specific lines in the code diff. It uses the GitHub CLI to handle the API interaction and post the batched comments.

How does the GitHub PR review API decide between approving or requesting changes?

The GitHub batch review API suggests an appropriate review event like COMMENT, REQUEST_CHANGES, or APPROVE based on the severity of the drafted comment content. This intelligent event recommendation automates the review action decision.

Do I need the GitHub CLI to post batched code review comments to a PR?

Yes, you need the GitHub CLI to post batched code review comments to a PR. The submission process relies on the GitHub CLI for API interaction, along with jq and ruby dependencies to format and execute the requests.

Can I validate the tone of automated code review comments before submitting them to GitHub?

Yes, you can validate the tone of automated code review comments before submitting them to GitHub. The submission process integrates with a tone validation skill to ensure all drafted feedback remains constructive prior to posting.

What is the best way to map drafted review comments to specific lines in a GitHub diff?

The best way to map drafted review comments to specific lines in a GitHub diff is using a batch submission tool that accurately identifies the correct line numbers. This precise line mapping ensures comments align with the exact code changes.