clean-codejs-objects
Object and class design patterns following Clean Code JavaScript.
Works with
Agent Skills format with YAML frontmatter. Claude Code reads it as-is.
---
name: "clean-codejs-objects"
description: "Object and class design patterns following Clean Code JavaScript."
license: "MIT"
---
# Clean Code JavaScript – Object & Class Patterns
## Table of Contents
- Encapsulation
- Immutability
- Cohesion
## Encapsulation
```js
// ❌ Bad
user.name = 'John';
// ✅ Good
user.rename('John');
```
## Immutability
```js
// ❌ Bad
user.age++;
// ✅ Good
const updatedUser = user.withAge(user.age + 1);
```
## Cohesion
```js
// ❌ Bad
class User {
calculateTax() {}
}
// ✅ Good
class TaxCalculator {
calculate(user) {}
}
```More General & Other skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

