rule-code-comments
OfficialMake code self-documenting with clear comments.
Software Engineering#typescript#documentation#comments#coding-standards#self-documenting#domain-context
Authorcarrot-foundation
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides guidelines to write effective comments that clarify intent, rationale, and constraints, promoting self-documenting code and better maintainability.
Core Features & Use Cases
- Self-documenting code first: rename variables, functions, and types to convey intent and reduce the need for extraneous comments.
- Explain WHY, not WHAT: when a comment is necessary, justify decisions and link domain context or methodology decisions.
- Domain context and governance: document business rules, constraints, and trade-offs to prevent ambiguity and guide future changes.
- TSDoc guidance: apply TSDoc selectively for exported symbols and metadata, avoiding over-commenting and clutter.
Quick Start
Review your TypeScript codebase and replace ambiguous names with self-describing identifiers, then add WHY-focused comments that document decisions and domain constraints.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rule-code-comments Download link: https://github.com/carrot-foundation/schemas/archive/main.zip#rule-code-comments Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.