j5ik2o-tell-dont-ask

Installation
SKILL.md

Tell, Don't Ask

Tell the object what you want done; do not ask for its state and make the decision elsewhere.

Workflow

  1. Find code that gets state, branches on it, then updates or commands the same object.

  2. Name the intention behind the external decision.

  3. Move that behavior to the object that owns the state.

  4. Replace getters with intention-revealing methods where possible.

  5. Keep DTO, serialization, logging, and UI projection exceptions explicit.

Checks

  • Getter plus if plus setter is a strong smell.
Installs
3
Repository
j5ik2o/ai-tools
GitHub Stars
27
First Seen
Jul 15, 2026
j5ik2o-tell-dont-ask — j5ik2o/ai-tools