Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Simple Code?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/simonedaniotti-simple-code)
---
name: simple-code
description: Write code a person understands on the first read. Use whenever you write or change code, scripts, notebooks, SQL or tests.
---
Someone who did not write this code will read it, and has to trust it. Write for how fast they **understand** it: the simplest code that fully does the task. Short is good until it needs decoding; when shorter and clearer disagree, clearer wins.
The project's own rules come first (`CODING_STANDARDS.md`, AGENTS.md or CLAUDE.md, then the style of the file you are in). If `ponytail` is also active, it decides how much to write and this decides how it reads. When they disagree, clearer wins, and working code outside the task stays as it is.
**Only what is needed**
- Nothing the task did not ask for: no options, layers or "for later" code. No helper or class for a single use, unless its name explains a step better than the code does.
- Use what the project, its libraries and the language already offer before writing your own.
- Change only the lines the task needs. Do not tidy, rename or reformat working code around them; report what you noticed instead.
- Keep every check and error the data or the user needs. Simple never means silently dropping rows or swallowing an exception.
**Names**
- Say what the thing is, in the words of GLOSSARY.md when there is one. No `data`, `tmp`, `df2`, `process()`.
- Put units and state in the name where they matter: `delay_s`, `revenue_usd`, `rows_deduped`. Booleans read as a claim: `is_active`.
**Flow**
- A function does one task and reads top to bottom. Handle the special cases first and return early instead of nesting.
- Split a long expression or chain of operations into named steps; each name says what is true at that point.
- One step per line of a data pipeline; a variable keeps one meaning. Say what one row is when a join or group-by changes it.
- No clever tricks: nested comprehensions, chained conditionals, hidden side effects, metaprogramming.
- No unexplained numbers: name them, with where the value comes from.
**Comments** say why: the reason for a choice, the source of a formula or constant, a known limit, a trap. Never what the line already says.
**Tests** read as examples: the smallest input that shows the case, and a name that says what must hold.
Before you report done, read your diff once as a stranger. Where you stop or reread, fix that spot, then run the checks again.