ai-summary-comment

Post and update unified PR review comments on GitHub via CLI.

23.3k|2.0k|Updated May 8, 2020
One-click install
npx skills add https://github.com/dotnet/maui --skill ai-summary-comment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-summary-comment
Source: https://github.com/dotnet/maui/tree/main/.github/skills/ai-summary-comment
Command: npx skills add https://github.com/dotnet/maui --skill ai-summary-comment

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill automates posting and updating automated progress comments on GitHub pull requests. It helps keep PR discussions organized by consolidating context, status, and results into a single, self-contained comment that evolves as the PR progresses.

Core Features & Use Cases

  • Single Unified Comment: Maintains one aggregated comment per PR containing collapsible sections for each review phase.
  • Section-Based Updates: Each worker script updates only its own section, preserving prior information.
  • Duplicate Prevention: Detects existing AI Summary comments and updates them instead of creating duplicates.
  • Dry-Run Previews: Generates local previews so you can verify changes before posting.
  • Auto-Loading State Files: Automatically loads state data from CustomAgentLogsTmp/PRState/ to reflect progress.
  • Simple Interface: Provide a PR number and let the skill orchestrate the rest.

Quick Start

pwsh .github/skills/ai-summary-comment/scripts/post-ai-summary-comment.ps1 -PRNumber 12345

Frequently Asked Questions about ai-summary-comment

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

FAQPage Schema
How do I automate updating a single PR review comment on GitHub?

Automating unified PR review comments on GitHub is handled by updating a single aggregated comment per pull request. The skill detects existing comments to prevent duplicates and updates specific sections as the PR progresses through phases.

Does the GitHub CLI support posting AI summaries to pull requests?

Yes, GitHub CLI supports posting AI summaries to pull requests. The skill uses the GitHub CLI to post and update unified comments, ensuring self-contained comments without referencing local files. It also supports dry-run previews for verification.

Can I preview unified PR comments before posting them to GitHub?

Yes, you can preview unified PR comments before posting them to GitHub. The skill supports dry-run previews, generating local previews so you can verify changes to the aggregated comment before actually posting it to the pull request.

How do I reflect CI progress state in GitHub pull request comments?

Reflecting CI progress state in GitHub pull request comments is achieved by loading progress state from CustomAgentLogsTmp/PRState. The skill automatically loads this state data to update the unified comment across pre-flight, tests, gate, fix, and report phases.

What is the best way to consolidate automated PR review comments on GitHub?

Consolidating automated PR review comments on GitHub is best done by maintaining a single aggregated comment per PR. Each worker script updates only its own collapsible section, preserving prior information and keeping PR discussions organized without duplicate comments.