code_add_comments

Add explanatory TODO comments to JavaScript, TypeScript, Java, or C# source code.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/uhvc7652/MyAISkills --skill code-add-comments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code_add_comments
Source: https://github.com/uhvc7652/MyAISkills/tree/main/skills/code
Command: npx skills add https://github.com/uhvc7652/MyAISkills --skill code-add-comments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps improve code readability and maintainability by automatically adding comments to your code, explaining file purposes, function responsibilities, and return values.

Core Features & Use Cases

  • File-level Comments: Adds a TODO comment at the top of the file to describe its purpose.
  • Function/Class Comments: Adds TODO comments before function and class declarations to explain their main responsibilities.
  • Inline Return Comments: Optionally adds a TODO comment before return statements to clarify the returned value.
  • Multi-language Support: Works with JavaScript, TypeScript, Java, and C#.
  • Use Case: You have a new piece of code that needs documentation. Use this skill to quickly add placeholder comments, which you can then fill in with specific details.

Quick Start

Add comments to the provided JavaScript code snippet.

Frequently Asked Questions about code_add_comments

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

FAQPage Schema
How do I automatically add comments to JavaScript or TypeScript code?

To automatically add comments to JavaScript or TypeScript code, this skill generates file-level TODO descriptions, function/class comments, and inline return statements to document code structure. It automates the initial documentation process to clarify code responsibilities.

Can I automatically generate documentation comments for Java and C# source files?

Yes, you can generate documentation comments for Java and C# source files. The skill adds file-level and function-level TODO comments before declarations, explaining the purpose and responsibilities of your code components.

What is the best way to document function return values in code automatically?

The best way to document return values automatically is by using the inline return comment feature. It optionally inserts a TODO comment before return statements in JavaScript, TypeScript, Java, or C# to clarify the returned value.

Does this code commenting tool work with both Java and C#?

Yes, the code commenting tool works with both Java and C#, alongside JavaScript and TypeScript. It adds explanatory file-level and function-level comments across these four languages to improve code readability and developer onboarding.

What type of comments does this tool add to my source code?

The tool adds TODO placeholder comments to your source code, including file-level descriptions, function and class responsibility explanations, and optional inline comments for return statements. You can then fill these placeholders with specific details.

How do I add TODO comments to my classes and functions automatically?

You can add TODO comments to classes and functions automatically by running this skill on your code. It inserts descriptive TODO placeholders before function and class declarations to outline their main responsibilities for future detailing.