bknd-create-entity

Define BKND entities and database tables using em() and entity().

1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/cameronapak/melos --skill bknd-create-entity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bknd-create-entity
Source: https://github.com/cameronapak/melos/tree/main/.agents/skills/bknd-create-entity
Command: npx skills add https://github.com/cameronapak/melos --skill bknd-create-entity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines creating and configuring BKND entities (database tables) using em() and entity(), including primary key setup, field definitions, UI-based workflows, and a robust code-first approach with type safety.

Core Features & Use Cases

  • UI-driven entity creation and editing in the BKND Admin Panel.
  • Code-first schema definition using em() and entity() with TypeScript types exported for app code.
  • Primary key configuration options (auto-increment integer or UUID) and basic field types (text, number, boolean, date).
  • Practical use: rapidly model a new users table with fields and then wire it into the app.

Quick Start

  • Ensure your BKND project is initialized (npx bknd create) and a TypeScript project includes bknd.
  • Define a new entity in code using em({ ... }) and entity("name", { ... }).
  • Run the app and synch the schema; validate by inspecting the generated API routes and type exports.

Frequently Asked Questions about bknd-create-entity

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

FAQPage Schema
How do I define database tables using a code-first approach in BKND?

To define database tables using a code-first approach in BKND, use em() and entity() functions to configure primary keys, fields, and schema definitions while exporting TypeScript types for app integration.

Can I create BKND entities through the Admin Panel UI instead of writing code?

Yes, you can create and edit BKND entities directly through the UI-driven workflows in the BKND Admin Panel, or use the deterministic code-based schema definitions for type-safe entity creation.

What primary key configuration options are available when creating BKND entities?

When creating BKND entities, primary key configuration options include either an auto-increment integer or a UUID, applied alongside basic field types like text, number, boolean, and date.

Do I need a TypeScript project to use BKND entity definitions?

Yes, you need a TypeScript project that includes the bknd library and an initialized BKND project to use entity definitions, export types, and synch your schema for app integration.

How does defining a BKND entity with em() and entity() integrate with my app?

Defining a BKND entity with em() and entity() integrates with your app by exporting TypeScript types and generating API routes upon schema synchronization, ensuring type safety across UI and code.