Docstring & JSDoc Generator

Developer Toolscopilot-promptsfilePath

Constraining Copilot to 'do not modify implementations' prevents accidental code changes. The structured JSDoc format with @example produces documentation that doubles as inline tests for reviewers.

Prompt
Add comprehensive JSDoc documentation to every exported function in #file:{{filePath}}.

For each function include:
- @description — one sentence explaining what it does and why
- @param — each parameter with type and description
- @returns — what is returned and when
- @throws — any errors that can be thrown
- @example — one realistic usage example

Do not modify the function implementations. Preserve existing inline comments.

Variables to customize

{{filePath}}

Why this prompt works

Constraining Copilot to 'do not modify implementations' prevents accidental code changes. The structured JSDoc format with @example produces documentation that doubles as inline tests for reviewers.

What you get when you save this prompt

Your workspace unlocks powerful tools to iterate and improve.

AI OPTIMIZE

AI Optimization

One-click improvement with structure analysis and pattern suggestions.

VERSION DIFF

Version History

Track every edit. Compare versions side-by-side with word-level diffs.

ORGANIZE
Development
Code Review
Testing
Marketing

Folders & Tags

Organize your library with nested folders, tags, and drag-and-drop.

MCP
$ npm i -g @promptingbox/mcp
Claude · Cursor · ChatGPT

Use Everywhere

Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.

Your prompts, organized

Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.