Class
/install class
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
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 | [email protected]
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install class - After installation, invoke the skill by name or use
/class - Provide required inputs per the skill's parameter spec and get structured output
What is Class?
Class & OOP reference — inheritance, polymorphism, composition, SOLID principles, design patterns. Use when designing class hierarchies, refactoring object-o... It is an AI Agent Skill for Claude Code / OpenClaw, with 173 downloads so far.
How do I install Class?
Run "/install class" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Class free?
Yes, Class is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Class support?
Class is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Class?
It is built and maintained by BytesAgain2 (@ckchzh); the current version is v1.0.0.