← Back to Skills Marketplace
FBoxCLI
by
Flexem-Dev
· GitHub ↗
· v0.1.0
· MIT-0
122
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install fboxcli
Description
通过 FBox CLI 命令行管理工业物联网设备。 查看设备列表和详情,读写 PLC 监控点数据,管理报警和联系人,查询历史数据,管理设备分组和统一写组。 当用户提到 fboxcli、FBox 命令行、CLI 脚本、自动化运维、批量操作设备时使用此技能。
README (SKILL.md)
FBox CLI 技能
通过 fboxcli 命令行工具管理 FBox 工业物联网设备。安装和配置详见 README.md。
核心规则
JSON 输出
- 始终使用
--json全局标志,确保输出为结构化 JSON,便于解析 - 不带
--json时输出人类可读表格,仅在用户明确要求表格展示时省略--json
认证前置
- 执行业务命令前,先通过
fboxcli auth token --json检查是否已登录 - 如果未登录或 Token 过期,提示用户执行
fboxcli auth login登录 - 禁止在命令中自动填入用户名、密码或密钥,由用户自行输入
ID 获取流程
- 大部分命令需要
BOX_ID(数字 ID),不是BOX_NO(序列号) - 必须先通过
fboxcli box list --json获取设备列表,从返回的 JSON 中提取id字段 - 禁止猜测或编造 ID,所有 ID 必须来自实际命令返回
写操作安全
- 以下命令为写操作,必须获得用户明确确认后才能执行:
dmon set-value— 写入监控点值control write— 向统一写组写入值alarm confirm— 确认报警
- 以下命令为删除操作,必须获得用户明确确认后才能执行:
box delete— 删除设备group delete— 删除分组dmon delete— 删除监控点history delete— 删除历史记录条目alarm delete/alarm delete-group— 删除报警条目/分组contact delete— 删除联系人control delete— 删除统一写组
- 写入前先读取当前值展示给用户对比
时间处理
- 历史数据和报警历史查询的
--begin和--end参数为毫秒级 Unix 时间戳 - 展示给用户时转为北京时间(UTC+8),仅精确到秒
- 可通过
date +%s000等方式计算时间戳,或让用户提供
数据展示
bool值展示为"是"或"否"- 历史数据和报警记录默认以表格形式展示
- 展示列表数据时提取关键字段,避免原始 JSON 直接输出
典型工作流
设备状态查看
fboxcli auth token --json → 确认已登录
fboxcli box list --json → 获取设备列表和 ID
fboxcli box get \x3CBOX_NO> --json → 按序列号查设备
fboxcli box info \x3CBOX_ID> --json → 查看设备详细配置
监控点读写
fboxcli box list --json → 获取 BOX_ID
fboxcli dmon list \x3CBOX_ID> --json → 列出监控点和 ID
fboxcli dmon get-value \x3CBOX_ID> --ids 1001,1002 --json → 读取实时值
→ 用户确认后
fboxcli dmon set-value \x3CBOX_ID> --id 1001 --value 100 → 写入值
报警处理
fboxcli alarm list \x3CBOX_ID> --json → 查看报警条目
fboxcli alarm history \x3CBOX_ID> --begin \x3CTS> --end \x3CTS> --json → 报警历史
→ 用户确认后
fboxcli alarm confirm \x3CUID> → 确认报警
历史数据查询
fboxcli history list \x3CBOX_ID> --json → 查看历史记录条目和通道 ID
fboxcli history query --ids \x3CCHANNEL_IDS> --begin \x3CTS> --end \x3CTS> --json
→ 以表格形式展示,时间转北京时间
联系人与报警分组管理
fboxcli contact list --json → 查看联系人列表
fboxcli contact add "张三" --phone 13800138000 --notice-type 1 → 添加联系人
fboxcli alarm groups \x3CBOX_ID> --json → 查看报警分组
fboxcli alarm add-group \x3CBOX_ID> "紧急报警" --contacts \x3CUIDS> → 添加报警分组
Usage Guidance
This skill appears to be a legitimate CLI wrapper for FBox device management, but the registry metadata fails to declare the credentials and binary the SKILL.md says are required. Before installing: (1) verify the upstream package/repo (npm @flexem/fboxcli and the GitHub releases) to ensure you trust the binary; (2) confirm which credentials are actually required and how they will be provided — do not store client_secret/passwords in plaintext or share them with untrusted agents; (3) be aware the skill can read device network/config info and perform destructive actions (writes/deletes) — use least-privilege credentials and test in a sandbox first; (4) ask the publisher to update registry metadata to declare required env vars/primary credential and to document any network endpoints and token storage behavior. If you cannot validate the upstream package/repo or the credential handling, treat this skill as risky and avoid installing it in production.
Capability Analysis
Type: OpenClaw Skill
Name: fboxcli
Version: 0.1.0
The fboxcli skill bundle provides a well-structured interface for an AI agent to manage industrial IoT devices via a legitimate CLI tool. It includes explicit safety instructions in SKILL.md, such as requiring user confirmation for all write and delete operations and forbidding the automated handling of sensitive credentials. No evidence of data exfiltration, malicious execution, or prompt injection was found; the bundle focuses entirely on the stated purpose of device management and monitoring.
Capability Assessment
Purpose & Capability
Name and description match the documented runtime instructions (managing FBox IoT devices). SKILL.md and README explicitly require the fboxcli binary and FBox platform credentials (client_id/secret or user account), which are appropriate for this purpose — however the registry metadata claims no required env vars or primary credential, creating an inconsistency between what the skill says it needs and what the registry declares.
Instruction Scope
SKILL.md is prescriptive and scoped: it tells the agent to use the fboxcli binary, always request --json, check auth token before operations, avoid auto-inserting credentials, and require explicit user confirmation for all write/delete operations. It does not instruct the agent to read arbitrary files or exfiltrate data to unknown endpoints. It does include actions that will expose device network/config details (IP, DNS, firmware) and perform high-impact write/delete ops if confirmed — which is expected for device management.
Install Mechanism
This is an instruction-only skill (no install spec in registry), so nothing will be written by the skill itself. INSTALL.md recommends installing the fboxcli binary via npm (@flexem/fboxcli), GitHub releases, or building from source — all are standard mechanisms. Verify the npm package and GitHub repo authenticity before installing the binary.
Credentials
SKILL.md and README clearly require platform credentials (OAuth client_id/client_secret or user credentials) and the fboxcli binary; the registry metadata does not declare any required environment variables or primary credential. That mismatch is concerning because sensitive secrets are needed in practice but not declared for review or gating. Also, the operations permitted by the skill (reading IP/DNS, writing control points, deleting devices/history/contacts) are high-impact and justify strict credential handling and least-privilege credentials.
Persistence & Privilege
Skill is not always-enabled (always:false) and is user-invocable; it does not request special system-wide persistence or modify other skills. Autonomous invocation is allowed by default but is not combined with other elevated privileges here.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install fboxcli - After installation, invoke the skill by name or use
/fboxcli - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release of fboxcli skill for managing industrial IoT devices via the FBox CLI.
- Supports device management, viewing device lists and details, and reading/writing PLC monitoring points.
- Enables alarm management, historical data queries, device grouping, and unified write group operations.
- Ensures safe operations through user confirmation for all write and delete commands.
- Requires `--json` output for structured results; table output available on user request.
- Handles authentication and ID retrieval securely (no credential autofill, IDs must be fetched from commands).
- Time handling for queries is in millisecond Unix timestamps; output shown in Beijing Time.
Metadata
Frequently Asked Questions
What is FBoxCLI?
通过 FBox CLI 命令行管理工业物联网设备。 查看设备列表和详情,读写 PLC 监控点数据,管理报警和联系人,查询历史数据,管理设备分组和统一写组。 当用户提到 fboxcli、FBox 命令行、CLI 脚本、自动化运维、批量操作设备时使用此技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 122 downloads so far.
How do I install FBoxCLI?
Run "/install fboxcli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is FBoxCLI free?
Yes, FBoxCLI is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does FBoxCLI support?
FBoxCLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, win32).
Who created FBoxCLI?
It is built and maintained by Flexem-Dev (@flexemdev); the current version is v0.1.0.
More Skills