flutter-core:flutter-serverpod
Comprehensive Serverpod backend framework expertise for full-stack Dart/Flutter development. Use when building server-side applications with Serverpod, implementing backends for Flutter apps, working with type-safe ORMs, creating real-time features, managing authentication, or deploying production Dart servers. Covers installation, project setup, endpoints, database operations, authentication, real-time communication, file uploads, deployment, and testing.
What this skill does
# Serverpod Backend Framework Build production-ready, full-stack Flutter applications using Dart for both frontend and backend with Serverpod, the next-generation app server explicitly designed for the Flutter and Dart ecosystem. ## Overview Serverpod is an open-source, scalable backend framework that enables developers to write complete applications—frontend and backend—using only Dart. It eliminates context-switching between programming languages and provides a streamlined development experience with automated code generation, type-safe database operations, and built-in real-time capabilities. ### Core Philosophy **Single Language Stack**: Write your entire application in Dart, from Flutter UI to server-side business logic, reducing cognitive load and maintaining consistent patterns across your codebase. **Type Safety Throughout**: Serverpod's code generation ensures type safety from database queries through API endpoints to client applications, catching errors at compile time rather than runtime. **Developer Productivity**: Automated code generation, hot reload support, and intuitive APIs enable rapid development without sacrificing code quality or maintainability. ## Key Capabilities ### Type-Safe ORM Serverpod provides a sophisticated ORM that translates Dart code into optimized PostgreSQL queries. Define your data models in YAML, and Serverpod generates fully typed database operations with support for complex queries, relations, and migrations. **Benefits**: No SQL injection vulnerabilities, compile-time query validation, auto-completion for database operations, and seamless integration with your Dart types. ### Real-Time Communication Built-in WebSocket support enables streaming data between server and client through Dart's native Stream API. Serverpod automatically manages connections, handles failures, and pipes multiple concurrent streams through a single WebSocket connection. **Use Cases**: Live chat, real-time notifications, multiplayer games, collaborative editing, and any feature requiring instant data synchronization. ### Integrated Authentication Production-ready authentication supporting email/password, Google Sign-In, and Apple Sign-In out of the box. Choose between JWT-based stateless authentication or traditional server-side sessions based on your architecture needs. **Features**: Two-factor authentication, custom identity providers, automatic token refresh, and beautiful pre-built UI components that can be customized or replaced. ### File Upload Management Handle file uploads with configurable storage backends including Amazon S3, Google Cloud Storage, or PostgreSQL. Serverpod manages upload permissions, file verification, and provides convenient access methods. **Configuration**: Set file size limits, validate MIME types, generate signed URLs for secure access, and seamlessly switch between storage providers. ### Scheduled Tasks Replace complex cron jobs with type-safe future calls. Schedule method invocations at specific times or after delays, with automatic persistence across server restarts. **Reliability**: Failed calls can be retried automatically, execution status is monitored, and scheduled tasks integrate seamlessly with your existing endpoint methods. ## Development Workflow ### Project Initialization Creating a Serverpod project generates three integrated packages: 1. **Server Package**: Contains your backend code including endpoints, business logic, database models, and configuration 2. **Client Package**: Auto-generated typed API client for communicating with your server from any Dart application 3. **Flutter Package**: Pre-configured Flutter application ready to connect to your local development server This structure supports monorepo workflows and makes it easy to share types and validation logic across your stack. ### Code Generation Serverpod's CLI analyzes your YAML model definitions and endpoint implementations, generating: - Serializable Dart classes for both server and client - Database table schemas and migration scripts - Type-safe database query builders - Client-side API methods that mirror your endpoints - Protocol definitions for network communication Run `serverpod generate` after modifying models or endpoints to keep everything synchronized. ### Local Development The development environment uses Docker Compose to provide PostgreSQL and optional Redis services. Start the database with `docker compose up`, launch your server with `dart run bin/main.dart --apply-migrations`, and run your Flutter app with `flutter run`. Changes to endpoints are immediately available after code generation. Database schema changes are managed through migrations, ensuring data integrity during development. ## Architecture Patterns ### Endpoint Organization Structure endpoints by feature or domain rather than technical concerns. Each endpoint extends the `Endpoint` base class and contains related method groups. Use abstract endpoints to share common logic across multiple concrete endpoints. **Naming**: Serverpod automatically removes the "Endpoint" suffix when generating client code, so `UserEndpoint` becomes `client.user` in the client application. ### Model Design Define models in `.spy.yaml` files within your server's `lib` directory. Models support inheritance, sealed classes for exhaustive type checking, and field visibility control for sensitive data. **Database Mapping**: Add a `table` property to persist models to PostgreSQL. Serverpod handles index creation, foreign keys, and schema migrations automatically. ### Separation of Concerns Keep business logic in separate classes that endpoints call, making code testable independent of the network layer. Use dependency injection to provide database sessions, external API clients, or configuration to your business logic. **Testing**: Serverpod's test framework provides the `withServerpod` helper for integration tests, automatically handling database transactions and cleanup. ## Database Best Practices ### Query Optimization Use `include` methods to eagerly load related data in a single query rather than making multiple database round trips. Apply filters before includes to reduce data transfer. **Pagination**: Always use `limit` and `offset` for large result sets. Consider cursor-based pagination for real-time feeds or infinite scroll interfaces. ### Migration Strategy Create migrations after model changes with `serverpod create-migration`, review the generated SQL, and apply migrations during server startup with the `--apply-migrations` flag. **Production**: Use maintenance mode for zero-downtime deployments, applying migrations before switching traffic to new server instances. ### Indexing Serverpod automatically creates indexes for foreign keys and fields marked with `!dbindex`. For complex queries, add custom indexes through migration SQL or use database-specific features. ## Authentication Architecture ### Token Management Choose JWT for stateless authentication suitable for serverless deployments or server-side sessions for traditional architectures. JWTs reduce database queries but require careful key management, while sessions provide easier revocation but add database overhead. **Configuration**: Store secrets in `config/passwords.yaml` (excluded from version control) or environment variables following the `SERVERPOD_PASSWORD_<key>` pattern. ### Identity Providers Implement identity providers by extending abstract endpoint classes and configuring provider-specific settings. Each provider handles its own OAuth flow, token exchange, and user profile retrieval. **Custom Providers**: Create custom identity providers for enterprise SSO, SAML, or proprietary authentication systems by implementing the identity provider interface. ## Deployment Considerations ### Docker Containers Serverpod projects include Dockerfiles configured for production deployment. Build containers with `docker build`, configure run
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.