object-design-skill

object-design-skill is a skill for Claude Code, Codex from darellchua2/opencode-config-template. It costs 28 tokens per session (383 once invoked), scanned A, original, Apache-2.0.

A language-independent guide to designing object-oriented code with clear responsibilities and protected internal state. It covers concepts such as value objects, entities, aggregates, and composition.

In plain words
What is it for?
Use it when designing or refactoring classes, modeling business concepts, choosing between values and entities, and improving encapsulation.
Why use it?
It helps prevent classes from becoming unclear, tightly coupled, or responsible for too many unrelated tasks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it when designing or refactoring classes, modeling business concepts, choosing between values and entities, and improving encapsulation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/object-design-skill
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.

Any agent
npx skills add darellchua2/opencode-config-template --skill object-design-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for object-design-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/object-design-skill/github.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/object-design-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/object-design-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/object-design-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for object-design-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/object-design-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/object-design-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 383 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Memory Poisoning · line 211
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
How audits are shown
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.1 $0.00028 $0.00383
Opus 5.5 $0.00011 $0.00153
Sonnet 5.5 $0.00006 $0.00077
Haiku 4.5 $0.00003 $0.00038

Measured 2mo ago against content hash a2f8ab01d47c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

object-design-skill 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 2mo 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.

skills/object-design-skill/SKILL.md · 27 lines

What it actually says

What I do

Design objects by responsibility (RDD/CRC), assign stereotypes, honor Tell-Don't-Ask, Design by Contract, composition over inheritance, Law of Demeter, and value objects. House additions below; textbook mechanics assumed known.

When to use me

  • Modeling a new domain: finding objects and responsibilities, choosing entity vs value object
  • Reviewing object interactions (feature envy, inappropriate intimacy, get-then-act chains)

House Learnings

Learning: primitive-obsession-report-type

Raw String for a type code crossing API/service/domain layers has zero compile-time safety — a typo like "pfd" silently falls through dispatch and lands in the DB. Replace with a str-based Enum value object end-to-end: dispatch via _GENERATORS[report_type], persist report_type.value, and ReportType("pfd") raises at the boundary instead of corrupting data.

Learning: enum-strategy-resolution

An enum can be both a type identifier (value object) AND a strategy dispatcher: each member carries content_type, extension, and serialize(data) via properties backed by module-level _CONTENT_TYPES/_SERIALIZERS maps — eliminating external mapping tables and switch dispatch.

Removed 2026-09: RDD/CRC walkthroughs, stereotype catalog, DbC pre/post-condition examples, composition-vs-inheritance and Law-of-Demeter explanations, encapsulation levels, entity-vs-value-object tutorials — textbook the model knows; the two codified learnings are this config's additions.

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. 2mo ago Changed · -540 lines a2f8ab01d47c
  2. 3mo ago First seen · 567 lines · 28 tokens per session scan A fed5d3997355

Subscribe to this mod's changes

object-design-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 28 tokens to every session and 383 once invoked, about $0.0001 per session on Opus 5.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-09-03.

Related

object-design-skill compared with skills from other repositories

object-design-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
object-design-skilldarellchua2/opencode-config-templateSkill62mo agoApache-2.0A28Claude Code, Codex
brooks-sweephyhmrright/brooks-lintSkill1.6kyesterdayMITA178Claude Code
driftdadbodgeoff/driftSkill7954d agoApache-2.0A84Claude Code
llm-friendly-contextshinpr/claude-code-workflowsSkill7254d agoMITA52Claude Code
laravel-owasp-securityAsyrafHussin/agent-skillsSkill116yesterdayMITA111Claude Code
laravel-audit-databaseMrPunyapal/laravel-auditorSkill85yesterdayMITA33Claude Code, Codex
megalinter-checkoxsecurity/megalinterSkill2.7ktodayAGPL-3.0A116Claude Code