crm-device-mgmt
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "crm-device-mgmt" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3d4540541b0c621478f9bca94c45ebdfd1b8c70ccbec2daa09c8b0e9ea10153b. Verify the upstream source and version against https://skillhub.cn/skills/org-r4wuabfo/crm-device-mgmt before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
The device management module of 35CRM, covering two functions: device profiles and device BOM, used to manage device basic information and device bill of materials.
Introduction source: third_party · org-r4wuabfo · 1.0.1 Reference
SkillPi interpretation
- Tasks
- When not supported, use `AskUserQuestion` Tools** One-time collection** 2 Parameters:
- Limits and differences
- ** Chinese coding**: all requests containing Chinese must be executed in Python script, not in Bash direct curl (for details, base.md) **multipart request** `curl --data-binary @-` Sended through subprocess ** Date format**: submission must be made `Y-m-d H:i:s` (including time part), if `2026-06-05 00:00:00` ** Responds to data position**: used for decomposition `resp.get('rows') or resp.get('data') or []` **New operation**: use common form process ( `scripts/crm_form_submit.py` : `view/form → 解析字段 → insert`
- Testing
- Not tested
Browse files
Frontmatter
name: crm-device-mgmt
version: "1.1.0"
description: "35CRM 设备管理模块,涵盖设备档案、设备BOM两大功能。"
agent_created: trueCRM 设备管理
参考文档索引
| 分类 | 文件 | 说明 |
|---|---|---|
| 认证 | authentication.md | Token 认证流程、请求规范 |
| 基础 | base.md | 工具函数、编码规范 |
| 枚举 | enums.md | 时间常量、dbType、searchCondition 通用结构 |
| 设备档案 | device_archive.md | 查询设备档案列表、新增设备档案 |
| 设备BOM | device_bom.md | 查询设备BOM列表、新增设备BOM |
第一步:收集凭据(每次对话开始时)
尚未获取凭据时,使用 AskUserQuestion 工具一次性收集 2 个参数:
AskUserQuestion({
questions: [
{ header: "平台地址", question: "CRM 平台的 base_url 是什么?",
options: [{ label: "在下方输入平台地址", description: "例如 https://crm.example.com" }] },
{ header: "Token", question: "API Token (PAT) 是什么?",
options: [{ label: "在下方输入 Token", description: "在下方粘贴 Token 字符串" }] },
]
})
收集到凭据后,调用 scripts/crm_login.py 验证 Token 有效性:
python scripts/crm_login.py \n --base-url <base_url> \n --token <token>
验证成功输出 JSON:{"success": true, "token": "...", "base_url": "..."}
凭据在当前会话中复用,不要重复询问。
常见操作速查
| 操作 | 接口 | 参考文档 |
|---|---|---|
| 查询设备档案列表 | POST /deviceArchive/list |
device_archive.md |
| 新增设备档案 | viewId=DeviceArchiveAdd → POST /deviceArchive/insert |
device_archive.md |
| 查询设备BOM列表 | POST /deviceBom/list |
device_bom.md |
| 新增设备BOM | viewId=DeviceBomAdd → POST /deviceBom/insert |
device_bom.md |
脚本工具
crm_login.py — 验证 Token
python scripts/crm_login.py \n --base-url https://xxx \n --token xxx
输出:{"success": true, "token": "...", "base_url": "..."}
crm_query.py — 通用查询(使用 Token)
python scripts/crm_query.py \
--base-url https://xxx \
--token xxx \
--module-id device_archive \
--limit 25
crm_form_submit.py — 通用表单提交(使用 Token)
# 仅查看模板
python scripts/crm_form_submit.py \
--base-url https://xxx \
--token xxx \
--view-id DeviceArchiveAdd \
--template-only
# 提交新增
python scripts/crm_form_submit.py \
--base-url https://xxx \
--token xxx \
--view-id DeviceArchiveAdd \
--data '{"name":"测试设备"}'
关键注意事项
- 中文编码:所有含中文的请求必须通过 Python 脚本执行,不能用 Bash 直接 curl(详见 base.md)
- multipart 请求:使用
curl --data-binary @-通过 subprocess 发送 - 日期格式:提交格式必须为
Y-m-d H:i:s(含时间部分),如2026-06-05 00:00:00 - 响应数据位置:解析时用
resp.get('rows') or resp.get('data') or [] - 新增操作:使用通用表单流程(
scripts/crm_form_submit.py):view/form → 解析字段 → insert
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向企业用户的设备管理模块,解决明确的设备档案与BOM管理需求
- 功能实用性强,属于特定业务场景下的专业工具
Areas to improve
-
触发词不全 Reported severity: Minor
description 未细化触发示例,用户可能不清楚如何触发
Recommendation: 补充具体的触发词示例和变体,如'查询设备档案'、'新增设备BOM'等
Highlights
- 结构清晰,步骤划分明确,包含凭据收集、常见操作、脚本工具等完整流程
- 提供参考文档索引和端到端脚本调用示例,frontmatter完整
Areas to improve
-
引用文件缺失风险 Reported severity: Major
scripts/crm_login.py等脚本文件未确认是否在ZIP包中,可能导致执行失败
Recommendation: 确保所有引用的脚本文件(scripts/crm_login.py、scripts/crm_query.py、scripts/crm_form_submit.py)包含在ZIP包中
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- crm.example.com
- xxx
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.