fix-comments

Apply pending fixes from .vscode/agent-comments.json and update statuses.

2|1|Updated Apr 10, 2023
One-click install
npx skills add https://github.com/popoffvg/dotfiles --skill fix-comments-popoffvg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-comments
Source: https://github.com/popoffvg/dotfiles/tree/main/skills/fix-comments
Command: npx skills add https://github.com/popoffvg/dotfiles --skill fix-comments-popoffvg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Read agent-review comments from .vscode/agent-comments.json and apply pending fixes to the codebase, reducing manual triage and drift.

Core Features & Use Cases

  • Read and filter pending comments from the JSON file.
  • Apply fixes to the specified files at given lines.
  • Update comment status to applied, or mark as failed if the fix cannot be performed.
  • Write the updated JSON back to .vscode/agent-comments.json and provide a processing summary.

Quick Start

Run the fix-comments skill to read pending agent-review comments from .vscode/agent-comments.json and apply the required fixes to your workspace.

Frequently Asked Questions about fix-comments

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

FAQPage Schema
How do I automatically apply code-review comments to my codebase?

Automating code-review comment fixes involves reading pending items from a JSON file, applying fixes at specified file lines, and updating statuses. This skill processes the .vscode/agent-comments.json file to apply changes and reports a summary of applied, failed, and skipped comments.

What is the agent-comments JSON format for automating review fixes?

The agent-comments JSON format is a file at .vscode/agent-comments.json containing review items. Each item specifies the target file, line number, fix description, and status, which the skill updates to applied or failed after attempting to implement the fix.

Can I use this automated review-fix workflow in VSCode?

Yes, this workflow is designed for VSCode. It reads the agent-comments.json file from the .vscode directory in your project root, applies fixes to the specified files, and writes the updated status report back to the same JSON file.

How do I handle failed agent-review comment fixes?

Failed fixes are handled by marking the comment with a failed status and an error reason in the agent-comments.json file. When unable to fix an item, the skill records the failure and includes it in the final processing summary alongside applied and skipped comments.

Does automated code-review fixing work without external dependencies?

Yes, the skill works without external dependencies. It independently reads the .vscode/agent-comments.json file, applies fixes to the workspace files, and writes the updated statuses back to the JSON file without requiring any additional packages or components.

What happens to skipped comments during automated review processing?

Skipped comments are counted and reported in the final processing summary. After the skill completes its run, it generates a comprehensive summary detailing the number of applied, failed, and skipped comments to ensure full visibility into the automated review workflow.