Community程式設計與開發github.com

waynesutton/convex-functions

撰寫查詢、變更、動作和 HTTP 動作,並包含適當的參數驗證、錯誤處理、內部函數以及執行時期考量。

convex-functions 是什麼?

此技能「waynesutton/convex-functions」專注於幫助開發者在使用 Convex 平台時,正確且高效地撰寫 serverless 函數。它涵蓋了 Convex 中四種核心函數類型:查詢 (query)、變更 (mutation)、動作 (action) 與 HTTP 動作。此技能的重點在於引導開發者實作嚴謹的參數驗證(透過 schema 或 Schema Validation Library)、全面的錯誤處理(使用 try/catch 與自訂錯誤類型),以及善用內部函數來組織程式碼。此外,它也強調執行時期 (runtime) 考量,例如避免在查詢和變更中進行非同步操作(如 HTTP 請求),並在必要時使用動作 (action) 來執行長時間或非確定性任務。此技能支援所有 Convex 支援的平台與語言(TypeScript/JavaScript),並提供具體的程式碼範例,協助開發者建構健壯、可維護且安全的後端邏輯。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/waynesutton/convexskills/tree/main/skills/convex-functions

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

convex-functions 是做什麼的?

撰寫查詢、變更、動作和 HTTP 動作,並包含適當的參數驗證、錯誤處理、內部函數以及執行時期考量。

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

waynesutton/avoid-feature-creep

Prevent feature creep when building software, apps, and AI-powered products. Use this skill when planning features, reviewing scope, building MVPs, managing backlogs, or when a user says "just one more feature." Helps developers and AI agents stay focused, ship faster, and avoid bloated products.

waynesutton/convex

Umbrella skill for all Convex development patterns. Routes to specific skills like convex-functions, convex-realtime, convex-agents, etc.

waynesutton/convex-agents

Building AI agents with the Convex Agent component including thread management, tool integration, streaming responses, RAG patterns, and workflow orchestration

waynesutton/convex-best-practices

Guidelines for building production-ready Convex apps covering function organization, query patterns, validation, TypeScript usage, error handling, and the Zen of Convex design philosophy

waynesutton/convex-component-authoring

How to create, structure, and publish self-contained Convex components with proper isolation, exports, and dependency management

waynesutton/convex-cron-jobs

Scheduled function patterns for background tasks including interval scheduling, cron expressions, job monitoring, retry strategies, and best practices for long-running tasks

waynesutton/convex-file-storage

Complete file handling including upload flows, serving files via URL, storing generated files from actions, deletion, and accessing file metadata from system tables

waynesutton/convex-http-actions

External API integration and webhook handling including HTTP endpoint routing, request/response handling, authentication, CORS configuration, and webhook signature validation

waynesutton/convex-migrations

Schema migration strategies for evolving applications including adding new fields, backfilling data, removing deprecated fields, index migrations, and zero-downtime migration patterns

waynesutton/convex-realtime

Patterns for building reactive apps including subscription management, optimistic updates, cache behavior, and paginated queries with cursor-based loading

waynesutton/convex-schema-validator

Defining and validating database schemas with proper typing, index configuration, optional fields, unions, and migration strategies for schema changes

waynesutton/convex-security-audit

Deep security review patterns for authorization logic, data access boundaries, action isolation, rate limiting, and protecting sensitive operations

waynesutton/convex-security-check

Quick security audit checklist covering authentication, function exposure, argument validation, row-level access control, and environment variable handling

相關技能