fix-comments

Resolve GitHub pull request review comments and push validated fixes.

12|5|Updated Jan 14, 2025
One-click install
npx skills add https://github.com/MoonLadderStudios/MoonMind --skill fix-comments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-comments
Source: https://github.com/MoonLadderStudios/MoonMind/tree/main/.agents/skills/fix-comments
Command: npx skills add https://github.com/MoonLadderStudios/MoonMind --skill fix-comments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the tedious and error-prone process of triaging and resolving GitHub pull request review comments for the branch you are working on, ensuring feedback is evaluated, addressed, and validated before pushing changes.

Core Features & Use Cases

  • End-to-end remediation: Fetches all PR comments, builds a per-comment ledger, decides applicability, implements minimal safe fixes, and commits and pushes the result.
  • Validation loop: Runs compile and test commands with retry-on-failure semantics and reports blockers when environment prerequisites prevent validation.
  • Traceable audit: Produces a structured artifacts/pr_resolver_addressed_comments.json ledger with dispositions and rationales for downstream inspection and tooling integration.
  • Use Case: Use this Skill to automatically resolve failing CI feedback, address correctness/security issues flagged by reviewers, or batch-apply non-design-breaking improvements across an active branch PR.

Quick Start

Run the fix-comments skill to fetch PR comments for the current branch, determine which still apply, apply minimal fixes with tests passing, and commit and push the branch.

Frequently Asked Questions about fix-comments

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

FAQPage Schema
How do I automatically resolve GitHub pull request review comments?

Automatically resolving GitHub PR review comments involves fetching feedback for your active branch, applying targeted code fixes, validating with compile and tests, and pushing the commit. This process builds a per-comment ledger tracking dispositions and rationales for auditability.

What is the process for triaging and fixing code review feedback on an active branch?

Triage and fix code review feedback by fetching PR comments, deciding applicability, implementing minimal safe fixes, and running a validation loop. The workflow retries compile and test commands until passing or blocked, then commits and pushes the resolved branch.

Can I batch apply code fixes for failing CI feedback on a pull request?

Yes, you can batch apply code fixes for failing CI feedback on a pull request. The workflow evaluates flagged correctness and security issues, applies non-design-breaking improvements, and validates the changes before pushing the updated branch.

Does the PR comment resolution workflow validate code changes before pushing?

Yes, the PR comment resolution workflow validates code changes before pushing by running a compile and test validation loop. It retries on failure until passing or blocked, reporting environment prerequisites as blockers if validation cannot run.

What happens when compile or test validation fails during automated PR comment resolution?

When compile or test validation fails during automated PR comment resolution, the workflow retries the commands until passing or blocked. If environment prerequisites prevent validation, it reports blockers rather than pushing unvalidated changes to the branch.

How do I track which PR review comments were addressed and why?

You track addressed PR review comments using a structured JSON ledger written to the artifacts directory. This file records per-comment dispositions and rationales, providing a traceable audit for downstream inspection and tooling integration.