Skip to main content
skill CX Codex

catalyst-functions — Claude Code skill: what it does, how to install

Guides development and deployment for all 7 Zoho Catalyst serverless function types. Helps configure API Gateway routing, resolve CORS bugs, and handle file uploads.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add catalystbyzoho/agent-skills --skill catalyst-functions -a claude-code
Open on GitHub

What catalyst-functions does

The skill assists with creating and configuring all seven Zoho Catalyst function types: Basic I/O, Advanced I/O, Event, Cron, Job, Integration, and Browser Logic for Puppeteer. For conceptual questions, the assistant outputs handler code immediately without scanning local directories. Filesystem checks happen only when scaffolding projects via catalyst init -ni.

In Advanced I/O handlers, the skill defaults to native Node.js methods like res.writeHead() and res.end(). Express methods require explicit middleware configuration. Endpoints are public by default. You must set "authentication": "required" for private resources, or route traffic through API Gateway. Note that enabling API Gateway automatically turns off Security Rules.

The setup requires zcatalyst-cli version 1.27.0 or higher, Node.js 20, and MCP tools with the CatalystbyZoho_* prefix. Java functions need JDK 8, 11, or 17, and Python functions require Python 3.9. This skill fails on Docker containers and long-running servers. Use catalyst-appsail for those workloads.

What it helps with

  • scaffold an Advanced I/O function with busboy file uploads
  • schedule background executions using Cron and Job functions
  • fix duplicate CORS headers and 401 authentication errors
  • configure API Gateway routing without conflicting with Security Rules
  • deploy an individual function using catalyst deploy --only functions:<name>

Example prompts for the agent

  • Write an Advanced I/O Catalyst function in Node.js that parses multipart file uploads using busboy
  • Why is my Catalyst function returning a 401 and how do I configure Security Rules?
  • Scaffold a new cron function using catalyst functions:add in non-interactive mode

How to install catalyst-functions

1Skills CLI (Vercel)

npx skills add catalystbyzoho/agent-skills --skill catalyst-functions -a claude-code

2Manually: put the files in place

~/.claude/skills/catalyst-functions/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/catalyst-functions/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about catalyst-functions

How do I install catalyst-functions in Claude Code?

Run npx skills add catalystbyzoho/agent-skills --skill catalyst-functions -a claude-code. The skill file will be placed at ~/.claude/skills/catalyst-functions/SKILL.md.

What does the catalyst-functions skill do?

It provides templates and configuration rules for all seven Zoho Catalyst serverless function types. It also guides non-interactive CLI commands, API Gateway routing, and debugging for CORS or timeout errors.

Can I use Security Rules and API Gateway together?

No, you cannot combine them. Enabling API Gateway automatically turns off Security Rules, so you must select a single layer for routing and request authorization.

Source text

SKILL.md · Apache-2.0
---
name: catalyst-functions
description: "Catalyst serverless functions — all 7 types (Basic I/O, Advanced I/O, Event, Cron, Job, Integration, Browser Logic), handler signatures, catalyst-config.json, Security Rules, API Gateway routing, file uploads, busboy, Express middleware, environment variables, function URL, and function testing. Requires MCP connection — check for CatalystbyZoho_* tools before any operation. Trigger on 'write a function', 'catalyst function', 'API Gateway', 'Security Rules', 'function not found', 'function returns 401', 'busboy', 'middleware', 'function URL', 'environment variable in function', 'duplicate CORS headers', 'CORS error in browser', 'Access-Control-Allow-Origin multiple values', 'function URL 404', 'execute suffix', 'function timeout', 'function hangs', or any function type question. Do NOT use for persistent servers, long-running processes, or Docker deployments — use catalyst-appsail instead."
compatibility: "Requires Catalyst CLI (`npm install -g zcatalyst-cli`) and Node.js v20 (recommended; v14–v18 also supported). Java functions also require JDK 8, 11, or 17. Python functions require Python 3.9."
metadata:
   version: "2.0.2"
---

## How It Works

**Intent check — do this first:**
- If the user is asking a how-to or conceptual question ("how do I write a function", "show me a Basic I/O handler", "how does Security Rules work"), answer directly with the correct code or explanation. Do NOT inspect the working directory, do NOT generate a CLAUDE.md, do NOT switch into codebase-analysis mode. Empty directory = fine for how-to questions.
- Only inspect the filesystem when the user explicitly asks to scaffold, add, or deploy something in their project.

1. **Verify local scaffold (only when scaffolding, not for how-to questions) — both `catalyst init` and `functions:add` support non-interactive mode (CLI v1.27.0+).**
   Check whether `.catalystrc` exists. If missing, use MCP tools to get the org ID and project ID, then run:
   ```bash
   catalyst init --org <orgId> -p <projectId> -ni
   ```
   Never ask the user to run `catalyst init` interactively. NI mode can only link an existing project — if none exists, tell the user to create one in the console first. `catalyst.json` does not exist yet after `init -ni` — that is expected. Add functions next (this creates `catalyst.json`):
   ```bash
   catalyst functions:add --name <name> --type <type> --stack <stack> -ni
   # e.g. catalyst functions:add --name api --type aio --stack node20 -ni
   ```

2. **Identify the function type** — Basic I/O for simple request/response, Advanced I/O for raw HTTP control, Event for trigger-based, Cron/Job for scheduled, Integration for Zoho service events, Browser Logic for Puppeteer.
3. **Load `references/functions-basics.md`** — for the matching handler signature, `catalyst-config.json` keys, SDK init pattern, and CORS setup.
4. **Load `references/functions-advanced.md`** — for file uploads (busboy), streaming responses, error handling, or chaining functions.
5. **Load `references/api-gateway.md`** — for routing rules, rate limiting, or gateway-level CORS.
6. **Validate config** — Confirm `catalyst-config.json` uses `deployment` + `execution` keys only. Never use `function` or `entry_point`.

## Response Syntax Default

**Always default to native Node.js response syntax.** Advanced I/O exposes raw `http.ServerResponse` — Express methods (`res.status()`, `res.json()`) do not exist unless the user explicitly chose the Express template.

- Native (default): `res.writeHead(200, { 'Content-Type': 'application/json' }); res.end(JSON.stringify(data));`
- Express (opt-in only): `res.status(200).json(data)` — only if the user has `express` installed and wired as middleware

If you don't know which template the user has, ask or default to native.

## Security Checklist

- **Functions are publicly accessible by default.** Security Rules sets `authentication` to `optional` when a function is created — its URL is globally accessible to everyone with no restrictions. Set `"authentication": "required"` in the Security Rules JSON for any function that reads or writes user data or sensitive resources.
- **API Gateway replaces Security Rules — do not use both.** Enabling API Gateway automatically disables Security Rules. Pick one auth/routing layer per function.

## Triggers

Use this skill for: "write a function", "catalyst function", "Basic I/O", "Advanced I/O", "Event function", "Cron function", "Browser Logic", `catalyst-config.json`, "function handler", "API Gateway", "rate limiting", "busboy", "file upload in function", `catalyst deploy --only functions:<function-name>`, `catalyst functions:add`, "function CORS", or any function type or function configuration question.

Deployment command note:
- Use `catalyst deploy --only functions:<function-name>` to deploy one function (where `functions:<name>` targets the function by its folder name).
- Use `catalyst deploy --only functions` to deploy all functions at once.

## References

| Reference | Load when the query is about… |
|-----------|-------------------------------|
| `references/functions-basics.md` | **Start here for any function question.** Function type selection, Basic I/O and Advanced I/O handler signatures, `catalyst-config.json`, user-scope vs admin-scope, CORS, Security Rules, execution limits |
| `references/functions-advanced.md` | **Advanced I/O patterns only.** Express vs raw-http template differences, file uploads (busboy), streaming files from Stratus, error handling patterns, CORS for local dev, local testing, function chaining, ZCQL result unwrapping, HTTP payload limits |
| `references/functions-templates.md` | **Event, Cron, Job, or Integration functions.** Handler templates for all background/scheduled types, SDK component reference, retry behavior, cold start data, and the full common errors table |
| `references/api-gateway.md` | **API Gateway config only.** Enable/disable gateway, routing rules, rate limiting, CORS via gateway |

© catalystbyzoho · Apache-2.0 · catalystbyzoho/agent-skills

Similar skills

All skills for Backend and APIs →

From the same set15

catalyst-datastore An agent skill that walks you through ZCQL, CRUD and role permissions in the Zoho Catalyst cloud database. CX Codex +1 1,000installs catalyst-sdk A skill that tells the agent how to initialize the Catalyst SDK and reach its services on Node.js, Python, Java, web and mobile. CX Codex +1 1,000installs catalyst-appsail Guides the agent through deploying a persistent server on Catalyst AppSail, whether a managed Node.js, Java or Python runtime or your own Docker container. CX Codex +1 1,000installs catalyst-by-zoho Guides Claude Code through building full-stack serverless apps on Catalyst by Zoho. Helps wire Functions, Slate, and storage via Zoho MCP tools and the CLI. CX Codex +1 1,000installs catalyst-authentication Guides user login, social auth, and OAuth connections in Zoho Catalyst. Prevents broken production deployments caused by mismatched ZAID identifiers. CX Codex +1 999installs catalyst-zoho-mcp This skill wires an AI agent to the Zoho Catalyst MCP server so tables, buckets and cache get created from plain chat instead of the console. CX Codex +1 1,000installs catalyst-slate Walks your agent through deploying a frontend to Catalyst Slate: scaffold the app, configure slate-config.toml, ship the build. Handy when React or Next.js needs to live on Catalyst. CX Codex +1 1,000installs catalyst-cache A skill that teaches the agent to use Catalyst Cache: store temporary values in segments, read them back, and respect the TTL. Handy for session data. CX Codex +1 997installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor