# Data layer patterns edho ferdian

> Data layer patterns edho ferdian is an open-source agent skill for databases. Guides an agent through designing Postgres schemas, Prisma, Redis caching and safe. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/edhoferdian/EEF/tree/main/.agents/skills/data-layer-patterns-edho-ferdian
- **Repository:** https://github.com/edhoferdian/eef
- **GitHub stars:** 22
- **License:** MIT
- **Skill name:** data-layer-patterns-edho-ferdian
- **Collection:** https://github.com/edhoferdian/EEF
- **Categories:** [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-12-02

## About

This skill helps an agent plan a data layer before the code exists: table shapes, ORM setup, cache and queue choices, and the order in which schema changes should roll out. It starts by asking for or inferring the access pattern and expected data volume, then routes the work to topic references covering Postgres, MySQL/MariaDB, Prisma, Redis, cross-ORM migrations, JPA, schema invariants and MyBatis. Expand-contract is the default for changes that could lock a large table or lose data.

The skill is explicitly design-time rather than a review lens. When the request is to audit or review existing SQL, migrations or schemas, it points the agent to separate review skills instead of applying its own content. It also hands off service code, performance measurement, access control and production deployment to other skills in the same family.

The skill is written with Bahasa Indonesia for communication and English for schema names, code and generated files. It includes a worked example of splitting a column with Prisma, covering dual writes, batched backfill, read switching, cache key versioning and rollback per phase.

## When your agent uses it

> Design and set up the data layer: Postgres schemas, Prisma, Redis caching and queues, and safe expand-contract migrations. Use for "desain schema untuk X", "setup Prisma/Redis", "strategi migration yang aman", "cache invalidation strategy".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/edhoferdian/EEF/tree/HEAD/.agents/skills/data-layer-patterns-edho-ferdian)
- [License: MIT](https://github.com/edhoferdian/EEF/tree/HEAD/.agents/skills/data-layer-patterns-edho-ferdian)

## Features

- **Schema design guidance:** Covers choosing tables, columns and indexes for Postgres and MySQL based on how data will be read and written.
- **Prisma and ORM setup:** Explains Prisma setup, connection pooling, N+1 avoidance and the migration workflow.
- **Redis caching strategy:** Outlines caching, queue and cache invalidation patterns along with common anti-patterns to avoid.
- **Expand-contract migrations:** Describes staged, reversible schema changes that avoid locking large tables or losing data.
- **Schema invariants:** Lists constraints and invariants a schema should enforce at design time.
- **Worked column-split example:** Walks through a Prisma column split with dual writes, backfill, read switch and rollback steps.

## Good for

- Design a Postgres schema for a new feature
- Set up Prisma with connection pooling
- Plan a safe migration for adding a required column
- Define a Redis cache invalidation strategy
- Choose indexes and constraints before writing queries

## Install

### Claude Code

This skill ships in the `ekosistem-edho-ferdian` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add edhoferdian/EEF
/plugin install ekosistem-edho-ferdian@eef-marketplace
```

Or copy only this skill to `~/.claude/skills/data-layer-patterns-edho-ferdian`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/edhoferdian/EEF.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/data-layer-patterns-edho-ferdian &&
cp -R "$tmp/.agents/skills/data-layer-patterns-edho-ferdian" ~/.claude/skills/data-layer-patterns-edho-ferdian &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/data-layer-patterns-edho-ferdian` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/data-layer-patterns-edho-ferdian` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/edhoferdian/EEF.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/data-layer-patterns-edho-ferdian &&
cp -R "$tmp/.agents/skills/data-layer-patterns-edho-ferdian" ~/.agents/skills/data-layer-patterns-edho-ferdian &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/data-layer-patterns-edho-ferdian` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/data-layer-patterns-edho-ferdian` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/edhoferdian/EEF.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/data-layer-patterns-edho-ferdian &&
cp -R "$tmp/.agents/skills/data-layer-patterns-edho-ferdian" ~/.cursor/skills/data-layer-patterns-edho-ferdian &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/data-layer-patterns-edho-ferdian` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/edhoferdian/EEF.git --path .agents/skills/data-layer-patterns-edho-ferdian
```

Or copy the folder to `~/.gemini/skills/data-layer-patterns-edho-ferdian` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/data-layer-patterns-edho-ferdian`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/edhoferdian/EEF.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/data-layer-patterns-edho-ferdian &&
cp -R "$tmp/.agents/skills/data-layer-patterns-edho-ferdian" ~/.copilot/skills/data-layer-patterns-edho-ferdian &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/data-layer-patterns-edho-ferdian` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/edhoferdian/EEF.git
```

Then copy `EEF/.agents/skills/data-layer-patterns-edho-ferdian` into your agent's skills folder as `data-layer-patterns-edho-ferdian`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Data layer patterns edho ferdian trigger?

It triggers on requests such as designing a schema for a feature, setting up Prisma or Redis, planning a safe migration strategy, or defining a cache invalidation strategy.

### Does Data layer patterns edho ferdian review existing database code?

No. It is for design time. Reviews of existing SQL, migrations or schemas are handed off to separate review skills.

### Which databases are covered?

Postgres and MySQL/MariaDB have dedicated reference files, and JPA and MyBatis are also covered in separate references.

### What does Data layer patterns edho ferdian need to run?

The skill has no scripts and no tool restrictions are set. It relies on the agent reading its reference files.

### How do I install Data layer patterns edho ferdian in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/data-layer-patterns-edho-ferdian to use it in all your projects, or to .claude/skills/data-layer-patterns-edho-ferdian in one project. Or install the ekosistem-edho-ferdian plugin, which includes it: /plugin marketplace add edhoferdian/EEF, then /plugin install ekosistem-edho-ferdian@eef-marketplace.

### Does Data layer patterns edho ferdian run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Data layer patterns edho ferdian?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Data layer patterns edho ferdian?

The closest alternatives to Data layer patterns edho ferdian are Database migrations, Database migrations, PostgreSQL optimization, Db change management and PostgreSQL code review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Database migrations](https://ai-powered.com/skills/database-migrations): Database migrations is an open-source agent skill for databases.
- [Database migrations](https://ai-powered.com/skills/database-migrations-nabwinsaud): Database migrations is an open-source agent skill for databases.
- [PostgreSQL optimization](https://ai-powered.com/skills/postgresql-optimization): PostgreSQL optimization is an open-source agent skill for databases.
- [Db change management](https://ai-powered.com/skills/db-change-management): Db change management is an open-source agent skill for databases.
- [PostgreSQL code review](https://ai-powered.com/skills/postgresql-code-review): PostgreSQL code review is an open-source agent skill for databases.
- [Reviewing oracle to postgres migration](https://ai-powered.com/skills/reviewing-oracle-to-postgres-migration): Reviewing oracle to postgres migration is an open-source agent skill for databases.
- [Go database](https://ai-powered.com/skills/go-database): Go database is an open-source agent skill for databases.
- [Data archaeology](https://ai-powered.com/skills/data-archaeology): Data archaeology is an open-source agent skill for databases.

---
Source: https://ai-powered.com/skills/data-layer-patterns-edho-ferdian
