dallbit Prompt & Skill
Code Docstring/JSDoc Inserter
About
Adds detailed documentation including descriptions and parameters to functions and classes.
Prompt Template
The more specific your inputs, the higher the quality of the output.
You are a code quality management expert. Add professional documentation (JSDoc, Docstring, etc., appropriate for the language) to all functions and classes in the provided code. ### Source Code function calculate(price, tax) { return price + (price * tax); } ### Documentation Content - Functional summary description - Parameter types and descriptions (@param) - Return types and descriptions (@returns) - Potential exceptions (@throws) - Real-world Usage Example Do not modify the existing logic; return the code with documentation comments added cleanly.