跳到正文
cccskills
免费在 GitHub 公开

developing-serverpod-backend

Develops full-stack Dart backends using the Serverpod framework with PostgreSQL, Redis, and Docker. Use when building type-safe API endpoints, defining YAML data models, configuring Serverpod auth, writing server-side tests, running database migrations, deploying to Docker/AWS/GCP, or using Serverpod Mini for database-less BFF proxy endpoints.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(8)

  • SKILL.md3.5 KB
  • references/auth-and-caching.md9.0 KB
  • references/core-and-models.md3.3 KB
  • references/deployment-and-docker.md4.8 KB
  • references/endpoints-and-database.md4.7 KB
  • references/overview.md6.1 KB
  • references/serverpod-mini.md3.8 KB
  • references/serverpod-testing.md4.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Serverpod Architecture & Development Guide

Overview

Serverpod splits projects into three modules: server, client, and shared. Models defined in .spy.yaml files generate type-safe Dart classes and database migrations via serverpod generate.


Process

High-Level Workflow

Phase 1: Research & Modeling

1.1 Understand Project Structure

Serverpod separates code into server, client, and shared modules. Endpoint logic lives in server; generated client code goes into client.

1.2 Define Data Models

Define database models using .spy.yaml files, then run serverpod generate to produce Dart classes and database migrations. Use explicit foreign key mappings for relational tables.


Phase 2: Implementation

2.1 Develop Endpoints

Implement business logic inside endpoint classes. Use session parameters for authentication context, built-in caching, and native JSON serialization.

2.2 Authentication & Caching

Use the serverpod_auth module for token-based authentication. Configure Redis for caching to reduce repeated database queries.

2.3 Database-less Backends (Serverpod Mini)

Use Serverpod Mini when you only need proxy/BFF endpoints without a PostgreSQL database.


Phase 3: Deployment

3.1 Docker & Production

Use docker-compose to orchestrate local and production environments. Configure environment variables for credentials and connection strings.


Reference Files

Documentation Library

Core Framework (Load First)

Schema and Logic (Load During Phase 1/2)

Security, Scaling & Testing (Load During Phase 2/3)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Declarative animation patterns using flutter_animate v4.5.x with composable effects (fade, scale, slide, shimmer, shake, blur), GLSL fragment shaders, and scroll-synchronized animations. Use this skill for adding UI animations and transitions, building staggered or sequenced effects, creating custom animation effects, fixing animation jank or performance issues, implementing shimmer loading states, or adding scroll-driven animations. Supports delays, curves, adaptive effects, and easy extension method chaining (.animate()).

中文简介正在准备中。当前显示原文说明。

Poorgramer-Zack/dart-expert-skills72026年8月11日 更新

Dart 3 modern features (through 3.10) and Effective Dart best practices including records, patterns, sealed classes, dot shorthands, null-aware collection elements, and wildcard variables. Use when adopting Dart 3.7+ syntax, using dot shorthands for enums or static members, using null-aware elements in lists or maps, using wildcard _ parameters, improving code quality, or reviewing Dart code conventions.

中文简介正在准备中。当前显示原文说明。

Poorgramer-Zack/dart-expert-skills72026年8月11日 更新

Expert-level guidance for Flutter production applications: architecture decisions (Clean/Layered/Hexagonal/Feature-First), advanced state management (BLoC/Riverpod/GetX), performance optimization (eliminating jank, memory profiling, reducing rebuild overhead), code review with design pattern enforcement, scalability assessments, native platform integration (MethodChannel/EventChannel/FFI), complex UI challenges (custom render objects, slivers), testing strategies (unit/widget/integration/golden), CI/CD pipeline architecture, build optimization, and accessibility compliance. Triggers: 'architecture decision', 'design pattern', 'performance issue', 'code review', 'production problem', 'scaling concerns', 'best practices', 'technical debt', 'refactoring strategy'. Essential for complex enterprise apps, critical production debugging, architectural refactors, or when choosing between competing technical approaches.

中文简介正在准备中。当前显示原文说明。

Poorgramer-Zack/dart-expert-skills72026年8月11日 更新

Builds SEO-friendly web applications with Dart using the Jaspr framework. Use when creating Dart-based websites, blogs, or landing pages requiring semantic HTML output; implementing server-side rendering (SSR) or static site generation (SSG); adding Tailwind CSS via jaspr_tailwind; routing with jaspr_router; testing components with jaspr_test; or building full-stack Dart web apps where Flutter Web's canvas rendering is unsuitable.

中文简介正在准备中。当前显示原文说明。

Poorgramer-Zack/dart-expert-skills72026年8月11日 更新

shadcn_flutter UI component library for building accessible, themed Flutter interfaces. Use when integrating shadcn components, configuring design system theming, or building consistent widget layouts.

中文简介正在准备中。当前显示原文说明。

Poorgramer-Zack/dart-expert-skills72026年8月11日 更新

Configures Codemagic CI/CD pipelines for Flutter using `codemagic.yaml`. Use when setting up automated Flutter builds on Codemagic, configuring iOS code signing without Fastlane Match, deploying to App Store Connect or Google Play from Codemagic, caching pub dependencies in Codemagic, setting up encrypted environment variable groups, running tests with Codemagic's test dashboard, or choosing between Codemagic and GitHub Actions + Fastlane for a Flutter CI/CD pipeline.

中文简介正在准备中。当前显示原文说明。

Poorgramer-Zack/dart-expert-skills72026年8月11日 更新

查看 Poorgramer-Zack 的全部技能

报告此技能的问题