# Class

> Use this skill when creating a new class or asking how to model a new class in ShapeCrawler.

- Skill: `tomevault-io/class` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/class`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/class/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/class

---


# Create Class

## Rule (Key Design Patterns)

When creating a new class:

- The class must represent a real-world entity or concept (noun).
- The constructor must encapsulate the entity’s coordinates: store the properties or underlying object the class uses to refer to that entity.
- The class must encapsulate all logic required to produce its result; do not rely on pre-calculated data from callers if it can be derived from dependencies.

## Quick Checks

- Class name is a noun, not “-er/-or/-service/-manager”.
- Constructor captures the underlying object/properties that identify the entity.
- Callers pass minimal inputs; the class derives the rest from its dependencies.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/shapecrawler) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

