api-development-standards

Enforce scalable API patterns for multi-tenant Design Token Manager APIs.

Updated May 8, 2025
One-click install
npx skills add https://github.com/mbelenmontoya/design-token-manager-api --skill api-development-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-development-standards
Source: https://github.com/mbelenmontoya/design-token-manager-api/tree/main/.claude/skills/api-development-standards
Command: npx skills add https://github.com/mbelenmontoya/design-token-manager-api --skill api-development-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Establishes a repeatable, architecture-first approach for building Design Token Manager APIs with Node.js/Express, Prisma, and PostgreSQL, ensuring consistent patterns across routes, controllers, and data access.

Core Features & Use Cases

  • Three-Layer Architecture (Routes → Controllers → DAL → Prisma → PostgreSQL) to separate concerns.
  • Enforces multi-tenant data isolation on every query with tenantContext-aware DAL.
  • Standardized patterns for authentication, error handling, validation, and testing.
  • Guidelines for Prisma usage, transactions, and performance considerations.

Quick Start

Apply these standards when scaffolding new API routes or refactoring existing ones to ensure multi-tenant isolation, consistent error handling, and aligned DAL usage.

Frequently Asked Questions about api-development-standards

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

FAQPage Schema
How do I enforce multi-tenant data isolation in a Node.js Express API?

Multi-tenant data isolation in a Node.js Express API is enforced by applying a tenantContext-aware Data Access Layer to every Prisma and PostgreSQL query, ensuring strict separation across tenants and projects.

What is the best way to structure routes and controllers for a multi-tenant API?

The best way to structure a multi-tenant API is using a three-layer architecture: Routes handle HTTP requests, Controllers manage business logic, and a DAL manages Prisma and PostgreSQL data access, ensuring clear separation of concerns.

How does Prisma handle multi-tenant queries with PostgreSQL?

Prisma handles multi-tenant PostgreSQL queries by routing all data access through a tenantContext-aware DAL, which automatically applies isolation filters to every database transaction and query.

Can I use these API development standards for refactoring existing Node.js applications?

Yes, you can apply these API development standards when refactoring existing Node.js applications to ensure consistent DAL usage, standardized error handling, and aligned multi-tenant data isolation patterns.

Do I need a separate Data Access Layer for multi-tenant Express APIs?

Yes, a separate Data Access Layer is required for multi-tenant Express APIs to enforce tenantContext-aware query isolation, standardize Prisma transactions, and maintain clear separation from controller business logic.