agentsclimarketplace

Clean code

Skill lifeodyssey/craftsmanship-skills/skills/clean-code

Agent Skills distilled from Clean Code & Refactoring. Install: npx skills add lifeodyssey/craftsmanship-skills

Install
npx -y skills add lifeodyssey/craftsmanship-skills --skill clean-code

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Routes to Clean Code sub-skills for naming, functions, comments, and error handling based on Robert C. Martin's Clean Code

SKILL.md

1.8 KB, as published. Nobody here has run it

Clean Code

Based on Robert C. Martin's Clean Code: A Handbook of Agile Software Craftsmanship.

When to Use This Skill

Trigger on:

  • Code review requests mentioning "clean code", "readability", "naming", "comments"
  • Writing new functions, classes, or modules
  • Refactoring existing code for clarity
  • Debates about naming conventions, function length, or comment density

Do NOT trigger on:

  • Architecture or system design (use architecture skills)
  • Performance optimization (use optimization skills)
  • Refactoring code smells (use refactoring skills)
  • Debugging runtime errors (use systematic-debugging)

Sub-Skills

TopicSkillUse When
Namingclean-code:namingVariables, functions, classes, modules need clear names
Functionsclean-code:functionsDesigning or reviewing function size, arguments, structure
Commentsclean-code:commentsDeciding when/how to comment code
Error Handlingclean-code:error-handlingDesigning exception strategy and error boundaries

Core Principles

  1. Clean code reads like well-written prose -- every line expresses intent
  2. Functions should be small -- then smaller; rarely > 20 lines
  3. Names reveal intent -- if a name requires a comment, it is not descriptive enough
  4. Comments are apologies -- fix the code first, then comment only what cannot be made obvious
  5. Error handling is not optional -- wrap errors at boundaries, never swallow exceptions silently
  6. Boy Scout Rule -- leave the code cleaner than you found it

Source

Distilled from Clean Code by Robert C. Martin. Full extracted content: output/clean-code/SKILL.md.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.