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.
npx agentmods add skills/cookiemonsterdev/agents-skills/object-oriented-programming-paradigmnpx skills add cookieMonsterDev/agents-skills --skill object-oriented-programming-paradigmgit clone --depth 1 https://github.com/cookieMonsterDev/agents-skillsWhat 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.
| Model | Per session | Once 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 |
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.
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.
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
- Identify the concept(s) from the user's question using the catalog below.
- Read the reference file at
references/<concept>.mdfor the explanation, applicability, trade-offs, and related concepts. - 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. - 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 |
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.
- examples/abstraction/abstraction.cpp 2.8 KB
- examples/abstraction/abstraction.cs 2.5 KB
- examples/abstraction/abstraction.java 3.2 KB
- examples/abstraction/abstraction.js 1.9 KB runs code
- examples/abstraction/abstraction.php 2.0 KB
- examples/abstraction/abstraction.py 2.4 KB runs code
- examples/abstraction/abstraction.swift 2.2 KB
- examples/classes-and-objects/classes-and-objects.cpp 2.6 KB
- examples/classes-and-objects/classes-and-objects.cs 2.3 KB
- examples/classes-and-objects/classes-and-objects.java 2.8 KB
- examples/classes-and-objects/classes-and-objects.js 2.1 KB runs code
- examples/classes-and-objects/classes-and-objects.php 2.4 KB
- examples/classes-and-objects/classes-and-objects.py 2.3 KB runs code
- examples/classes-and-objects/classes-and-objects.swift 2.2 KB
- examples/composition-over-inheritance/composition-over-inheritance.cpp 2.6 KB
- examples/composition-over-inheritance/composition-over-inheritance.cs 2.2 KB
- examples/composition-over-inheritance/composition-over-inheritance.java 2.8 KB
- examples/composition-over-inheritance/composition-over-inheritance.js 1.2 KB runs code
- examples/composition-over-inheritance/composition-over-inheritance.php 1.9 KB
- examples/composition-over-inheritance/composition-over-inheritance.py 2.0 KB runs code
- examples/composition-over-inheritance/composition-over-inheritance.swift 1.5 KB
- examples/coupling-and-cohesion/coupling-and-cohesion.cpp 2.5 KB
- examples/coupling-and-cohesion/coupling-and-cohesion.cs 2.2 KB
- examples/coupling-and-cohesion/coupling-and-cohesion.java 2.9 KB
- examples/coupling-and-cohesion/coupling-and-cohesion.js 2.1 KB runs code
- examples/coupling-and-cohesion/coupling-and-cohesion.php 2.6 KB
- examples/coupling-and-cohesion/coupling-and-cohesion.py 2.8 KB runs code
- examples/coupling-and-cohesion/coupling-and-cohesion.swift 2.5 KB
- examples/dependency-inversion/dependency-inversion.cpp 2.1 KB
- examples/dependency-inversion/dependency-inversion.cs 1.8 KB
- examples/dependency-inversion/dependency-inversion.java 2.2 KB
- examples/dependency-inversion/dependency-inversion.js 1.3 KB runs code
- examples/dependency-inversion/dependency-inversion.php 1.9 KB
- examples/dependency-inversion/dependency-inversion.py 1.8 KB runs code
- examples/dependency-inversion/dependency-inversion.swift 1.6 KB
- examples/encapsulation/encapsulation.cpp 1.7 KB
- examples/encapsulation/encapsulation.cs 1.7 KB
- examples/encapsulation/encapsulation.java 1.9 KB
- examples/encapsulation/encapsulation.js 2.0 KB runs code
- examples/encapsulation/encapsulation.php 1.8 KB
- examples/encapsulation/encapsulation.py 2.0 KB runs code
- examples/encapsulation/encapsulation.swift 1.7 KB
- examples/inheritance/inheritance.cpp 2.6 KB
- examples/inheritance/inheritance.cs 2.4 KB
- examples/inheritance/inheritance.java 2.6 KB
- examples/inheritance/inheritance.js 1.8 KB runs code
- examples/inheritance/inheritance.php 1.8 KB
- examples/inheritance/inheritance.py 2.2 KB runs code
- examples/inheritance/inheritance.swift 1.8 KB
- examples/interface-segregation/interface-segregation.cpp 2.9 KB
- examples/interface-segregation/interface-segregation.cs 2.5 KB
- examples/interface-segregation/interface-segregation.java 3.0 KB
- examples/interface-segregation/interface-segregation.js 1.9 KB runs code
- examples/interface-segregation/interface-segregation.php 2.6 KB
- examples/interface-segregation/interface-segregation.py 2.5 KB runs code
- examples/interface-segregation/interface-segregation.swift 2.4 KB
- examples/interfaces-and-abstract-classes/interfaces-and-abstract-classes.cpp 2.9 KB
- examples/interfaces-and-abstract-classes/interfaces-and-abstract-classes.cs 1.9 KB
- examples/interfaces-and-abstract-classes/interfaces-and-abstract-classes.java 2.7 KB
- examples/interfaces-and-abstract-classes/interfaces-and-abstract-classes.js 1.7 KB runs code
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.
- 2d ago First seen · 103 lines · 115 tokens per session scan A 141452534b7b
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.
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…
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…
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.
cs-foundations
Master discrete mathematics, logic, formal proofs, and computational thinking. Build the mathematical foundation for all computer science.
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.
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.