Skip to content
aj-geddes avatar

Code Documentation

Structured documentation guidance covering JSDoc, Python docstrings, JavaDoc, and inline comments for functions, classes, and modules.

CCM score
39 of 100
skills.sh installs
502
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers function, class, type definition, and module documentation, with a reference guide for each in the references/ directory
  • Includes a JSDoc quick-start example documenting parameters, return values, thrown errors, and usage examples
  • Lists explicit DO and DON'T practices, such as documenting "why" rather than "what" and keeping comments current with code
  • Designed for developers documenting public APIs, functions, and classes in JavaScript, TypeScript, Python, or Java

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill code-documentation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Code Documentation

Table of Contents

Overview

Create clear, comprehensive code documentation using language-specific standards like JSDoc, Python docstrings, JavaDoc, and inline comments.

When to Use

  • Function and class documentation
  • JSDoc for JavaScript/TypeScript
  • Python docstrings
  • JavaDoc for Java
  • Inline code comments
  • API documentation from code
  • Type definitions
  • Usage examples in code

Quick Start

Minimal working example:

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Technical Documentation, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the code-documentation skill do?

The code-documentation skill writes code documentation such as JSDoc, Python docstrings, JavaDoc, inline comments and API comments. It covers function and class documentation, type definitions and usage examples inside the code.

How do I install the code-documentation skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill code-documentation -y in your project. Once installed, the agent can write docstrings and inline documentation when you ask it to document code.

What kind of documentation does the skill produce for JavaScript and Python?

For JavaScript and TypeScript it produces JSDoc blocks with parameters, return values, thrown errors and examples. For Python it writes docstrings, and the SKILL.md guide advises documenting the why rather than the what.

Where does code-documentation stand in the Technical Documentation category?

It is one of the skills in the Technical Documentation category on Claude Marketplaces, alongside domain-modeling, archify, writing-guidelines, design-doc-mermaid and documentation-and-adrs. It focuses on documentation written directly inside source code rather than separate design documents.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Code Documentation

More Technical Documentation