class

Class & OOP reference — inheritance, polymorphism, composition, SOLID principles, design patterns. Use when designing class hierarchies, refactoring object-oriented code, or learning OOP concepts.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "class" with this command: npx skills add ckchzh/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

VariableDescription
CLASS_DIRData directory (default: ~/.class/)

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Oo Design Smell Detector

Detect common OO design smells in a codebase and recommend corrective design patterns. Use when reviewing code for design quality, investigating why changes...

Registry SourceRecently Updated
970Profile unavailable
Coding

ReviewEvo

Self-improving code reviewer that learns your codebase over time. Analyzes git history, spots patterns, identifies risk — and gets smarter every run.

Registry SourceRecently Updated
4641Profile unavailable
Security

Code Review Engine

Enterprise-grade code review agent. Reviews PRs, diffs, or code files for security vulnerabilities, performance issues, error handling gaps, architecture smells, and test coverage. Works with any language, any repo, no dependencies required.

Registry SourceRecently Updated
7740Profile unavailable
Coding

Bun Runtime

Bun runtime capabilities for filesystem, process, and network operations. Use when you need to execute Bun-specific operations like Bun.file(), Bun.write(), or Bun.glob() for optimized file handling, or when working with Bun's native process/network APIs. Triggered by requests for Bun runtime features, file operations with Bun, or high-performance I/O tasks.

Registry SourceRecently Updated
2K0Profile unavailable