Class

From bytesagain/ai-skills · View interactive version

Class is an AI agent skill from the GitHub repository bytesagain/ai-skills. Class & OOP reference — inheritance, polymorphism, composition, SOLID principles, design patterns. Use when designing class hierarchies, refactoring object-oriented code, or learning OOP concepts.

How to use this skill

Skill file

Class — Object-Oriented Programming Reference

Quick-reference skill for OOP concepts, class design, SOLID principles, and common design patterns.

When to Use

Commands

`intro`

scripts/script.sh intro

OOP fundamentals — classes, objects, the four pillars.

`solid`

scripts/script.sh solid

SOLID principles — SRP, OCP, LSP, ISP, DIP explained with examples.

`inheritance`

scripts/script.sh inheritance

Inheritance vs composition — when to use each, diamond problem, mixins.

`patterns`

scripts/script.sh patterns

Essential design patterns — Factory, Strategy, Observer, Singleton, Builder.

`access`

scripts/script.sh access

Access modifiers and encapsulation — public, private, protected across languages.

`abstract`

scripts/script.sh abstract

Abstract classes, interfaces, and protocols — contracts and polymorphism.

`pitfalls`

scripts/script.sh pitfalls

Common OOP pitfalls — God class, deep hierarchies, over-engineering.

`comparison`

scripts/script.sh comparison

OOP across languages — Java, Python, TypeScript, Go, Rust.

`help`

scripts/script.sh help

`version`

scripts/script.sh version

Configuration

| Variable | Description |

|----------|-------------|

| CLASS_DIR | Data directory (default: ~/.class/) |


Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.