tda
CommunityObjects should tell, not ask.
Authormesseb
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the "Tell, Don't Ask" (TDA) principle in object-oriented programming, preventing anemic domain models and promoting encapsulated behavior.
Core Features & Use Cases
- Encapsulates Logic: Moves decision-making and state manipulation logic inside the objects themselves, rather than exposing internal state for external code to act upon.
- Improves Readability: Leads to cleaner, more intuitive client code that issues commands rather than querying state and orchestrating complex logic.
- Use Case: Instead of an external function checking an order's status and then updating it, the
Orderobject itself has aconfirm()method that handles all internal state transitions and validations.
Quick Start
Use the tda skill to refactor the provided Python code snippet to follow the Tell, Don't Ask principle.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: tda Download link: https://github.com/messeb/skills/archive/main.zip#tda Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.