Back to skills
SKILL.md
Class
ASecurityClass & OOP reference — inheritance, polymorphism, composition, SOLID principles, design patterns. Use when designing class hierarchies, refactoring object-oriented code, or learning OOP concepts.
- 12 stars
- 0 votes
- 0 copies
- 5 views
- Added September 7, 2026
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add bytesagain/ai-skills --skill class --agent claude-codeAre you the author of Class?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/bytesagain-class)---
name: "class"
version: "1.0.0"
description: "Class & OOP reference — inheritance, polymorphism, composition, SOLID principles, design patterns. Use when designing class hierarchies, refactoring object-oriented code, or learning OOP concepts."
author: "BytesAgain"
homepage: "https://bytesagain.com"
source: "https://github.com/bytesagain/ai-skills"
tags: [class, oop, inheritance, polymorphism, solid, design-patterns, devtools]
category: "devtools"
---
# Class — Object-Oriented Programming Reference
Quick-reference skill for OOP concepts, class design, SOLID principles, and common design patterns.
## When to Use
- Designing class hierarchies and choosing inheritance vs composition
- Applying SOLID principles to refactor code
- Understanding polymorphism, encapsulation, and abstraction
- Choosing the right design pattern for a problem
- Comparing OOP across languages (Java, Python, TypeScript, C++)
## Commands
### `intro`
```bash
scripts/script.sh intro
```
OOP fundamentals — classes, objects, the four pillars.
### `solid`
```bash
scripts/script.sh solid
```
SOLID principles — SRP, OCP, LSP, ISP, DIP explained with examples.
### `inheritance`
```bash
scripts/script.sh inheritance
```
Inheritance vs composition — when to use each, diamond problem, mixins.
### `patterns`
```bash
scripts/script.sh patterns
```
Essential design patterns — Factory, Strategy, Observer, Singleton, Builder.
### `access`
```bash
scripts/script.sh access
```
Access modifiers and encapsulation — public, private, protected across languages.
### `abstract`
```bash
scripts/script.sh abstract
```
Abstract classes, interfaces, and protocols — contracts and polymorphism.
### `pitfalls`
```bash
scripts/script.sh pitfalls
```
Common OOP pitfalls — God class, deep hierarchies, over-engineering.
### `comparison`
```bash
scripts/script.sh comparison
```
OOP across languages — Java, Python, TypeScript, Go, Rust.
### `help`
```bash
scripts/script.sh help
```
### `version`
```bash
scripts/script.sh version
```
## Configuration
| Variable | Description |
|----------|-------------|
| `CLASS_DIR` | Data directory (default: ~/.class/) |
---
*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*
Files in this skill
- SKILL.md
- scripts/script.sh
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.