class
Class & OOP reference — inheritance, polymorphism, composition, SOLID principles, design patterns. Use when designing class hierarchies, refactoring object-oriented code, or learning OOP concepts.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ckchzh/classClass — 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]
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ckchzh-class": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
opentangl
Not a code generator — an entire dev team. You write the vision, it ships the code. Autonomous builds, PRs, reviews, and merges across multiple repos. Point it at any JS/TS project and a product vision. It plans features, writes code, verifies builds, creates PRs, reviews diffs, and merges — autonomously. Manages multiple repos as one product. Use when you want to ship code without writing it. AI code generation, autonomous development, workflow automation, multi-repo orchestration, TypeScript, JavaScript, GitHub, OpenAI, Anthropic, Claude, GPT, LLM, devtools, CI/CD, pull requests, code review.
console
Console & terminal output reference — logging levels, ANSI colors, debugging techniques, formatters. Use when styling terminal output, implementing log systems, or debugging with console tools.
copy
Copy operations reference — file duplication, rsync patterns, CoW, buffer strategies, and cross-platform sync. Use when duplicating files, syncing directories, or implementing copy-on-write.
xss
Xss reference tool. Use when working with xss in devtools contexts.
create
Project scaffolding reference — boilerplate generation, directory structures, template engines, and init patterns. Use when bootstrapping new projects or generating starter code.