ai-tools/skills/code-comments/SKILL.md
Add, review, or rewrite code comments so they explain intent, invariants, branch rationale, and multi-step flows without narrating obvious syntax. Use when documenting newly added or recently changed code, converting line-by-line comments into concise block comments, checking whether comment density is too sparse or too heavy, or making non-obvious branches, scripts, and side effects easier for reviewers to scan.
npx skillsauth add motoedie/.dotfiles code-commentsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Comment $ARGUMENTS.
If $ARGUMENTS is empty, focus on the code most recently modified in the current session or diff.
if branch, early return, or transformation step.p1 is set to -1 when systemLogs is true.fs.ensureDir() creates a directory.If a section seems to need a comment for every line, step back and either:
development
Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.
development
Simplify and refine existing code for clarity, consistency, and maintainability while preserving exact functionality. Use after writing or modifying code, when asked to simplify or clean up code without changing behavior, or when recently touched code should be made easier to read and more consistent with project standards.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.