← Back to Skills Marketplace
395
Downloads
0
Stars
2
Active Installs
3
Versions
Install in OpenClaw
/install iccn-erp
Description
【零壹问界IC ERP外贸管理系统】,提供查询数据的技能。当用户提到查询订单、采购单、需求单、入库单、出库单、客户、供应商、库存、现货等任何ERP业务数据时,必须使用此技能。触发词包括但不限于:"查订单"、"采购单详情"、"需求单"、"入库记录"、"出库情况"、"客户信息"、"供应商"、"现货库存"、"有没有货"...
README (SKILL.md)
ERP 系统查询技能
统一调用规范
所有查询统一使用以下方式:
- 方法:POST
- Content-Type:application/json
- URL 格式:
{ERP_API_BASE_URL}/v1/{table}/lists - Token:从环境变量
ERP_API_TOKEN读取
const ERP_TOKEN = process.env.ERP_API_TOKEN;
const ERP_BASE_URL = process.env.ERP_API_BASE_URL;
const erpQuery = async (table, params = {}) => {
const url = `${ERP_BASE_URL}/v1/${table}/lists`;
const body = {
page: 1,
pagenum: 50,
like: {},
where: {},
order: {},
...params
};
const response = await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'authorization': `Bearer ${ERP_TOKEN}`
},
body: JSON.stringify(body)
});
return await response.json();
};
表格映射
| 用户说的 | table 名称 | 说明 |
|---|---|---|
| 订单、销售单 | order |
销售订单 |
| 采购单、采购订单 | purchase |
采购单 |
| 需求单、需求 | demand |
需求单 |
| 入库单、入库记录 | purchase_in |
采购入库单 |
| 出库单、出库记录 | order_out |
销售出库单 |
| 客户、客户信息 | customer |
客户档案 |
| 供应商、供应商信息 | supplier |
供应商档案 |
| 现货、库存、有没有货 | products_inventory |
现货库存 |
查询参数说明
| 参数 | 类型 | 说明 |
|---|---|---|
| page | number | 页码,默认 1 |
| pagenum | number | 每页条数,默认 50 |
| like | object | 模糊搜索,如 {"model":"ABC"} |
| where | object | 精确过滤,如 {"status":"1"} |
| order | object | 排序,如 {"created_at":"desc"} |
调用示例
const data = await erpQuery('order', { where: { order_no: 'SO20240001' } });
const data = await erpQuery('products_inventory', { like: { model: 'ABS10' } });
const data = await erpQuery('customer', { like: { name: 'ABC公司' } });
const data = await erpQuery('supplier', { like: { name: '某供应商' } });
const data = await erpQuery('purchase', { where: { purchase_no: 'PO20240001' } });
const data = await erpQuery('purchase_in', { where: { purchase_no: 'PO20240001' } });
const data = await erpQuery('order_out', { where: { order_no: 'SO20240001' } });
const data = await erpQuery('demand', { like: { model: 'ABC123' } });
调用流程
- 识别意图:对照"表格映射"确定
table - 提取参数:有单号用
where精确匹配,有关键词用like模糊搜索,不足则主动询问 - 调用接口:使用
erpQuery(table, params)发起请求 - 展示结果:以表格形式展示,标注总条数
- 报错处理:401 提示 Token 过期;空结果提示检查参数
注意事项
- Token 和 API 地址通过环境变量注入,在
openclaw.json的skills.entries.iccn-erp.env中配置 - 更换 Token 只需修改
openclaw.json,无需改动此文件 - 模糊搜索用
like,精确匹配用where,可同时使用
Usage Guidance
This skill generally does what it says: it reads an ERP_API_TOKEN and ERP_API_BASE_URL and issues POST queries to the ERP. Before installing, verify the ERP_API_BASE_URL you set is the legitimate ERP endpoint and restrict the ERP_API_TOKEN with least privilege (read-only if possible). Inspect the included references/order-detail-ui.md: it fetches from https://dev.iccn.cc — confirm whether that host is trusted; if you don't trust it, do not reuse that example code. Ensure network policies or allowlists prevent the skill from sending data to unexpected external hosts. Finally, consider rotating the token after testing and monitoring its use (logs, egress) to detect unintended requests.
Capability Analysis
Type: OpenClaw Skill
Name: iccn-erp
Version: 0.0.3
The skill bundle provides a standard integration for querying an ERP system (ICCN ERP). It correctly uses environment variables (ERP_API_TOKEN and ERP_API_BASE_URL) for authentication and defines clear mapping logic for various ERP tables like orders, inventory, and customers. The included React reference in order-detail-ui.md points to a domain (dev.iccn.cc) consistent with the skill's name, and there is no evidence of data exfiltration, credential theft, or malicious command execution.
Capability Assessment
Purpose & Capability
Name/description (ERP queries) align with the declared env vars (ERP_API_TOKEN, ERP_API_BASE_URL) and the SKILL.md instructions which show how to call the ERP API. However, an included reference UI file contains a hard-coded fetch to https://dev.iccn.cc which is not mentioned anywhere else — an unexpected external endpoint.
Instruction Scope
SKILL.md runtime instructions are narrowly scoped to building POST requests to {ERP_API_BASE_URL}/v1/{table}/lists and explicitly read only ERP_API_TOKEN and ERP_API_BASE_URL. The instructions do not direct reading other system files or unrelated env vars.
Install Mechanism
Instruction-only skill with no install spec and no code files executed by the platform, so there is no install-time code download or archive extraction risk.
Credentials
The two requested environment variables (ERP_API_TOKEN, ERP_API_BASE_URL) are reasonable for the stated purpose. But the reference React file contains a hard-coded external URL (dev.iccn.cc) that would receive order numbers if that example is reused — this endpoint is not declared among required envs and could lead to unexpected data exfiltration if mistakenly used.
Persistence & Privilege
The skill does not request persistent privileges (always:false) and does not modify other skills or system settings. It relies on environment configuration in openclaw.json, which is normal.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install iccn-erp - After installation, invoke the skill by name or use
/iccn-erp - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.0.3
- 技能描述中增加了“零壹问界IC ERP外贸管理系统”品牌说明,更加明确系统来源。
- 其他文档内容和功能保持一致,无代码或接口变更。
v0.0.2
- Replaced hardcoded API base URL and token with environment variables (`ERP_API_TOKEN`, `ERP_API_BASE_URL`) for better security and flexibility
- Updated API request examples to use environment variables
- Simplified and clarified usage instructions and error handling
- Added metadata section describing environment variable requirements
- Now, configuration for token and URL is managed in `openclaw.json`, removing the need for code changes when updating credentials
v0.0.1
Initial release of iccn-erp skill.
- Provides unified query interface for ERP system data including orders, purchase orders, inventory, customers, suppliers, etc.
- Supports keyword-triggered automation for a wide range of ERP business data queries.
- Standardizes API call format and parameter mapping for multiple ERP tables.
- Includes examples and recommended best practices for querying and result presentation.
- Handles error responses and token expiration guidance.
Metadata
Frequently Asked Questions
What is iccn-erp?
【零壹问界IC ERP外贸管理系统】,提供查询数据的技能。当用户提到查询订单、采购单、需求单、入库单、出库单、客户、供应商、库存、现货等任何ERP业务数据时,必须使用此技能。触发词包括但不限于:"查订单"、"采购单详情"、"需求单"、"入库记录"、"出库情况"、"客户信息"、"供应商"、"现货库存"、"有没有货"... It is an AI Agent Skill for Claude Code / OpenClaw, with 395 downloads so far.
How do I install iccn-erp?
Run "/install iccn-erp" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is iccn-erp free?
Yes, iccn-erp is completely free (open-source). You can download, install and use it at no cost.
Which platforms does iccn-erp support?
iccn-erp is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created iccn-erp?
It is built and maintained by jexm (@jexm); the current version is v0.0.3.
More Skills