Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Teaches developers to write code comments and documentation explaining the reasoning behind implementation choices, not what the code does.
83% 92%+8 ptsof test cases passed
Passed 22 of 24 test cases with the skill, and 20 of 24 without it.
We recently decided to switch our primary database from MongoDB to PostgreSQL for better relational integrity across user accounts. Please draft an Architecture Decision Record documenting this switch for our engineering team's documentation repository.
The ADR includes a 'Reasoning' section.
3 of 3 safety checks passed
Comments explain WHY. Code explains WHAT.
If you need a comment to explain what the code does, the code should be cleaner. If you need a comment to explain why it's done this way — write that comment.
| Level | Where | Explains |
|---|---|---|
| Inline comment | Next to specific line | Non-obvious logic or gotcha |
| Function docstring | Top of function | What it does, parameters, returns, side effects |
| Module header | Top of file | What this module is responsible for |
| Architecture note | README / ADR | Why this approach was chosen over alternatives |
// Using exponential backoff here because the payment API
// has a 429 rate limit that triggers on burst traffic
await retryWithBackoff(() => paymentAPI.charge(amount))
// Intentionally not validating here — validation happens
// upstream in the middleware layer (see auth.middleware.ts)
const user = req.user
// This looks backwards but the API returns results
// in reverse chronological order — newest = index 0
const latest = results[0]
Next to this one in the catalogue, plus more from the same author.