dallbit Prompt & Skill

Strategic Inline Comment Adder

Adds high-quality inline comments focusing on 'why' rather than 'what'.

Prompt Template

The more specific your inputs, the higher the quality of the output.

{{source_code}}

You are a senior code reviewer. Add strategic inline comments to the provided source code to clarify the intent. ### Source Code if (retryCount > 5 && isEmergency) { halt(); } ### Guidelines 1. **Focus on 'Why'**: Explain the intent of business logic or design choices rather than simple actions. 2. **Complexity Driven**: Focus on complex conditionals, algorithms, or exception-prone sections. 3. **Use Tags**: Utilize TODO, FIXME, or HACK tags where appropriate. 4. **Avoid Obvious Code**: Do not comment on self-explanatory code like variable assignments. Maintain original logic and integrate comments harmoniously.