# Object oriented design

> Object oriented design is an open-source agent skill for design and media. Guides an agent to design classes, relationships and patterns before writing code. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ajyadav013/claude-kit/tree/main/skills/object-oriented-design
- **Repository:** https://github.com/ajyadav013/claude-kit
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** object-oriented-design
- **Collection:** https://github.com/ajyadav013/claude-kit
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives the agent a structured vocabulary for class-level design inside one process. It covers how to split responsibilities across classes, when to prefer composition over inheritance, how strongly coupled two classes should be, and which of the 22 Gang of Four patterns fits a given problem shape, along with the trade-off each pattern carries.

It also brings in UML guidance for communicating a design through class, sequence, use-case, activity and state-machine diagrams, written in a text-first style that suits version control. For objects with lifecycles, the agent is pointed toward auditing state transitions before implementation. Concurrency guidance covers mutexes, semaphores, condition variables, lock granularity, deadlock and livelock prevention, and common coordination shapes such as thread pools and producer-consumer queues.

The folder includes reference digests, among them 33 worked object models for common low-level design interview problems such as parking lots, elevators and chess. No scripts are bundled, so the work is guidance the agent applies while reasoning about code.

## When your agent uses it

> Class-level design before code — OOP pillars, class relationships, SOLID as heuristics, all 22 GoF patterns, UML diagrams, concurrency primitives, 33 worked object models. Use when designing classes and object collaborations before writing code.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/object-oriented-design)
- [License: MIT](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/object-oriented-design)

## Features

- **Class responsibility design:** Guidance on encapsulation, abstraction choices and keeping invariants inside objects.
- **Class relationship selection:** Explains the coupling spectrum from dependency through inheritance and when each applies.
- **Gang of Four pattern selection:** A table mapping problem shapes to all 22 classic patterns with their trade-offs.
- **SOLID as heuristics:** Each SOLID principle with its cost, framed as a pressure gauge rather than a rule.
- **UML diagram guidance:** Describes what each diagram type communicates and a missing-transition audit for state machines.
- **Concurrency primitives vocabulary:** Covers locks, semaphores, condition variables, CAS and the Coffman deadlock checklist.
- **Worked object model references:** Reference digests for 33 common low-level design interview problems.

## Good for

- Design the classes for a parking lot or elevator system before coding
- Decide whether a feature should use inheritance or composition
- Pick a design pattern for a problem with interchangeable algorithms
- Review a class design for leaked internals or type-check dispatch
- Audit a shared-state worker pool for deadlock or stranded waiters
- Model an order or booking lifecycle as a state machine

## Install

### Claude Code

This skill ships in the `claude-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

Or copy only this skill to `~/.claude/skills/object-oriented-design`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/object-oriented-design &&
cp -R "$tmp/skills/object-oriented-design" ~/.claude/skills/object-oriented-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/object-oriented-design` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/object-oriented-design` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/object-oriented-design &&
cp -R "$tmp/skills/object-oriented-design" ~/.agents/skills/object-oriented-design &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/object-oriented-design` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/object-oriented-design` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/object-oriented-design &&
cp -R "$tmp/skills/object-oriented-design" ~/.cursor/skills/object-oriented-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/object-oriented-design` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ajyadav013/claude-kit.git --path skills/object-oriented-design
```

Or copy the folder to `~/.gemini/skills/object-oriented-design` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/object-oriented-design`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/object-oriented-design &&
cp -R "$tmp/skills/object-oriented-design" ~/.copilot/skills/object-oriented-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/object-oriented-design` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git
```

Then copy `claude-kit/skills/object-oriented-design` into your agent's skills folder as `object-oriented-design`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Object oriented design write code or run scripts?

It bundles no scripts. It supplies design vocabulary, pattern selection guidance and reference digests that the agent uses while planning class structure.

### When does Object oriented design apply?

When designing classes and object collaborations before writing code, reviewing class designs, choosing between inheritance and composition, or writing wait/notify and locking code.

### How does Object oriented design relate to system design?

It covers the object model inside one process. System-level architecture such as caching and service boundaries is handled by a separate skill, system-design-patterns.

### What does the reference material include?

Per-lesson digests written in the skill's own words, including 33 worked object models for interview-style design problems.

### How do I install Object oriented design in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/object-oriented-design to use it in all your projects, or to .claude/skills/object-oriented-design in one project. Or install the claude-kit plugin, which includes it: /plugin marketplace add ajyadav013/claude-kit, then /plugin install claude-kit@claude-kit.

### Does Object oriented design run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Object oriented design?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Object oriented design?

The closest alternatives to Object oriented design are System design patterns, Codebase design, Oracle codebase design, Go design patterns and Cloud design patterns.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [System design patterns](https://ai-powered.com/skills/system-design-patterns-ajyadav013): System design patterns is an open-source agent skill for design and media.
- [Codebase design](https://ai-powered.com/skills/codebase-design): Codebase design is an open-source agent skill for design and media.
- [Oracle codebase design](https://ai-powered.com/skills/oracle-codebase-design): Oracle codebase design is an open-source agent skill for developer tools.
- [Go design patterns](https://ai-powered.com/skills/go-design-patterns): Go design patterns is an open-source agent skill for developer tools.
- [Cloud design patterns](https://ai-powered.com/skills/cloud-design-patterns): Cloud design patterns is an open-source agent skill for design and media.
- [Codebase design](https://ai-powered.com/skills/codebase-design-evist0): Codebase design is an open-source agent skill for developer tools.
- [Patterns](https://ai-powered.com/skills/patterns-xiaolai): Patterns is an open-source agent skill for developer tools.
- [Design](https://ai-powered.com/skills/design-rshankras): Design is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/object-oriented-design-ajyadav013
