netlify-api-performance
Use when optimizing Netlify backend APIs for speed, cost, cold starts, database efficiency, caching, regional behavior, and reliable production observability.
Skill by prachwal-archive
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/prachwal-archive-netlify-api-performance
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, cloud
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/netlify-api-performance
What's inside
- Skill name
netlify-api-performance- Description
- Use when optimizing Netlify backend APIs for speed, cost, cold starts, database efficiency, caching, regional behavior, and reliable production observability.
- License
- MIT
- Instructions
- 82 lines in SKILL.md · view on GitHub
Files (4)
- SKILL.md
- caching-strategy.md · references/
- db-efficiency.md · references/
- observability.md · references/
SKILL.md (first lines)
# Netlify API Performance Skill Use this skill when a TypeScript API on Netlify needs to be faster, cheaper, or more reliable under load. ## Performance goals - Reduce cold-start overhead. - Minimize database round trips. - Keep responses small and cacheable where possible. - Avoid unnecessary work inside the function runtime. ## Scope - Assume the execution primitive has already been chosen. - Keep this skill focused on latency, throughput, cache behavior, and production measurements. - Use `netlify-serverless` for platform limits and routing primitives. ## Rules - Load heavy modules lazily when practical. - Keep shared initialization minimal. - Move expensive computation out of the request path. - Prefer one query that returns the needed shape over multiple sequential queries. - Paginate large collections by default. - Cache static or slow-changing results explicitly, but pick the right cache primitive for the consistency you need. - Use `context.waitUntil()` for telemetry or trailing work that should not block the response. ## Database efficiency - Index columns used in filters, joins, and ordering. - Limit returned columns to the data actually used. - Avoid unbounded scans and unbounded joins. - Measure query latency and fix the slowest paths first. - Use explain plans before guessing at optimizations. - Align function region and database region whenever possible. ## API efficiency - Use concise response schemas. - Stream only when it materially improves UX and the response can complete within Netlify's streaming limits. - Return early for invalid requests. - Use idempotent writes where retries are possible. - Add project-level rate limits or request shaping for expensive endpoints. ## Caching strategy - Use HTTP cache headers for CDN-friendly GET responses first. - Use Netlify Cache API when you need programmatic caching inside Functions or Edge Functions. - Do not assume Cache API entries are global. Netlify documents that Cache API data is shared within a region, not replicated across regions, and invalidated on redeploy. - Use Netlify Blobs for simple read-heavy persistence, not as a substitute for a strongly consistent relational cache or queue. ## Observability checklist - Log request IDs, route names, and latency. - Track error rates separately from latency. - Capture slow queries and timeout counts. - Test the function with realistic payload sizes. - Recheck performance after schema or dependency changes. - Separate cold-start regressions from database regressions in measurements. ## Reference files ### [`references/caching-strategy.md`](references/caching-strategy.md) **Caching primitive selection and code** — Comparison table of HTTP headers vs. Cache API vs. Netlify Blobs vs. in-module variables (scope, consistency, use case), HTTP `Cache-Control` + `CDN-Cache-Control` examples, Netlify Cache API programmatic pattern with TTL and invalidation, Blobs-based rendered-output cache, consistency caveats, and rules. ### [`references/db-efficiency.md`](references/db-efficiency.md) **Query optimization and N+1 prevention** — Column projection with `SELECT` field list, bounded pagination with allowlisted sort/order, N+1 example → JOIN fix → bulk-fetch-and-join alternative, `EXPLAIN ANALYZE BUFFERS` usage guide, index patterns (single, compound, partial), and rules including atomic operations. ### [`references/observability.md`](references/observability.md) **Structured logging, latency tracking, cold-start detection** — `RequestLog` type with cold-start flag, `withLatency()` wrapper for any async operation, error emission with route + stack context, `/api/metrics` ingestion endpoint using `context.waitUntil()`, cold-start vs. query regression separation table, rules for `requestId` and telemetry safety. ## External references - Pair with [../netlify-serverless/SKILL.md](../netlify-serverless/SKILL.md) for execution-model limits and constraints. - [Get started with functions](https://docs.netlify.com/functions/get-started/) - [Background Functions overview](https://docs.netlify.com/functions/background-functions/) - [Scheduled Functions](https://docs.netlify.com/build/functions/scheduled-functions/) - [Edge Functions limits](https://docs.netlify.com/edge-functions/limits/) - [Cache API](https://docs.netlify.com/platform/cache-api/) - [Netlify Blobs overview](https://docs.netlify.com/storage/blobs/overview/)
From prachwal-archive/web-ui-skills, MIT.
More from prachwal-archive/web-ui-skills
- 0.502score
a11y-review
prachwal-archive
Use when reviewing web interfaces for accessibility, including WCAG 2.2 mapping, ARIA misuse, keyboard access, focus management, responsive/mobile behavior…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
preact-a11y
prachwal-archive
Use when designing, implementing, testing, or reviewing accessibility in Preact apps — semantic HTML, ARIA, keyboard flow, focus management, forms, contrast…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
docs-instructions
prachwal-archive
Use when maintaining repository Markdown, Copilot instructions, Codex AGENTS.md, repo skills, prompts, or LLM evaluation tasks.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
react-a11y
prachwal-archive
Use when designing, implementing, testing, or reviewing accessibility in React apps — semantic HTML, ARIA, keyboard flow, focus management, forms, contrast…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
react-ui
prachwal-archive
Guidance for building, redesigning, or reviewing React TSX pages/components, hooks, state management, styling, routing, accessibility, and Testing Library…
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
project-tooling
prachwal-archive
Tooling guidance for Vite, Vitest, TypeScript, ESLint/Biome, package scripts, path aliases, and build/test tooling.
SkillCFreshness: C★ 1Claude Code +9 - 0.437score
netlify-typescript-api
prachwal-archive
Use when designing or implementing TypeScript backend APIs on Netlify, including handler structure, validation, typed contracts, error envelopes, and testable…
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
preact-ui
prachwal-archive
Use when designing, refactoring, or reviewing Preact pages and components, including component structure, MVVM architecture, signals, hooks, forms, routing…
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
typescript-fundamentals
prachwal-archive
Use when designing or reviewing TypeScript code structure, type safety, patterns, JSDoc, naming conventions, formatting, and module organization.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
eslint-config
prachwal-archive
Use when setting up, extending, or fixing ESLint configuration for TypeScript projects, including flat config, Preact/React, Node.js, Netlify Functions, and…
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
mongodb-netlify
prachwal-archive
Use when building Netlify Functions or full-stack apps that use MongoDB Atlas or MongoDB-compatible deployments.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
neon-netlify
prachwal-archive
Use when building Netlify apps or APIs with Neon Postgres.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 9, 2026 (6 months ago)
- Last release
- Apr 23, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from prachwal-archive
- 0.502score
a11y-review
prachwal-archive
Use when reviewing web interfaces for accessibility, including WCAG 2.2 mapping, ARIA misuse, keyboard access, focus management, responsive/mobile behavior…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
docs-instructions
prachwal-archive
Use when maintaining repository Markdown, Copilot instructions, Codex AGENTS.md, repo skills, prompts, or LLM evaluation tasks.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
preact-a11y
prachwal-archive
Use when designing, implementing, testing, or reviewing accessibility in Preact apps — semantic HTML, ARIA, keyboard flow, focus management, forms, contrast…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
react-a11y
prachwal-archive
Use when designing, implementing, testing, or reviewing accessibility in React apps — semantic HTML, ARIA, keyboard flow, focus management, forms, contrast…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
react-ui
prachwal-archive
Guidance for building, redesigning, or reviewing React TSX pages/components, hooks, state management, styling, routing, accessibility, and Testing Library…
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
project-tooling
prachwal-archive
Tooling guidance for Vite, Vitest, TypeScript, ESLint/Biome, package scripts, path aliases, and build/test tooling.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
netlify-api-performance skill. Agent Mart. https://agentmart.dev/skills/prachwal-archive-netlify-api-performance (last updated 2026-10-24)