Home

>

CodeSpell Codeing Assistant

>

Built-in Spells

Using the CodeSpell Coding Assistant

Step
3

Built-in Spells (Chat Mode)

Each spell automatically adapts to the current file’s language and framework (for example, Jest for JavaScript and JUnit for Java).
Spell
Purpose
/explain - Understand Instantly
Breaks down the function’s logic, control flow, return values, and usage in plain language.
/doc - Document Like a Pro
Generates a complete, standards-compliant docstring for your function automatically.
/unit-test - Test with Confidence
Creates a unit test file tailored to the function’s context and your project’s testing framework.
/optimize - Clean, Fast, Readable
Refactors long or complex functions to improve structure, performance, and readability—without changing behavior.
/clear - Start Fresh
Clears the current chat and resets the assistant, giving you a clean slate.