← 返回 Skills 市场
ckchzh

Class

作者 BytesAgain2 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
173
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install class
功能描述
Class & OOP reference — inheritance, polymorphism, composition, SOLID principles, design patterns. Use when designing class hierarchies, refactoring object-o...
使用说明 (SKILL.md)

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]

安全使用建议
This skill is low-risk: it runs a local shell script that prints OOP reference material and asks for no credentials or network access. If you plan to install it, you can: (1) review scripts/script.sh yourself (it's included) to confirm there are no commands that modify files, invoke network calls, or execute external programs; (2) ensure your agent runs with least privilege (don't expose secrets to the agent if not needed). If you see any future updates that add networking, file writes, or new environment requirements, re-evaluate before trusting the update.
功能分析
Type: OpenClaw Skill Name: class Version: 1.0.0 The skill is a purely educational reference for Object-Oriented Programming (OOP) concepts, including SOLID principles and design patterns. The implementation in 'scripts/script.sh' consists entirely of static text output via heredocs, with no network activity, file system modifications, or suspicious command execution.
能力评估
Purpose & Capability
Name, description, and provided commands all relate to OOP/class guidance. The only artifact (scripts/script.sh) implements the documented commands, so required resources are proportional to the stated purpose.
Instruction Scope
SKILL.md instructs the agent to run scripts/script.sh with specific subcommands (intro, solid, patterns, etc.). Those commands map to functions in the script that print reference material. The instructions do not request unrelated files, credentials, or external endpoints.
Install Mechanism
No install spec is present (instruction-only skill with an included script). No downloads or package installs are requested; the included script is local and appears to only emit documentation text.
Credentials
The skill declares a single optional configuration variable (CLASS_DIR) for a data directory but does not require any credentials or environment variables. The shipped script (as shown) does not read environment variables or secrets.
Persistence & Privilege
always is false and the skill does not request elevated privileges or modify other skills or system configuration. It is user-invocable and may be invoked autonomously by the agent (default), which is normal for skills; this combination is not concerning here given the script's benign content.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install class
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /class 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
publish v1.0.0
元数据
Slug class
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Class 是什么?

Class & OOP reference — inheritance, polymorphism, composition, SOLID principles, design patterns. Use when designing class hierarchies, refactoring object-o... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 173 次。

如何安装 Class?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install class」即可一键安装,无需额外配置。

Class 是免费的吗?

是的,Class 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Class 支持哪些平台?

Class 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Class?

由 BytesAgain2(@ckchzh)开发并维护,当前版本 v1.0.0。

💬 留言讨论