integra-document-code

Document JavaScript/TypeScript code rationale and usage with JSDoc and commenting standards.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Integra-Beauty/integra-conventions --skill integra-document-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integra-document-code
Source: https://github.com/Integra-Beauty/integra-conventions/tree/main/skills/integra-document-code
Command: npx skills add https://github.com/Integra-Beauty/integra-conventions --skill integra-document-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Use to assist in documenting code following best practices for code documentation.

Core Features & Use Cases

  • Guides developers to document why code exists and how to maintain it, aligning with the project's commenting standards.
  • Provides guidance on JSDoc usage, inline vs block comments, and information hiding to improve maintainability.
  • References the guidance in the reference/ folder for consistent documentation across JavaScript and TypeScript code.

Quick Start

Review the target codebase, identify where rationale is missing, and generate documentation that follows the team’s commenting standards.

Frequently Asked Questions about integra-document-code

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

FAQPage Schema
How do I write JSDoc comments that explain why code exists instead of what it does?

To write JSDoc comments that explain rationale, document the "why, not what" principle by focusing on maintainability and future-readiness. Apply consistent function headers and inline notes that capture the reasoning behind logic, aligning with defined commenting standards for JavaScript and TypeScript code.

What is the best way to structure inline vs block comments for code maintainability?

Structuring inline vs block comments for maintainability involves using block comments for function headers and JSDoc guidance, while reserving inline notes for specific rationale. This separation improves readability and ensures future-readability by clearly distinguishing broad usage from localized logic explanations.

How do I apply information-hiding practices when documenting JavaScript and TypeScript code?

Applying information-hiding practices when documenting JavaScript and TypeScript code involves referencing guidelines to expose only necessary usage details in JSDoc. It hides internal implementation complexities, ensuring consistent documentation that improves overall readability and maintainability across the project.

Can I use this approach to generate consistent TODO conventions across a JavaScript codebase?

Yes, you can use this approach to generate consistent TODO conventions across a JavaScript codebase. It identifies missing rationale and produces standardized inline notes and TODO markers according to defined commenting standards, ensuring future-readiness and maintainability.

When do I need to document code rationale instead of just describing the implementation?

You need to document code rationale instead of just describing the implementation when the logic's purpose is not obvious. Applying the "why, not what" principle ensures future maintainability by capturing the reasoning behind decisions, rather than restating what the code already clearly shows.