Catalyst Datastore

catalystbyzoho/agent-skills/skills/catalyst-datastore

作者 catalystbyzoho69e5df0514d6091eb7fb399106d1a43298f83b33无许可证66 个星标收录于 2026年10月9日更新于 2026年10月9日仓库今天更新

Catalyst 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.

AI 生成的概览

指导通过 MCP 工具使用 Zoho Catalyst Data Store:建表、ZCQL 查询、CRUD、权限与分页。

功能
该技能指导智能体使用 Zoho Catalyst Data Store 关系型云数据库。内容涵盖验证 MCP 连接、列出组织与项目、创建或查找表、执行 ZCQL 查询、解包查询结果、处理分页上限,以及配置 App User 表权限。它还列出防幻觉注意事项与安全提示,并指向一个参考文件以了解 CRUD、ZCQL 语法、列类型和时区细节。
适用场景
适用于编写读取或写入 Catalyst Data Store 数据的代码,或任务涉及 ZCQL、建表、表权限、ROWID 或 Data Store 列类型时。面向已具备 Catalyst MCP 工具的 Zoho Catalyst 项目工作。
运行要求
在任何操作前需要已连接并可见 CatalystbyZoho_* MCP 工具;若不存在,技能要求先停止并完成 MCP 设置。它不附带脚本,仅有一份参考文档,并需通过 MCP 访问用户的 Catalyst 组织与项目。

PREREQUISITES — READ THIS FIRST

Before ANY Data Store operation, you MUST verify MCP connectivity.

  • Search for CatalystbyZoho_* tools in your available tool list.
  • If NOT found: STOP. Do NOT write any code, scaffold files, or instruct Console steps. Load catalyst-zoho-mcp skill and guide the user through MCP setup. Do NOT proceed until the user confirms CatalystbyZoho_* tools are visible.
  • If found: Run CatalystbyZoho_List_All_Organizations → CatalystbyZoho_List_All_Projects to set project context, then continue to "How It Works".

Execution Checklist (MUST follow in order)

  • Step 0: Confirm CatalystbyZoho_* tools visible → if none found → STOP, set up MCP first
  • Step 1: Run CatalystbyZoho_List_All_Organizations
  • Step 2: Run CatalystbyZoho_List_All_Projects
  • Step 3: For table creation → CatalystbyZoho_Create_Table | For existing tables → CatalystbyZoho_List_All_Tables
  • Step 4: Proceed with the operation

How It Works

  1. Create or locate the table via MCP — Creating a table? Use CatalystbyZoho_Create_Table directly. Do NOT instruct the user to open the Catalyst Console or create the table manually. Reading/writing data? Use CatalystbyZoho_List_All_Tables to get table IDs. Never ask the user to copy table IDs.
  2. Load references/datastore-basics.md — for CRUD operations, ZCQL syntax, result unwrapping, and permissions setup.
  3. Unwrap ZCQL results — Always remind: rows.map(r => r.TableName). Raw ZCQL results are wrapped; accessing without unwrapping is the #1 Data Store bug.
  4. Permissions — App User permissions are OFF by default. If the query involves a logged-in user reading data, check Console → Table → Scopes & Permissions.
  5. Pagination — ZCQL max 300 rows per query. Use LIMIT offset, count for larger datasets.

Hallucination Guards

Never assert project-specific values from an empty or unread directory. If the working directory has no project files, do not invent or assume timezone, table names, project ID, environment names, or any other project-specific detail. Ask the developer to supply them.

  • Timezone: do not state a timezone for ZCQL date queries unless you have read it from a real project config file. Ask the developer what timezone their project uses.
  • Table names / column names: only use names returned by CatalystbyZoho_List_All_Tables or explicitly provided by the user.

Default to native Node.js response syntax. When writing function code alongside Data Store operations, use res.writeHead() + res.end() — not Express methods (res.status(), res.json()), unless the user explicitly chose the Express template.

Security Checklist

  • App User write permissions are off by default. The App User role has SELECT enabled by default, but INSERT, UPDATE, and DELETE must be manually enabled per table. Go to Console → Table → Scopes and Permissions → App User role → check Insert/Update/Delete for any table your authenticated users need to write.
  • App Administrator has all permissions by default. Never assign the App Administrator role to regular end-users — it grants full read/write/delete access to all tables.

Triggers

Use this skill for: "Data Store", "ZCQL", "catalyst table", "create table", "query data", executeZCQLQuery, "table permissions", "App User permissions", "ROWID", "CREATEDTIME", "Data Store CRUD", "JOIN in ZCQL", "pagination ZCQL", "data store column types", "insert row", "update row", "delete row", or "relational data on Catalyst".

References

ReferenceLoad when the query is about…
references/datastore-basics.mdCRUD, ZCQL queries, result unwrapping, pagination, column types, App User permissions setup, CREATEDTIME timezone gotcha, emoji limitation

来源与署名

来源:catalystbyzoho/agent-skills位于skills/catalyst-datastore提交69e5df0

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架