zoho/crm-skills

zoho-crm

Zoho CRM v8.0 orchestration layer — primitive selection, code generation, and validation across all CRM developer tools: REST API, Deluge Functions, ClientScript, Widgets, COQL, Queries Workbench, and Connections.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/zoho/crm-skills --skill zoho-crm

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

zoho-crm

Purpose

Given any use case, this skill:

  1. Selects the right primitive, loads the relevant DOU nodes / reference docs
  2. Produces the solution (via MCP tools if connected, or as exact payloads) and validates the output

When to Use

Use caseSubskill
Read, create, update, delete CRM records via HTTPAPI
Write server-side automation / custom functionsFunctions / Deluge
Add UI logic to record pages / list viewsClientScript
Build embedded UI componentsWidgets
Build a saved query bound to a Canvas view, Kiosk, or Custom Related List (UI-authored in Workbench)Queries
Query CRM data using COQL (CRM Object Query Language)COQL
Connect to external services via OAuthConnections

Step-by-Step Reasoning Flow

Step 1 — Understand the Goal

DimensionExtractExamples
ActionWhat should happen?fetch, create, update, trigger, display, query
EntityWhich CRM module or object?Leads, Contacts, Deals, custom modules
ContextWhere does this run?server-side, UI page, scheduled, event-triggered
Gate: If any dimension above cannot be unambiguously inferred from a single reasonable interpretation — stop and ask before proceeding to Step 2. Ask only what is necessary; omit optional parameters with clear defaults.

Step 2 — Select the Right Primitive

Use the decision matrix below as the primary routing source. If the use case doesn't match any row, apply the layer rule: server-side (no browser access needed) → Function / REST API / COQL / Queries; browser-side → Widget / Client Script.

Decision matrix — need → use

Server-side

NeedUse
Run Deluge backend code in CRM — process records, perform CRUD operations, call Zoho CRM APIs, send emails/SMS, or execute any server-side business logicFunction — trigger via Workflow Rule, Blueprint, Schedule, Button, Validation Rule, or Serverless Endpoint
Call an external (non-Zoho) API and write the result to CRMFunction via Workflow Rule or Button (use a named Connection for auth)
Expose custom Deluge logic as REST API for external systemsFunction via Serverless Endpoint
Run a cron job inside CRMFunction via Scheduled Function
Convert a Custom Related List to a FunctionFunction via related_list.* category — the only category that renders data directly on a record detail page; do not clarify unless a different trigger type (button, workflow, API endpoint) is explicitly stated
Read / create / update / delete CRM records, or any CRM-specific operation, from an external system or scriptREST API
Fetch CRM data programmatically from Deluge, external API callers, or ad-hoc codeCOQL
Display query-driven data in a Canvas, Kiosk, or Custom Related ListQueries (build in Workbench UI — Setup → Developer Hub → Queries)
Authenticate to an external OAuth service from a Function or ClientScriptConnections (create in Setup → Developer Hub → Connections; reference by link name in invokeurl or ZDK.Apps.CRM.Connection.invoke)

Browser-side

NeedUse
Render or embed custom HTML or a third-party UI component inside CRMWidget
Hide a field based on another field's value, or any other web UI customization on a record pageClient Script
Validate field input before saving a record in CRM web UIClient Script (instant UI feedback) or Function via Validation Rule (server-side enforcement) — default to Client Script unless the user explicitly requires server-side enforcement
Show a confirmation dialog before a button action in web UIClient Script (dialog) + Function (backend action)
Tiebreaker: Default to the first listed option; override only if the user's context explicitly favors the second.
Check: Confirm the selected primitive matches Action + Entity + Context from Step 1. If not — re-check the matrix or loop back to clarification.
Universal constraint: Use API names for all module and field references — never display labels.

Authoritative Sources Hierarchy

When in doubt about syntax, signatures, or limits, consult sources in this order (not by preference or recollection):

  1. DOU Nodes (assets/) — Current method signatures, parameters, return types, and critical failure modes. Use this first for code generation.
  2. Official Zoho Public Docs (zoho.com/deluge/help/, zoho.com/crm/api/) — When a DOU node is partial or missing.
  3. Reference files + inline examples (api.md, functions.md, etc.) — Curated summaries; may lag behind DOU or official docs.
  4. Recalled knowledge — Lowest trust; always cross-check against DOU.
Critical Rule: Reference files are curated summaries, not authoritative. DOU nodes are the ground truth. If a reference file example conflicts with a DOU node, the DOU node wins.

Step 3 — Load the Reference for the Selected Primitive

Open the reference file for the primitive matched in the "When to Use" table above and follow its Execution Instructions. (Special case: if the primitive is Queries with source type COQL, also open references/coql.md.)

If a reference file is inaccessible, inform the user, state which file is missing, and do not generate code that depends on its contents.

Steps 4–5 — Execute and Validate

Follow the Execution Instructions in the reference file from Step 3. After presenting the solution, run its Validation Checklist; surface errors with plain-language explanations and suggest follow-up steps if the goal is only partially met.

Auth & Scope Reference

Always derive scopes from the OAS spec file (per api.md Step 6, security field at operation level). For all standard scopes, use the OAS spec — the table below covers the non-obvious cases only.

ScopeNote
ZohoCRM.coql.READ and ZohoCRM.modules.{module}.READCOQL queries — two separate scopes required; coql.READ alone → OAUTH_SCOPE_MISMATCH

Base URL: https://www.zohoapis.com/crm/v8/

按任务相关推荐