architect/data-api-design

Designs data models, ERDs, data dictionaries, and RESTful API specifications for system architecture.

553|50|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/echoVic/boss-skill --skill architect-data-api-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architect/data-api-design
Source: https://github.com/echoVic/boss-skill/tree/main/skill/skills/architect/data-api-design
Command: npx skills add https://github.com/echoVic/boss-skill --skill architect-data-api-design

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

After system architecture is defined, teams still need concrete database schemas and API contracts. This Skill provides a structured methodology for turning PRD entities into normalized data models, Mermaid ERDs, data dictionaries, and consistent RESTful API specifications.

Core Features & Use Cases

  • Data Modeling: Identify entities and relationships (1:1, 1:N, M:N) from a PRD, render Mermaid ERDs, and produce field-level data dictionaries with types, constraints, defaults, and indexes.
  • RESTful API Design: Apply resource naming rules, HTTP method semantics, URL versioning, pagination/filter/sort query parameters, and standardized success/error response formats with JWT authentication and RBAC authorization.
  • Use Case: Given a blog system PRD, generate the User/Post/Comment/Tag ERD, per-table data dictionaries with PostgreSQL types, and a versioned /api/v1 endpoint list with auth and permission annotations.

Quick Start

Ask the architect agent to design the data model and RESTful API for your feature based on the approved PRD and architecture document.

Frequently Asked Questions about architect/data-api-design

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

FAQPage Schema
How do I design a data model from a PRD?

Identify core entities as nouns from the PRD, then map their relationships as one-to-one, one-to-many, or many-to-many. Render the result as a Mermaid ERD and document each table in a data dictionary with field types, constraints, defaults, and indexes.

What are the RESTful API design best practices?

Use plural lowercase nouns for resources, HTTP methods for actions, and URL versioning like /api/v1. Support pagination, filtering, and sorting via query parameters, and return consistent JSON envelopes with success flags and structured error codes.

Should I use UUID or auto-increment IDs for primary keys?

UUIDs are recommended because they avoid exposing record counts and work well in distributed systems. Auto-increment integers are simpler but leak data volume and complicate multi-database merges.

REST vs GraphQL vs gRPC for API design?

RESTful suits general CRUD scenarios with simple, standard semantics. GraphQL fits complex queries and multi-client needs, while gRPC targets high-performance microservice communication. This methodology recommends RESTful unless special requirements exist.

How should API error responses be structured?

Return a JSON object with success set to false and an error object containing a machine-readable code, a human-readable message, and optional field-level details. Use codes like VALIDATION_ERROR, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, and CONFLICT mapped to proper HTTP status codes.