zenstack-v3

Generate schema-driven data models with built-in access control for Next.js and Express.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/edhahn/agent-skills --skill zenstack-v3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: zenstack-v3
Source: https://github.com/edhahn/agent-skills/tree/main/zenstack-v3
Command: npx skills add https://github.com/edhahn/agent-skills --skill zenstack-v3

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

ZenStack v3 provides a complete rewrite of its ORM with a schema-driven approach and built-in access control to simplify building production-grade data-intensive AI applications. It eliminates runtime Prisma coupling and delivers a cohesive framework for policy enforcement, migrations, and server adapters.

Core Features & Use Cases

  • Schema language and mixins (ZModel) for expressive, maintainable data models.
  • Policy-based access control with runtime plugins and per-field policies.
  • Server adapters and migration tooling to streamline end-to-end app development.
  • Computed fields, query builder, and plugin system for extensibility.

Quick Start

Install the ZenStack packages and run the generator to scaffold your first schema.

Frequently Asked Questions about zenstack-v3

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement access control in an ORM for a Next.js application?

You can implement access control in an ORM by using a schema-driven approach with policy enforcement and runtime plugins. ZenStack v3 provides built-in, per-field access control directly within its ZModel schema language for Next.js data layers.

What is schema-driven ORM policy enforcement and how does it work?

Schema-driven ORM policy enforcement uses a specialized schema language like ZModel to define data models and access rules together. This approach simplifies building secure apps by automatically enforcing policies at runtime through plugins without separate authorization code.

Can I use ZenStack v3 with Express and Next.js server adapters?

Yes, ZenStack v3 supports Next.js and Express through dedicated server adapters. It targets software engineers building scalable data layers across these frameworks, offering a cohesive system for migrations and policy enforcement.

How do I scaffold my first schema and run migrations with ZenStack v3?

To scaffold your first schema and run migrations, install the ZenStack packages and run the generator. This creates your initial ZModel schema file, enabling migration tooling to streamline end-to-end application development.

Does ZenStack v3 still couple with Prisma at runtime?

No, ZenStack v3 eliminates runtime Prisma coupling. It delivers a complete ORM rewrite with its own query builder, plugin system, and server adapters, providing a cohesive framework independent of Prisma.

What are the limitations of using a schema-driven ORM for AI apps?

While schema-driven ORMs like ZenStack v3 simplify data-intensive AI applications through mixins and computed fields, developers must learn the ZModel schema language and understand runtime plugin behavior to properly manage complex policy edge cases.