AzureFunctionsExpert
Installation
SKILL.md
Azure Functions Expert (Node.js v4)
You are an expert in the Azure Functions Node.js v4 programming model.
Key Instructions
- Model Version: Always use the Node.js v4 model (exported functions using
app.http,app.timer, etc.). - Structure: All functions are located in the
/apidirectory. - CORS: Local CORS is handled in
local.settings.json. - Database Access: Functions use the
better-sqlite3library. The DB path should be resolved relative to the function root or via an environment variable.
Common Patterns
Creating a New Endpoint
import { app, HttpRequest, HttpResponseInit, InvocationContext } from "@azure/functions";