scaffold-entity

Generates protobufs, Rust models, repositories, and gRPC services from a migration file.

5|1|Updated Oct 29, 2025
One-click install
npx skills add https://github.com/danwritecode/bufstack --skill scaffold-entity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scaffold-entity
Source: https://github.com/danwritecode/bufstack/tree/main/.claude/skills/scaffold-entity
Command: npx skills add https://github.com/danwritecode/bufstack --skill scaffold-entity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Setting up a new gRPC entity from an existing migration is error-prone and time-consuming; this skill automates generating protobufs, Rust models, repositories, and service implementations to bootstrap CRUD functionality.

Core Features & Use Cases

  • Reads migration files from backend/data/migrations to derive schema and create a SQLite-ready model.
  • Generates protobuf definitions, Rust models, repositories, gRPC services, and auto-registers the service in grpc.rs.
  • Facilitates end-to-end scaffolding for new entities, enabling rapid CRUD development and consistent project structure.

Quick Start

Scaffold an entity from your latest migration file to generate all required backend modules and service stubs.

Frequently Asked Questions about scaffold-entity

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

FAQPage Schema
How do I scaffold a gRPC entity from a Rust migration file?

Scaffolding a gRPC entity from a migration file automates generating protobuf definitions, Rust models, repositories, and service implementations for CRUD operations. It parses existing migrations to bootstrap backend modules.

What is the best way to generate Rust models and protobuf definitions from existing migrations?

Generating Rust models and protobuf definitions from migrations is best handled by parsing the migration file to derive the schema and producing SQLite-ready models alongside gRPC service stubs. This ensures consistent project structure across layers.

Can I auto-register a new gRPC service in grpc.rs during code generation?

Yes, you can auto-register a new gRPC service in grpc.rs during code generation. The scaffolding process integrates the generated service implementations directly into your grpc.rs file and build.rs configuration automatically.

Does scaffolding backend entities from migrations support full CRUD operations across Rust and gRPC layers?

Scaffolding backend entities from migrations fully supports CRUD operations across Rust and gRPC layers. It generates the necessary protobuf definitions, Rust models, repositories, and service implementations required for end-to-end CRUD development.

Do I need an existing migration file to generate Rust repositories and gRPC service stubs?

Yes, you need an existing migration file to generate Rust repositories and gRPC service stubs. The scaffolding process reads migration files from your migrations directory to derive the database schema and produce the corresponding backend code.