- Remove reasoning, justification and thinking from your comments.
- Cap the comments to max 2 lines.
- Don't use em dashes or semicolons in comments.
- Inline functions that are trivial and only used in max 2 places.
- Add documentation comments where needed.
- Dont leave anything undone unless told so.
- Always try to have methods attached to their respective data types (classes, structs, enums) rather than be random functions taking its data type as first argument.
- Analyze the code to see if you can reuse existing types rather than creating new ones.
- Leave empty lines between different regions in the code logic to make it more readable.
- Looks for unnecessary and trivial clones or copies of values.
- Dont add comments to types or functions whose name already explains what it does.
- Write a table of your changes, be direct, concise, compact and use plain words.
Tidy Up
Tidy up the code.
Tidy Up by marc2332 · ea13c72
npx skillmds@latest add marc2332/tidy-up File contents
---name: tidy-updescription: Tidy up the code.---- Remove reasoning, justification and thinking from your comments. - Cap the comments to max 2 lines. - Don't use em dashes or semicolons in comments.- Inline functions that are trivial and only used in max 2 places.- Add documentation comments where needed.- Dont leave anything undone unless told so.- Always try to have methods attached to their respective data types (classes, structs, enums) rather than be random functions taking its data type as first argument.- Analyze the code to see if you can reuse existing types rather than creating new ones.- Leave empty lines between different regions in the code logic to make it more readable.- Looks for unnecessary and trivial clones or copies of values.- Dont add comments to types or functions whose name already explains what it does.- Write a table of your changes, be direct, concise, compact and use plain words.
marc2332/dotfiles/tree/main/.claude/skills/tidyup commit ea13c72504
Frequently asked questions
Run npx skillmds@latest add marc2332/tidy-up in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Tidy up the code. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
marc2332 (@marc2332) published this skill. Their other Agent Skills are listed on their SkillMD profile.