object-oriented-programming-paradigm

A guide to object-oriented programming, a way of organising software around objects that combine data with the operations that use it. It covers classes, inheritance, interfaces, and principles for keeping designs understandable.

In plain words
What is it for?
Use it for learning OOP concepts, comparing composition and inheritance, applying SOLID principles, reviewing class design, or refactoring tightly coupled code in several languages.
Why use it?
It gives a structured explanation of OOP ideas instead of treating terms such as encapsulation or polymorphism as assumed knowledge. It can also connect design problems to relevant principles.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cookiemonsterdev/agents-skills/object-oriented-programming-paradigm
Any agent
npx skills add cookieMonsterDev/agents-skills --skill object-oriented-programming-paradigm
Clone the repo
git clone --depth 1 https://github.com/cookieMonsterDev/agents-skills

Made for: Claude Code, Codex.

Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,510 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00115 $0.01510
Opus 5 $0.00057 $0.00755
Sonnet 5 $0.00023 $0.00302
Haiku 4.5 $0.00012 $0.00151

Measured 2d ago against content hash 141452534b7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

object-oriented-programming-paradigm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 17 executable files (examples/abstraction/abstraction.js, examples/abstraction/abstraction.py, examples/classes-and-objects/classes-and-objects.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

architecture-skills/object-oriented-programming-paradigm/SKILL.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Object-Oriented Programming Paradigm

Ground OOP answers in the reference files bundled with this skill instead of improvising definitions. Each concept has a reference file explaining it and a folder of runnable examples in popular languages.

When to Use

  • The user names a concept directly ("show me encapsulation in Swift", "what is the Liskov substitution principle?")
  • The user describes a design problem that maps to a concept ("my subclass breaks when passed to code written for the base class")
  • The user asks to compare concepts ("composition vs inheritance?", "coupling vs cohesion?")
  • The user wants existing code reviewed or refactored against OOP principles (god classes, deep hierarchies, leaky abstractions, train-wreck call chains)

Workflow

  1. Identify the concept(s) from the user's question using the catalog below.
  2. Read the reference file at references/<concept>.md for the explanation, applicability, trade-offs, and related concepts.
  3. Read the language example at examples/<concept>/<concept>.<ext> when the user works in (or asks for) a specific language. Adapt it to their domain rather than pasting the generic example verbatim.
  4. Answer with: what the concept means, when it applies (and when it doesn't), and code adapted to the user's context.

If the user's problem does not call for object orientation, say so — plain functions and data structures are often simpler than a class model.

Concept Catalog

Building Blocks

The vocabulary of object-oriented code: what classes, objects, and contracts are.

Concept Intent Reference
Classes & Objects Bundle state and behavior into a blueprint; instantiate independent objects from it references/classes-and-objects.md
Interfaces & Abstract Classes Separate a contract from its implementations; share partial implementation safely references/interfaces-and-abstract-classes.md

Read the full file on GitHub · 103 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 103 lines · 115 tokens per session scan A 141452534b7b

Subscribe to this mod's changes

object-oriented-programming-paradigm is a skill published in the GitHub repository cookieMonsterDev/agents-skills (4 stars, last pushed 13d ago), licensed MIT. It adds 115 tokens to every session and 1,510 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

retrieving-developer-knowledge

Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome, Web, Flutter, Go, Firebase, and other Google developer platforms. Integrates with the Developer Knowledge MCP server (searchdocuments, getdocuments, answerquery) or the Developer Knowledge REST…

google/skills · 112 tokens

offensive-vuln-classes

Exploit development curriculum covering core vulnerability classes with real-world CVE case studies: stack/heap buffer overflows, use-after-free, integer overflows, format strings, type confusion, and race conditions. Use when learning or teaching vuln classes, researching specific CVE patterns, or building exploit…

SnailSploit/Claude-Red · 0 tokens

coding-tutor

Personalized coding tutorials that build on your existing knowledge and use your actual codebase for examples. Creates a persistent learning trail that compounds over time using the power of AI, spaced repetition and quizes.

foryourhealth111-pixel/Vibe-Skills · 44 tokens

cs-foundations

Master discrete mathematics, logic, formal proofs, and computational thinking. Build the mathematical foundation for all computer science.

foryourhealth111-pixel/Vibe-Skills · 26 tokens

scholar-evaluation

Provide qualitative-first, evidence-traceable developmental review of scholarly works and audit low-stakes research-assessment rubrics with optional local quality controls. Never use for ranking people or consequential decisions.

K-Dense-AI/claude-scientific-writer · 43 tokens

practice-cognition

触发:当你提出了方案、假设或判断,需要通过实践验证、试错迭代或复盘升级认知时调用;常见信号包括 experiment、prototype、validate、iterate、feedback loop。 English: Trigger when an idea, hypothesis, or plan must be tested in practice and improved through iteration. Use this skill to move from action to understanding and back to action in a spiral learning loop.

HughYau/qiushi-skill · 92 tokens