tell-dont-ask

Community

Tell, Don't Ask: strengthen encapsulation.

Authorj5ik2o
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Transforms getter-based decision logic into object-driven actions to reduce leaking responsibilities and strengthen encapsulation by moving behavior into the data-owning objects.

Core Features & Use Cases

  • Enforces encapsulation by replacing external state checks with object-owned decisions.
  • Guides code reviews and refactoring to reduce getter abuse and improve maintainability across languages.
  • Proven across Java, Kotlin, Scala, TypeScript, Python, Ruby, Go, Rust to align with OOP principles.
  • Use Case: when you encounter patterns like if (obj.getX()) { ... } or a chain of getters, refactor to call a tell-method on the object.

Quick Start

Identify a getter + if pattern and refactor it so the object encapsulates the decision and exposes a tell-method to perform the action.

Dependency Matrix

Required Modules

None required

Components

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: tell-dont-ask
Download link: https://github.com/j5ik2o/okite-ai/archive/main.zip#tell-dont-ask

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.