AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Clean Code

skill-grndlvl-software-patterns-clean-code · by grndlvl

Clean Code principles and practices reference based on Robert Martin's work. Use this skill when reviewing code quality, naming conventions, refactoring, or applying SOLID principles. Auto-activates for code smell detection, style improvements, and maintainability concerns.

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-grndlvl-software-patterns-clean-code

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-grndlvl-software-patterns-clean-code)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Clean Code? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Clean Code Reference

A comprehensive reference for writing clean, maintainable code based on Robert Martin's "Clean Code" and related works. This skill provides language-agnostic principles with examples that apply to any programming language.

When This Skill Activates

This skill automatically activates when you:

  • Review code for quality or maintainability
  • Need guidance on naming conventions
  • Discuss refactoring or code smells
  • Apply SOLID principles
  • Improve code readability or structure
  • Write or review unit tests

Quick Reference

SOLID Principles

| Principle | Summary | Violation Sign | |-----------|---------|----------------| | [Single Responsibility (SRP)](solid/single-responsibility.md) | One reason to change | Class does too many things | | [Open/Closed (OCP)](solid/open-closed.md) | Open for extension, closed for modification | Modifying existing code for new features | | [Liskov Substitution (LSP)](solid/liskov-substitution.md) | Subtypes must be substitutable | Subclass breaks parent behavior | | [Interface Segregation (ISP)](solid/interface-segregation.md) | No forced dependencies on unused methods | Fat interfaces | | [Dependency Inversion (DIP)](solid/dependency-inversion.md) | Depend on abstractions, not concretions | High-level modules import low-level |

Clean Code Practices

| Practice | Key Points | |----------|------------| | [Meaningful Names](practices/meaningful-names.md) | Intention-revealing, pronounceable, searchable | | [Functions](practices/functions.md) | Small, do one thing, one level of abstraction | | [Comments](practices/comments.md) | Code should be self-documenting; comments explain why, not what | | [Formatting](practices/formatting.md) | Consistent style, vertical density, horizontal alignment | | [Error Handling](practices/error-handling.md) | Exceptions over error codes, fail fast, don't return null | | [Unit Testing](practices/unit-testing.md) | F.I.R.S.T. principles, one assert per test, test behavior | | [Code Smells](practices/code-smells.md) | Recognition and refactoring of common problems | | [Boy Scout Rule](practices/boy-scout-rule.md) | Leave code cleaner than you found it |

The Boy Scout Rule

> "Leave the campground cleaner than you found it."

Every time you touch code, make it a little better. Small, incremental improvements compound over time.

Code Quality Checklist

Before committing code, verify:

  • [ ] Names - Are all names intention-revealing?
  • [ ] Functions - Is each function doing exactly one thing?
  • [ ] Comments - Are comments explaining why, not what?
  • [ ] DRY - Is there any duplicated logic?
  • [ ] SOLID - Are principles being followed?
  • [ ] Tests - Is the code tested and testable?
  • [ ] Error Handling - Are errors handled gracefully?

Language Translation Notes

Examples use generic pseudocode. Adapt to your language:

  • PHP: class, function, ->, type hints
  • JavaScript/TypeScript: class, arrow functions, .
  • Python: class, def, ., type hints
  • Java/C#: Direct mapping with access modifiers

Based on concepts from "Clean Code: A Handbook of Agile Software Craftsmanship" by Robert C. Martin, 2008.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.