One-click install
npx skills add https://github.com/BluMintInc/eslint-custom-rules --skill in-code-comments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: in-code-comments
Source: https://github.com/BluMintInc/eslint-custom-rules/tree/main/.claude/skills/in-code-comments
Command: npx skills add https://github.com/BluMintInc/eslint-custom-rules --skill in-code-comments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the common issue of poorly written or redundant in-code comments that hinder maintainability and understanding. It promotes comments that explain the 'why' behind code, not just the 'how'.

Core Features & Use Cases

  • Enforces 'Why, Not How': Guides AI to write comments that explain intent and design decisions, not just summarize code.
  • Contextual Clarity: Ensures comments provide information not evident from the code itself.
  • Avoids Redundancy: Prevents comments that merely restate code, reducing clutter and maintenance overhead.
  • A-temporal Writing: Promotes timeless, present-tense comments, avoiding outdated historical references.
  • Use Case: When generating code for a complex algorithm, this skill ensures comments explain the rationale behind specific optimizations or trade-offs, rather than just describing each line of code.

Quick Start

Use the in-code-comments skill to explain the reasoning behind the chosen algorithm in the provided code snippet.

Frequently Asked Questions about in-code-comments

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

FAQPage Schema
How do I write clean code comments that explain intent instead of logic?

Write clean code comments by explaining the 'why' behind design decisions rather than summarizing the 'how' of the code logic. This enforces clarity, reduces redundancy, and improves overall maintainability without stating the obvious.

What is the best way to avoid redundant comments that restate code logic?

The best way to avoid redundant comments is to ensure they provide contextual information not evident from the code itself. Comments should explain rationale and intent, preventing clutter and reducing the maintenance overhead of restating code.

Does this approach to code documentation work across various programming languages?

Yes, this approach to code documentation applies to all source code generation and modification tasks across various programming languages. It enforces timeless, present-tense comments that explain design decisions regardless of the language used.

When should I use a-temporal writing for in-code comments?

You should use a-temporal writing for in-code comments whenever you generate or modify source code. It promotes timeless, present-tense statements to avoid outdated historical references, ensuring documentation remains accurate as the codebase evolves.

Why do code comments need to explain the 'why' and not the 'how'?

Code comments need to explain the 'why' to address the problem of poorly written documentation that hinders maintainability. Explaining the rationale behind optimizations or trade-offs provides context that the code logic itself cannot convey.