
netlify-functions
Write, configure, and deploy Netlify serverless functions in TypeScript
by netlifyFree
Description
netlify-functions is an agent skill for writing, configuring and deploying Netlify serverless functions in TypeScript, JavaScript or Go. It steers the agent toward the modern default handler API: a TypeScript file that exports a default async function taking a web Request and a Netlify Context, and returning a web Response. The legacy AWS Lambda handler shape is covered only for Go or for migrating older code. The skill explains where functions live, which is the netlify/functions directory relative to the base directory, and it warns against placing them in the publish directory, because source files there would ship as static assets. A function can be a single file or a subdirectory whose entry file is named index or matches the directory name. cjs force CommonJS. netlify/functions/ followed by its name.…
Highlights
- Modern default handler for TypeScript functions
- Guidance for JavaScript and Go functions
- File and folder layouts for functions
- Extension rules for ES modules and CommonJS
- Minimal function example served under /.netlify/functions
Ratings & Reviews
No ratings yet
Be the first to rate netlify-functions.
People also visit

netlify-config
Configure Netlify builds and routing via netlify.toml, _redirects, and _headers
netlify-functions FAQ
What does the skill do?
It helps write, configure and deploy Netlify serverless functions in TypeScript, JavaScript or Go.
Where should functions go?
In netlify/functions, relative to the base directory, and outside the publish directory so they are not shipped as static files.
Which handler shape should I use?
The default handler that takes a web Request and Netlify Context, unless you are writing Go or migrating old code.
How do I install it?
Run npx skills add https://github.com/netlify/context-and-tools --skill netlify-functions.
What are the best netlify-functions alternatives?
Popular alternatives to netlify-functions include netlify-edge-functions, netlify-config and netlify-deploy. See all netlify-functions alternatives





