Skip to content
Back to skills

Class

ASecurity

Class & 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
developmenttypescriptpythonrustgojavac++bashrefactoringgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add bytesagain/ai-skills --skill class --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Class?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Class
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bytesagain-class/badge)](https://www.skillsdirectory.com/skills/bytesagain-class)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md2.2 KB
  • scripts/script.sh17.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.