data-transformation-layer

Installation
SKILL.md

Data Transformation Layer

Covers the non-obvious parts of transformation: where mappers live, what they must never do, how to handle nested relations and optional fields safely, and how to keep frontend UI models separate from raw API shapes without over-engineering. Skips ORM setup — assumes data is fetched, focus is on shaping it.


Discovery

Before writing anything, answer:

  1. How many layers are needed? DB → API only (backend-rendered), or DB → API → UI model (fullstack with a frontend)?
  2. Sensitive fields: Which DB fields must never reach the client (password, internalScore, stripeCustomerId)?
  3. Derived fields: Does the UI need computed values not in the DB (e.g., displayName, isExpired, formattedDate)?
  4. Nested relations: Does the API response include related objects (author, tags, permissions) that also need transforming?
  5. Nullability: Does the DB schema allow nulls that the API or UI must normalize to defaults or omit?

Core Patterns

Related skills

More from blunotech-dev/agents

Installs
1
GitHub Stars
2
First Seen
Apr 22, 2026