/catalyst-by-zoho:catalyst-functionsfrom catalyst-by-zoho
Guides writing and deploying all 7 types of Catalyst serverless functions (Basic I/O, Advanced I/O, Event, Cron, Job, Integration, Browser Logic). Covers handler signatures, catalyst-config.json, Security Rules, API Gateway routing, file uploads, busboy, Express middleware, environment variables, function URLs, and testing.
Ships in catalyst-by-zoho. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Intent check — do this first:
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:
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):
catalyst functions:add --name <name> --type <type> --stack <stack> -ni
# e.g. catalyst functions:add --name api --type aio --stack node20 -ni
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.
Load references/functions-basics.md — for the matching handler signature, catalyst-config.json keys, SDK init pattern, and CORS setup.
Load references/functions-advanced.md — for file uploads (busboy), streaming responses, error handling, or chaining functions.
Load references/api-gateway.md — for routing rules, rate limiting, or gateway-level CORS.
Validate config — Confirm catalyst-config.json uses deployment + execution keys only. Never use function or entry_point.
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.
res.writeHead(200, { 'Content-Type': 'application/json' }); res.end(JSON.stringify(data));res.status(200).json(data) — only if the user has express installed and wired as middlewareIf you don't know which template the user has, ask or default to native.
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.authentication: required or API Gateway) for web, OAuth for mobile.methods. Full go-live checklist: ../catalyst-basics/references/secure-practices.md.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:
catalyst deploy --only functions:<function-name> to deploy one function (where functions:<name> targets the function by its folder name).catalyst deploy --only functions to deploy all functions at once.| 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 |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Node, JavaScript, Python, Java
19 skills in this plugin
/catalyst-appsailCatalyst AppSail — persistent backend PaaS with managed runtimes (Node.js, Java, Python) and custom Docker containers. Trigger on 'AppSail', 'persistent server', 'Docker on Catalyst', 'X_ZOHO_CATALYST_LISTEN_PORT', or 'long-running process on Catalyst'. Do NOT use for stateless request/response handlers, event-driven functions, or scheduled jobs — use catalyst-functions instead./catalyst-authenticationCatalyst Authentication — user login/signup, ZAID, Web SDK auth flows, OAuth token management via Connections, third-party authentication (Okta, Auth0, Duo, custom IdP), social logins (Google, Facebook, LinkedIn, Microsoft), generateCustomToken, signinWithJwt. Trigger on 'authentication', 'login', 'signup', 'getCurrentUser', 'ZAID', 'isUserAuthenticated', 'signOut', 'Connections', 'getAccessToken', 'third-party auth', 'social login', 'Google login', 'signinWithJwt', or 'generateCustomToken'. You MUST load this skill whenever implementing user login or protecting data — ZAID differs between Development and Production and is the #1 cause of auth failures after environment promotion. For Security Rules (function invocation control), route to catalyst-functions./catalyst-basicsCore Catalyst project setup — directory structure, environments, CLI commands, and all Catalyst IDs (Project ID, ZAID, Table ID, Segment ID, Org ID). Trigger on 'start a Catalyst project', 'what is .catalystrc', 'where do I find my Table ID', 'difference between Development and Production', 'security review', 'secure my app', 'harden my Catalyst app', 'is my app ready to go live', 'collaborator permissions', 'MFA for collaborators', or any Catalyst ID or CLI question./catalyst-by-zohoExpert coding assistant for Catalyst by Zoho — Zoho's full-stack cloud platform. Use for any question about Catalyst services, CLI, SDKs, architecture, pricing, or Zoho MCP tool-based infrastructure management./catalyst-cacheCatalyst Cache — in-memory key-value store with TTL for ephemeral session and temporary data. Trigger on 'Cache', 'cache segment', 'cache key', 'TTL', 'segment.put', 'segment.get', or 'temporary data Catalyst'./catalyst-datastoreCatalyst Data Store — relational cloud database with ZCQL, CRUD operations, table permissions, and result pagination. Requires MCP connection — check for CatalystbyZoho_* tools before any operation. Trigger on 'Data Store', 'ZCQL', 'create table', 'executeZCQLQuery', 'table permissions', 'ROWID', 'boolean column', 'boolean always true', 'truthy string', 'boolean stored as string', or 'DataStore data types'. You MUST load this skill whenever writing code that reads or writes Data Store data — ZCQL result wrapping, boolean-as-string behavior, and App User permissions are non-obvious and cause silent bugs if skipped.npx claudepluginhub catalystbyzoho/agent-skills --plugin catalyst-by-zohoOther plugins' skills for the same job