Document

From huzaifa525/claude-code-optimizer · View interactive version

Document is an AI agent skill from the GitHub repository huzaifa525/claude-code-optimizer. Use when the user wants to add documentation, JSDoc, docstrings, or API docs to existing code.

How to use this skill

Skill file

Document: $ARGUMENTS

Steps

  1. Detect the language and doc style
  1. Read the code thoroughly — understand every function, class, and type
  1. Add documentation for:

| Element | What to Document |

|---------|-----------------|

| Functions | Purpose, params, return value, throws, example |

| Classes | Purpose, usage pattern |

| Interfaces/Types | What it represents, field descriptions |

| Constants | Why this value |

| Complex logic | Step-by-step explanation |

| Module/File | Top-level description of what this file does |

  1. Rules
  1. Verify — ensure no code was accidentally changed

```

git diff --stat

```

<!-- Skill by Huzefa Nalkheda Wala | github.com/huzaifa525 | claude-code-optimizer -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.