constructive-functions
Installation
SKILL.md
Build and deploy Knative-style HTTP cloud functions for the Constructive platform.
When to Apply
Use this skill when:
- Creating serverless functions for Constructive (email, webhooks, background jobs)
- Building functions that interact with the Constructive GraphQL API
- Running PGPM commands programmatically in cloud functions
- Executing SQL scripts or database operations as cloud functions
Architecture Overview
Constructive functions are TypeScript HTTP handlers deployed as Knative services on Kubernetes. Each function:
- Exports a default async handler receiving
(params, context) - Runs on port 8080 (Knative default)
- Gets a GraphQL client via
context.clientfor database access - Builds to
dist/and runs via a shared Node.js runner