comment-checker
What it does
This agent helps the AI understand and fix automatic comments that appear after a text edit. It ensures the AI responds appropriately to these warnings before proceeding.
When to use it
- ✓When the AI receives a warning about a comment after an edit.
- ✓If the AI needs to explain why a comment was flagged.
- ✓To ensure the AI corrects issues pointed out by the comment checker.
Skill link
https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/omo-codex/plugin/components/comment-checker/skills/comment-checker/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“The AI received a warning about a comment after editing. What do you do?”
5 new skills a week. 1 minute to read.
comment-checker: full guide
When an AI agent edits code, it often adds comments that nobody needs: notes that repeat what the line already says, or leftovers from its own reasoning. A comment checker is a separate program that scans an edit and flags those comments. This skill does not do the checking. It teaches the agent what to do when the checker reports a problem.
Without it, the agent may see the warning and keep going, so the flagged comment stays in your code. With it, the agent treats the warning as blocking feedback: it either fixes the comment or explains why the comment should stay, and only then moves on. It is for people who let an agent change files and want the result to stay tidy without reading every diff line by line.
Use cases
Keeping a pull request clean
You ask the agent to add input validation to a form handler. It patches the file and leaves three comments like '// check if empty' above obvious checks. The checker flags them, the agent removes or rewrites them, and your reviewer sees a smaller, quieter diff.
Understanding a warning you did not expect
You see the agent stop mid-task and mention a flagged comment. You ask it why. This skill tells the agent to explain the flag before moving on, so you learn what was wrong instead of guessing from a log message.
Keeping a necessary comment on purpose
Some comments are worth keeping, for example one explaining a strange workaround for a bug in a library. If the checker flags it, the agent can explain why it stays instead of deleting it. You then decide whether you agree.
Step by step
- 1Install the comment-checker plugin from the oh-my-openagent repository. Per the skill file, it registers the PostToolUse hook for you, and the skill itself goes in your skills folder.
- 2Make sure the checker program is available on your machine. If it is missing, the hook stays silent and the agent just works as usual.
- 3Ask the agent to make a normal edit, such as changing a function or writing a new file.
- 4Watch for feedback after the edit. It only appears after successful apply_patch, write, edit, multi_edit or multiedit actions.
- 5Read the agent's reply. It should fix the flagged comment or explain it before continuing. Reply if you want the other choice.
Example
What to ask
“Add a function to utils.py that converts a list of prices from cents to dollars. Keep the code clean.”
What you get
The agent writes the function and the checker flags two comments that only restate the code. The agent replies: 'The checker flagged two redundant comments. I removed them and kept the docstring, since it states the input and output units.' It then reports the finished function.
Tips
- ✓This skill reacts to feedback. It does not scan your code by itself, and it adds no tool. If the checker program is not installed, nothing will happen, and you will get no error.
- ✓Only edit actions trigger it. Reading files, running commands or searching code never produce comment feedback, so do not expect it there.
- ✓Do not tell the agent to ignore every warning. Some flagged comments are useful, so ask it to explain a flag when you are unsure.
Alternatives
- code-documentation
Pick this if you want the agent to write real documentation such as a README or API reference, not police comments after edits.
- technical-documentation
Pick this to write and review clear technical docs and agent instruction files, rather than react to comment warnings.
- documentation-and-adrs
Pick this when you need to record why project decisions were made, which is better kept in a document than in code comments.
Questions and answers
Does this skill delete comments on its own?
No. It tells the agent to fix or explain a flagged comment after the checker reports it. The agent decides how, and you can ask it to keep a comment or explain why it was flagged.
Which tools set off the comment check?
Only successful edit-type actions: apply_patch, write, edit, multi_edit and multiedit. Other tools are ignored, so reading files or running commands never produces comment feedback.
Do I need to add a tool or server for this?
No. The skill file says no MCP tool is exposed. It only registers a hook that runs after edits, plus the checker program that produces the warnings.
How it works
When an edit is made, this agent checks for automatic feedback. If there are warnings, it instructs the AI to fix or explain the issue before continuing.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Codex Comment Checker
The plugin registers a PostToolUse hook for successful apply_patch, write, edit, multi_edit, and multiedit calls.
When comment-checker reports a warning after a patch, Codex receives blocking feedback and should fix or explain the flagged comment before moving on.
Scope
- No MCP tool is exposed.
- Non-edit tools are ignored by this plugin.
- Missing checker binaries emit no hook output so normal Codex work can continue.
FAQ
What is a 'hook'?
Think of a 'hook' as a trigger. It causes the AI to perform a specific action when something happens, like an edit being completed.
What are 'edit-like PostToolUse' calls?
These are actions the AI takes to edit or modify text. 'PostToolUse' means this happens after the AI has used a tool to make the edit.
What happens if the comment checker isn't working?
If the comment checker isn't active, the AI will continue its work normally, without being interrupted by warnings.
Details
Original description by the author
Use when Codex needs to understand or respond to automatic comment-checker feedback emitted after an edit-like PostToolUse hook.
Popularity
- GitHub stars
- 70k
- Ranking position
- #3109
- License
- NOASSERTION
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
lcx-contribute-bug-fix
70kHelps your agent contribute bug fixes for LazyCodex-related projects. It creates issues or pull requests to ensure code quality.
lcx-doctor
70kLets your agent check the health of LazyCodex and Codex CLI installations. It's useful when the system behaves oddly after updates or changes.
lcx-report-bug
70kHelps your agent report bugs in detail for LazyCodex projects. It creates issues with useful information for developers to fix the problem.
lsp
70kLets your agent get diagnostic information and code definitions. It's used to check references, symbols, and rename safety in the project.
Similar skills
technical-documentation
394kHelps your agent write and review clear technical docs and agent instruction files, so people and AI tools can follow them easily.
architecture-decision-records
280kHas your agent record important project structure decisions. It helps to understand the reasoning behind choices and maintain a clear history of changes.
code-tour
280kLets your agent create step-by-step code walkthroughs with exact file and line references. Useful for intros, explanations, and reviews.