Clean Code Principles
ListedAnalyzes backend code for adherence to SOLID principles and offers suggestions for improved readability and maintainability.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add asyrafhussin/agent-skills --skill clean-code-principles -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
asyrafhussin
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill failed 1 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.
No undeclared network calls: failed
Contacts 9 hosts that are neither well-known infrastructure nor declared in the skill's frontmatter: blog.cleancoder.com, en.wikipedia.org, martinfowler.com, pragprog.com, refactoring.com….
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
Hosts contacted
www.amazon.comundeclaredmartinfowler.comundeclaredpragprog.comundeclaredrefactoring.guruundeclaredrefactoring.comundeclareden.wikipedia.orgundeclaredblog.cleancoder.comundeclaredwww.digitalocean.comundeclaredwww.youtube.comundeclaredWhat it found (3 of 16)
- skills/clean-code-principles/metadata.json:226contacts www.amazon.com
"url": "https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882" - skills/clean-code-principles/metadata.json:233contacts www.amazon.com
"url": "https://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612" - skills/clean-code-principles/metadata.json:240contacts martinfowler.com
"url": "https://martinfowler.com/books/refactoring.html"
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned asyrafhussin/agent-skills at 1aa0ff717c.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- 1aa0ff717c
- Scanned
- 29 files, 7,851 lines
About this skill
What it does
This skill helps AI agents understand and apply clean code principles to improve the readability, maintainability, and efficiency of backend code. It provides guidance on writing concise functions, organizing code structure, and following best practices like DRY (Don’t Repeat Yourself) and KISS (Keep It Simple, Stupid).
When to use it
- Refactoring legacy code to make it more readable and maintainable
- Writing new backend logic where clarity and efficiency are critical
- Reviewing code for a team to ensure consistency in coding standards
- Preparing documentation or tutorials on clean code practices
Key capabilities
- Identifies redundant or complex code patterns
- Suggests refactoring strategies based on clean code principles
- Applies naming conventions and structure improvements
- Provides feedback on function size, modularity, and separation of concerns
Example prompts
- "Refactor this backend function to follow the DRY principle."
- "Suggest ways to improve the readability of this Python script."
- "Analyze this code for adherence to clean code best practices."
Tips & gotchas
- This skill works best when provided with clear, well-documented code snippets.
- It may not handle highly domain-specific logic without additional context or customization.