bunjs-architecture

Enforces layered architecture and camelCase conventions for Bun.js TypeScript apps.

7|4|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/MadAppGang/magus --skill bunjs-architecture
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bunjs-architecture
Source: https://github.com/MadAppGang/magus/tree/main/plugins/dev/skills/backend/bunjs-architecture
Command: npx skills add https://github.com/MadAppGang/magus --skill bunjs-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust framework for building scalable and maintainable Bun.js backend applications by enforcing clean architecture principles and consistent naming conventions.

Core Features & Use Cases

  • Layered Architecture: Guides the implementation of routes, controllers, services, and repositories for clear separation of concerns.
  • Naming Conventions: Enforces strict camelCase for all database, API, and TypeScript identifiers, ensuring end-to-end type safety and developer consistency.
  • Prisma Schema Design: Offers best practices for designing efficient and maintainable Prisma schemas.
  • Use Case: When starting a new Bun.js project, use this Skill to set up the foundational directory structure and enforce coding standards from day one, preventing common architectural pitfalls.

Quick Start

Use the bunjs-architecture skill to set up a new Bun.js project with layered architecture and camelCase conventions.

Frequently Asked Questions about bunjs-architecture

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

FAQPage Schema
How do I structure a Bun.js backend with clean architecture?▼

Structure your Bun.js backend using a layered clean architecture design that separates routes, controllers, services, and repositories. This approach enforces strict separation of concerns, ensuring your TypeScript backend remains scalable and maintainable.

What naming conventions should I use for Prisma schemas in a TypeScript backend?▼

Use strict camelCase naming conventions for all database, API, and TypeScript identifiers in your Prisma schema. This enforces end-to-end type safety and ensures developer consistency across your Bun.js application.

Does this Bun.js clean architecture approach support Prisma for database management?▼

Yes, the Bun.js clean architecture approach fully supports Prisma by offering best practices for designing efficient and maintainable Prisma schemas. It integrates Prisma within the repository layer for structured database access.

When do I need to use layered architecture for my Bun.js project?▼

You need layered architecture for your Bun.js project when starting a new backend that requires scalable structure and strict coding standards. It prevents common architectural pitfalls by setting up a foundational directory structure from day one.

What is the best way to define API endpoints in a Bun.js TypeScript application?▼

The best way to define API endpoints in a Bun.js application is by routing requests through a structured layered design. This workflow separates routes, controllers, and services, facilitating clear API endpoint definition and structured development.