360 Secure SkillHub
360 安全技能中心

catalyst-appsail

该 Skill 指导在 Zoho Catalyst AppSail 上部署持久化后端服务,覆盖 Node.js、Java、Python 托管运行时与 Docker 容器,强调使用 X_ZOHO_CATALYST_LISTEN_PORT、检查认证、配置 CORS 和通过 Catalyst CLI 部署排错。

分类:开发
catalystbyzoho
热度 0.00
最近更新 2026-11-27 05:11:55

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add catalystbyzoho/agent-skills/catalyst-appsail
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
catalyst-appsail
description
Catalyst 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.
compatibility
Requires Catalyst CLI (`npm install -g zcatalyst-cli`). Custom Docker deployments additionally require Docker Desktop.
metadata
{"version":"2.2.0"}

How It Works

  1. Identify the runtime — Managed runtime (Node.js, Java, Python) or custom Docker container.

  2. Load references/appsail-basics.md — for PORT config, project structure, and Dockerfile requirements. For deploy commands and environment variables, load references/appsail-deploy.md.

  3. PORT rule — Always use process.env.X_ZOHO_CATALYST_LISTEN_PORT, never hardcode PORT or 3000.

  4. AppSail vs Functions decision — If the user is unsure which to use, apply this matrix:

    Catalyst Functions AppSail
    Code structure Catalyst-specific templates required Any framework, any format, fully independent
    Use case HTTP handlers, events, cron, Zoho integrations Persistent servers, long-running processes, Docker
    Billing Per API call Per instance uptime
    Dependency management Handled by Catalyst You manage all libraries and frameworks

Security Checklist

  • Security Rules and API Gateway do not protect AppSail. AppSail services are reached on their own URLs, so every endpoint that needs a signed-in user must check authentication in the app code: the gateway adds admin credentials to every request, so check that getCurrentUser() returns a user, and enforce ownership in data calls. An unchecked /admin route is open to anyone with the URL. Full go-live checklist: ../catalyst-basics/references/secure-practices.md.
  • Keep secrets in environment variables, with separate values for Development and Production.

Triggers

Use this skill for: "AppSail", "persistent server", "Docker on Catalyst", "backend hosting", X_ZOHO_CATALYST_LISTEN_PORT, appsail:add, "catalyst managed runtime", "deploy Express app", "AppSail vs Functions", "long-running process on Catalyst", or "containerized app on Catalyst", "secure AppSail endpoint", "AppSail authentication".

References

Reference Load when the query is about…
references/appsail-basics.md Runtimes, project structure, app-config.json fields, Node.js/Docker templates, SDK version
references/appsail-deploy.md Deployment commands (Path A/B/C), env variables, health checks, AppSail URL pattern, configurations
references/appsail-crossorigin.md Slate + AppSail cross-origin errors, CORS setup via MCP, catalyst_auth, custom domain SSL