backend-development

Backend Development Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "backend-development" with this command: npx skills add reynalivan/emmm2/reynalivan-emmm2-backend-development

Backend Development Skill

Rules for the Rust "Engine" of EMMM2.

  1. Core Architecture (The 3-Layer Standard)

Follow Clean Architecture to keep logic testable and decoupled.

  • Presentation (Commands): src-tauri/src/commands/ . Thin wrapper. Deserializes input -> Calls Service -> Serializes Output. NO LOGIC HERE.

  • Domain (Services): src-tauri/src/services/ . Pure Business Logic. Agnostic of Tauri or UI.

  • Infrastructure (Repositories): src-tauri/src/database/ . SQLx queries and OS File I/O.

  1. API Design (Tauri Commands)

Treat Commands like REST Endpoints.

  • Input: Use DTO structs (Data Transfer Objects), not long argument lists.

  • Output: Always return Result<T, AppError> .

  • Async: All Commands must be async .

  1. Database Patterns (SQLite + SQLx)
  • Schema: managed via migrations/*.sql .

  • ID: Use UUID v4 (Text) for universal uniqueness.

  • Optimization: Use WAL mode and PRAGMA synchronous = NORMAL .

References

  • Service Pattern

  • Database & Schema

  • API Style Guide

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

backend-development

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

backend-development

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

backend-development

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

backend-development

No summary provided by upstream source.

Repository SourceNeeds Review