syncable-entity-builder-and-validation

Installation
SKILL.md

Syncable Entity: Builder & Validation (Step 3/6)

Purpose: Implement business rule validation and create migration action builders.

When to use: After completing Steps 1-2 (Types, Cache, Transform). Required before implementing action handlers.


Quick Start

This step creates:

  1. Validator service (business logic validation)
  2. Builder service (action creation)
  3. Orchestrator wiring (CRITICAL - often forgotten!)

Key principles:

  • Validators never throw - return error arrays
  • Validators never mutate - pass optimistic entity maps
  • Use indexed lookups (O(1)) not Object.values().find() (O(n))
Related skills

More from twentyhq/twenty

Installs
36
Repository
twentyhq/twenty
GitHub Stars
45.8K
First Seen
Feb 23, 2026