← 返回 Skills 市场
fit2-zhao

CordysCRM

作者 zhao · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
183
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install cordys-crm
功能描述
Cordys CRM CLI 指令映射技能,支持将自然语言高效转换为标准 `cordys crm` 命令,具备意图识别、模块匹配、参数补全及分页与全量查询处理能力,输出简洁稳定、无歧义。
使用说明 (SKILL.md)

Cordys CRM CLI 使用说明

Cordys CRM CLI 指令映射技能,本技能用于将自然语言需求精准转换为可执行的 cordys crm 标准命令,确保输出稳定、可预测、无歧义。

【核心能力】

  • 自动识别用户意图(列表 / 搜索 / 详情 / 跟进 / 原始接口)
  • 自动识别模块(lead / account / opportunity / contract 等)
  • 自动补全 JSON 参数
  • 自动构造 filters / sort / combineSearch
  • 自动补充分页默认值
  • 支持“查询全部/全部导出/拉全量”等语义下的自动翻页拉取
  • 支持二级模块(如 contract/payment-plan,pool/account,pool/lead)

安装

clawdhub install cordys-crm

环境变量(必须)

此技能需要以下环境变量才能正常工作。这些变量可以通过两种方式提供:

  1. 系统环境变量:直接设置在当前shell环境中
  2. .env文件:在技能目录中创建.env文件(注意:此文件包含敏感信息,不应提交到版本控制)

必需变量

# 访问 Cordys CRM API 的必要信息:
CORDYS_ACCESS_KEY=你的 Access Key
CORDYS_SECRET_KEY=你的 Secret Key
CORDYS_CRM_DOMAIN=https://your-cordys-domain

安全注意事项

  • .env文件中的凭证是高度敏感的,应妥善保管
  • 建议使用环境变量而非.env文件,以避免凭证泄露
  • 定期轮换API密钥
  • 确保CORDYS_CRM_DOMAIN指向可信的Cordys CRM实例

⚠️ 安全警告

此技能需要敏感的环境变量(API密钥和域名)。请注意以下安全事项:

  1. 凭证安全CORDYS_ACCESS_KEYCORDYS_SECRET_KEY 是敏感凭证,请妥善保管
  2. 域名验证:确保 CORDYS_CRM_DOMAIN 指向可信的Cordys CRM实例
  3. 网络请求:此技能会向指定的域名发送HTTP请求,包含您的API凭证
  4. raw命令风险:使用 cordys.sh raw 命令时,脚本会将您的凭证发送到指定的URL。请勿向不受信任的域名发送请求
  5. 环境隔离:建议在受控环境中使用此技能,避免凭证泄露

建议仅在信任的Cordys CRM实例上使用此技能,并定期轮换API密钥。

CLI 版本选择

本项目提供两个版本 CLI:

版本 推荐程度 说明
Shell 版本 cordys.sh 推荐 无需 Python,执行更轻量
Python 版本 cordys.py 备用 需要 Python3 + requests

目录结构里,scripts/ 目录存放这两个 CLI 实现,标准化排列为:

scripts/
├── cordys.sh       # 优先的 Shell 可执行脚本
└── cordys.py    # 不支持 Shell 时可选择 Python 实现

默认优先使用 Shell 版本。

Python 版本仅在以下情况使用:

  • 系统不支持 Bash
  • Windows 环境
  • Shell CLI 不可用

基本流程

  1. 明确意图:列出/搜索/获取/跟进。
  2. 指定目标模块(如 leadopportunity)。
  3. 根据需求补充关键词、过滤条件、排序或分页参数。
  4. 确认是否需要 JSON body(如 searchfollow planraw)。
  5. 说明期望的输出形式(简短摘要/全部字段/只要某字段)。

指令映射(常用)

场景 建议命令 备注
列表或分页查看 cordys.sh crm page \x3Cmodule> ["keyword"] 若用户只提关键词,会自动构造 {keyword:..., current:1, pageSize:30}
全局搜索 cordys.sh crm search \x3Cmodule> \x3CJSON body> combineSearchfilterssort,可补全默认值
详情 cordys.sh crm get \x3Cmodule> \x3Cid> 直接拉取记录
跟进计划或记录 cordys.sh crm follow plan 或 record \x3Cmodule> \x3Cbody> body 应包含 sourceId,计划还需要 status/myPlan
原始接口 cordys raw \x3CMETHOD> \x3CPATH> [\x3Cbody>] 用于自定义端点或二级模块,如 /contract/payment-plan

常用示例

# 分页查询线索列表(默认分页参数)
cordys.sh crm page lead
# 分页查询商机列表(默认分页参数)
cordys.sh crm page opportunity
# 分页查询客户列表(默认分页参数)
cordys.sh crm page account

# 分页列表(带关键词)
cordys.sh crm page lead "测试"

# 搜索(完整 JSON)
cordys.sh crm search opportunity '{"current":1,"pageSize":30,"combineSearch":{"searchMode":"AND","conditions":[]},"keyword":"电力","filters":[]}'

# 跟进计划
cordys.sh crm follow plan account '{"sourceId":"123","current":1,"pageSize":10,"status":"UNFINISHED","myPlan":false}'

# 获取组织架构
cordys.sh crm org

# 查询产品
cordys.sh crm product "测试产品"

# 获取联系人
cordys.sh crm contact account "927627065163785"

二级模块支持

Cordys CRM 部分资源属于二级模块。

例如:


 #查询回款计划的分页列表,支持传入关键词/JSON body,实际上调用的是 POST /contract/payment-plan/page。
 cordys.sh crm page contract/payment-plan
 
 #查询发票的分页列表,通过 POST /invoice/page 获取,每个条件都可以通过 filters 精细控制。
 cordys.sh crm page invoice 
 
 #检索工商抬头列表,同样支持关键词/filters。
 cordys.sh crm page contract/business-title 
 
 #查看回款记录列表,可结合关键词、filters 或 viewId 进行精细筛选。
 cordys.sh crm page contract/payment-record 
 
 # 查看线索池中的线索,可结合关键词、filters 或 viewId 进行精细筛选,必填属性是 poolId 通过 lead-pool 接口获取。
 cordys.sh crm page pool/lead '{"current":1,"pageSize":30,"sort":{},"combineSearch":{"searchMode":"AND","conditions":[]},"keyword":"","poolId":"必填项,通过 lead-pool API 获取","viewId":"ALL","filters":[]}'
 
 #查看线索池中的线索,可结合关键词、filters 或 viewId 进行精细筛选,必填属性是 poolId 通过 account-pool 接口获取。
 cordys.sh crm page pool/account '{"current":1,"pageSize":30,"sort":{},"combineSearch":{"searchMode":"AND","conditions":[]},"keyword":"","poolId":"必填项,通过 account-pool API 获取","viewId":"ALL","filters":[]}'

 

深度 API 调用

查看字段

cordys.sh raw GET /settings/fields?module=account

复杂过滤示例:

cordys.sh crm search opportunity '{"filters":[{"field":"Stage","operator":"equals","value":"Closed Won"}]}'

分页查询交互优化

为了避免分页查询的交互断层,优先执行一次识别出的指令并返回结果:

  1. 分页控制:默认 current=1pageSize=30,根据响应判断是否有多页,如果有则提示用户是否要翻下一页。
  2. 字段与输出范围:默认全部字段、摘要、特定字段组合。
  3. 默认格式:表格或列表形式展示,除非用户特别说明要 JSON 或其他格式。

高级技巧

  • 搜索命令需要完整 JSON,若用户只给关键词或简单条件,可自动补齐 current=1pageSize=30combineSearch={...}
  • 过滤器格式为 {"field":"字段","operator":"equals","value":"值"},排序格式为 {"field":"desc"}
  • 支持二级模块(例如 contract/payment-plancontract/payment-record),CLI 命令形式仍为 cordys.sh crm page \x3Cmodule>
  • cordys.sh raw 可以按原始 GET/POST 访问 /settings/fields/contract/business-title 等非标准接口。

助手判断意图的提示词

  • “列表”/“分页查看”:映射到 page 指令;可补上关键词或 filters
  • “查询全部”/“全部数据”/“拉全量”/“查完所有页”:自动补充上翻页参数,并根据响应提示用户是否继续翻页
  • “搜索”/“筛选”:使用 search,补齐 JSON body
  • “查看详情”:用 get + 决定的 ID
  • “跟进”:「跟进计划」→ follow plan,「跟进记录」→ follow record

日志与异常

  • CLI 默认读取 .env,也可通过前置环境变量覆盖。
  • 若返回 code100200,要记录 message 并向用户说明。
  • 若返回 401 或 403,提示用户检查认证信息。

问题反馈

如有任何问题或建议,请通过以下方式联系我们:

安全使用建议
This skill appears coherent for interacting with a Cordys CRM instance. Before installing: (1) only provide keys for trusted Cordys domains; avoid committing a .env into version control; (2) prefer least-privilege API keys and rotate them regularly; (3) note that the `raw` command can target arbitrary URLs if you set CORDYS_ALLOW_UNTRUSTED=1 — do not enable that unless you understand the risk; (4) review the included scripts yourself (they are plain shell/Python) and run the skill in an isolated environment if you are unsure.
功能分析
Type: OpenClaw Skill Name: cordys-crm Version: 1.0.3 The cordys-crm skill bundle provides a CLI interface (implemented in both scripts/cordys.sh and scripts/cordys.py) for interacting with the Cordys CRM API. While the skill handles sensitive credentials (CORDYS_ACCESS_KEY and CORDYS_SECRET_KEY), it includes robust security guardrails: both scripts implement a validate_url function that prevents the exfiltration of these keys to untrusted domains by verifying requests against the configured CORDYS_CRM_DOMAIN. The SKILL.md and registry.json files contain explicit security warnings and instructions for the AI agent that are strictly aligned with the tool's legitimate purpose, with no evidence of malicious intent or harmful prompt injection.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
Name/description request Cordys CRM access; the skill declares and uses CORDYS_ACCESS_KEY, CORDYS_SECRET_KEY and CORDYS_CRM_DOMAIN. The CLI scripts (shell & python) perform HTTP calls to the configured domain and map natural language to `cordys crm` commands — these requirements are proportionate and expected.
Instruction Scope
SKILL.md and the scripts limit actions to building CRM requests, paging, searching and optional raw API calls. The only file read is the skill .env (documented) and environment variables; there are no instructions to read unrelated system files or exfiltrate arbitrary host data.
Install Mechanism
No install spec (instruction-only) — lowest install risk. Two executable scripts are included but they are plain shell/Python and do not download or execute remote archives. Registry metadata notes dependencies (curl, python3) which match the scripts.
Credentials
Only three env vars are required (access key, secret, domain), which are appropriate for API access. The scripts load a local .env (documented). One capability to note: raw API calls accept full URLs but the code refuses non-matching domains unless the user explicitly sets CORDYS_ALLOW_UNTRUSTED=1 — this is documented in SKILL.md but enabling it would allow credentials to be sent to arbitrary domains.
Persistence & Privilege
Skill is not always-enabled and does not request elevated platform privileges. It does not modify other skills or system-wide agent settings. The skill requires user-provided credentials only for its own use.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cordys-crm
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cordys-crm 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- 增加了 environment 和 security 字段,明确列出所需环境变量和安全注意事项 - 对环境变量配置进行了细化,新增了提供方式和安全建议说明 - 文档结构整理,重点内容更加突出,更便于查阅 - 无功能变更,文档和安全声明强化
v1.0.2
- 新增 registry.json 文件,注册基础元数据。 - 完善安全警告部分,详细说明凭证、请求和隔离的安全要求。 - 技能名称由 cordys.sh-crm 标准化为 cordys-crm。 - 简化并优化 SKILL.md 说明结构,统一指令格式说明和常用场景示例。 - 明确 CLI 版本选择、默认参数补全与分页控制策略。 - 增加问题反馈信息,便于用户沟通和提建议。
v1.0.1
- Skill renamed from cordys.sh-crm to cordys-crm. - Added .env.example file to provide a template for required environment variables. - Removed sensitive .env file from version control to enhance security. - No functional logic changes; documentation and configuration improvements only.
v1.0.0
- Initial release of cordys-crm skill for robust natural language to CLI mapping. - Supports auto-identification of intents (list, search, details, follow-up, raw API), modules, and submodules. - Automatically fills in JSON parameters, filters, sorts, search modes, and pagination defaults. - Enables advanced handling for “query all/export all” with auto-pagination. - Prioritizes using the Shell CLI, with Python CLI as a fallback. - Includes clear documentation, usage scenarios, and advanced tips for both core and secondary modules. - Enhanced error handling and feedback for authentication and API response issues.
元数据
Slug cordys-crm
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

CordysCRM 是什么?

Cordys CRM CLI 指令映射技能,支持将自然语言高效转换为标准 `cordys crm` 命令,具备意图识别、模块匹配、参数补全及分页与全量查询处理能力,输出简洁稳定、无歧义。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 183 次。

如何安装 CordysCRM?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cordys-crm」即可一键安装,无需额外配置。

CordysCRM 是免费的吗?

是的,CordysCRM 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

CordysCRM 支持哪些平台?

CordysCRM 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 CordysCRM?

由 zhao(@fit2-zhao)开发并维护,当前版本 v1.0.3。

💬 留言讨论