{"slug":"concise-comments","title":"concise-comments","summary":"Rules for concise code comments/docstrings, plus a pass to trim verbose ones. Use when writing or reviewing code, or when asked to reduce comment verbosity / trim over-commented code / cut docstring bloat. Referenced by /la:pr and /la:process-reviews.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-29T00:43:59.100432Z","repo":{"url":"https://github.com/MotleyAI/living-architecture","stars":16,"forks":2,"license":"MIT","updatedAt":"2026-11-27T11:19:06Z"},"bodyHtml":"<hr>\n<h2>name: concise-comments\ndescription: Rules for concise code comments/docstrings, plus a pass to trim verbose ones. Use when writing or reviewing code, or when asked to reduce comment verbosity / trim over-commented code / cut docstring bloat. Referenced by /la:pr and /la:process-reviews.</h2>\n<p><strong>Preflight:</strong> run <code>la-doctor --plugin &lt;this skill's base directory&gt;</code> once per session before using any <code>la-*</code> or <code>trmv-*</code> command; if it fails, stop and show the user its output. If <code>la-doctor</code> is not found, or reports the la tools older than the plugin, stop and give the user the install command at this plugin's <code>version</code> (in its <code>.claude-plugin/plugin.json</code>): <code>uv tool install living-architecture==&lt;version&gt; --with-executables-from type-rename-move</code> in a Python repo, <code>npm install -g living-architecture@&lt;version&gt; type-rename-move@&lt;version&gt;</code> in a TS/JS repo.</p>\n<h1>Concise comments &amp; docstrings</h1>\n<p>Prevention: follow these when writing. Cleanup: run the pass below when invoked as <code>/la:concise-comments</code>.</p>\n<h2>The test</h2>\n<p>Keep a comment only if a competent reader of THIS codebase couldn't infer it from the code and names. Otherwise delete it, or cut it to the one missing fact in one line.</p>\n<h2>For / not for</h2>\n<p>For: the non-obvious <em>why</em> (constraint, invariant, footgun, edge-case gotcha) and a one-line <em>what</em> on public APIs.\nNot for: design narrative, alternatives-considered, defending the approach, repro steps, byte-count walkthroughs, ticket history, or restating the code. Those go in the PR description, the issue, or a test.</p>\n<h2>Limits (defaults; exceed only with a stated reason)</h2>\n<ul>\n<li>Inline comment: 1 line. Needing 3+ lines to justify a line of code → rename things or move the rationale out.</li>\n<li>Function/method docstring: 1-line summary; +≤3 lines only for genuinely subtle behaviour.</li>\n<li>Module docstring: ≤8 lines. Test docstring: 1 line, or none if the name says it.</li>\n<li>Section banner: ≤1 label line, no <code>---</code> paragraphs.</li>\n</ul>\n<p>Say it once at the definition; don't re-explain at every call site.</p>\n<h2>Delete on sight</h2>\n<ul>\n<li><strong>Restates the code</strong> (<code># strip prefix</code> above <code>x.split(...)</code>).</li>\n<li><strong>Ticket-ID noise</strong> (<code>ABC-123:</code> on every line/attribute; the value is the fact).</li>\n<li><strong>Design essay / justification debate</strong> (paragraphs on why this is right and alternatives wrong).</li>\n<li><strong>Worked examples &amp; repros</strong> (byte counts, sample output) → move to the test.</li>\n<li><strong>Docstring echoing the name</strong> (<code>def test_x: \"\"\"Test x.\"\"\"</code>).</li>\n<li><strong>Emphasis theatre</strong> (ALL-CAPS sentences, \"astronomically\", \"provably\", \"THE … requirement\").</li>\n</ul>\n<p>Keep, as ≤1 line: a real cross-dialect/edge gotcha, a non-obvious invariant, a \"looks wrong but isn't\", an ordering/side-effect warning. When unsure a <em>why</em> is inferable, keep it but shorten it.</p>\n<h2>The pass (<code>/la:concise-comments</code>)</h2>\n<ol>\n<li>Scope: default to the branch diff's source files (<code>git diff $(git merge-base &lt;base&gt; HEAD)</code>, kept to <code>la-config get lang.&lt;language&gt;.source_globs</code> for each of <code>la-config get languages</code>); or the path/file the user names. Only added/modified comments unless told to sweep.\nHard exclusion: files whose docstrings are outward-facing (MCP tool servers, CLI <code>--help</code> commands, OpenAPI route handlers) — leave the whole file alone unless the user requests it by name; <code>la-config get exempt</code> lists the repo's known ones.</li>\n<li>Edit comments/docstrings ONLY — never code, string literals, test data, asserts, imports, markers.</li>\n<li>Verify: run affected tests + linter (green); confirm <code>git diff</code> changed no code line; measure before/after with <code>la-count-comments --range &lt;mergebase&gt; &lt;paths&gt;</code>.</li>\n<li>Report per-file and total lines before → after + ratio, and that tests/lint pass.</li>\n</ol>\n<p>Scale to the ask: \"trim a bit\" = kill the essays; \"3x\" / \"massively\" = apply every limit hard.</p>\n","files":[{"path":"SKILL.md","sizeBytes":3718,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-29T00:45:53.684974Z","sha256":"23C0B0BC34F1224C1006AB624399DA9465FCC13D0448B6FC3020566207D52385","sizeBytes":2078},"review":null,"source":{"repositoryUrl":"https://github.com/MotleyAI/living-architecture","path":"plugin/la/skills/concise-comments","license":"MIT","commit":"c1ecf0af05da41d754e0a83233334edf6cbca797","subtreeSha":"AE5449E15DF0F034A52A282C3CA8C42B8E232CE0DC910A47ADE326AC7B607952","lastSyncedAt":"2026-11-29T00:43:57.908191Z"},"reviewedAt":"2026-11-29T00:52:35.717281Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/MotleyAI/living-architecture/tree/main/plugin/la/skills/concise-comments"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install motleyai-living-architecture@llmmart"},{"target":"git","command":"git clone https://github.com/MotleyAI/living-architecture.git"}]}