Quality Code Comments

Mandatory comment-quality companion whenever the agent will generate, show, edit, patch, refactor, format, scaffold, or otherwise produce code or a code-like artifact. Always trigger before writing source, snippets, scripts, shell commands, queries, regex, configs, schemas, migrations, tests, fixtures, workflows, Dockerfiles, pseudocode, examples, or proposed patches, including trivial, throwaway, production, and explicitly comment-free requests. Trigger for write, create, generate, implement, fix, modify, refactor, 写代码, 帮我写, 实现, 修一下, 改代码, 重构, 加注释, JSDoc, docstring, and similar delivery work. It governs whether each comment should exist: prefer clear code, preserve required directives and documentation contracts, and add only accurate information the artifact cannot express locally. A no-comments request means zero optional comments; it never disables this skill. Do not trigger for read-only explanation, planning, inspection, diagnosis, status, or review when no code-like content will be produced.

Ninthless 40e57a6 14 files · 38.5 KB Updated

File contents

Ninthless/agent-skills/tree/main/skills/quality-code-comments commit 40e57a65d5

Frequently asked questions

npx skillmds@latest add ninthless/quality-code-comments