← 返回 Skills 市场
370
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install lcsc
功能描述
通过 camoufox-cli 浏览器自动化操作立创商城,完成元器件搜索、查看详情、加入购物车、BOM 配单、PCB/SMT 下单等操作。Use when 用户需要搜索立创商城元器件、查看商品详情、加入购物车、BOM 配单、PCB/SMT 下单、查看订单等立创商城操作。
使用说明 (SKILL.md)
立创商城浏览器自动化助手
适用场景
当用户的任务涉及以下立创商城相关操作时,必须通过 camoufox-cli 操作立创商城页面:
- 搜索元器件(按型号、关键词、品牌)
- 查看商品详情(参数、价格、库存、封装、数据手册)
- 加入购物车
- 查看/管理购物车
- BOM 配单
- PCB/SMT 下单
- 查看订单状态、物流信息
- 查看优惠券、PLUS 会员权益
- 任何涉及立创商城的页面操作
如何调用
camoufox-cli 路径: /opt/homebrew/bin/camoufox-cli
必须使用上面的完整路径调用 camoufox-cli(它可能不在默认 PATH 中)。
# 打开立创商城首页
/opt/homebrew/bin/camoufox-cli open "https://www.szlcsc.com/"
# 获取当前页面 URL 和标题
/opt/homebrew/bin/camoufox-cli url
/opt/homebrew/bin/camoufox-cli title
# 获取页面交互元素(aria 树)
/opt/homebrew/bin/camoufox-cli snapshot -i
# 点击元素(使用 ref)
/opt/homebrew/bin/camoufox-cli click @e123
# 填写输入框(先清空再输入)
/opt/homebrew/bin/camoufox-cli fill @e456 "NE555"
# 输入文本(不清空)
/opt/homebrew/bin/camoufox-cli type @e456 "NE555"
# 按下按键(如 Enter)
/opt/homebrew/bin/camoufox-cli press Enter
# 滚动页面
/opt/homebrew/bin/camoufox-cli scroll down 500
# 等待元素加载或 URL 变化
/opt/homebrew/bin/camoufox-cli wait @e123
/opt/homebrew/bin/camoufox-cli wait --url https://www.szlcsc.com/search?q=NE555
# 获取元素文本
/opt/homebrew/bin/camoufox-cli text @e123
# 执行 JavaScript
/opt/homebrew/bin/camoufox-cli eval "document.title"
常用工作流程
1. 搜索元器件
# 打开立创商城首页
/opt/homebrew/bin/camoufox-cli open "https://www.szlcsc.com/"
# 等待搜索框加载
/opt/homebrew/bin/camoufox-cli wait @e123
# 填写搜索框并按回车搜索
/opt/homebrew/bin/camoufox-cli fill @e123 "NE555"
/opt/homebrew/bin/camoufox-cli press Enter
# 等待搜索结果加载
/opt/homebrew/bin/camoufox-cli wait --url https://www.szlcsc.com/search?q=NE555
# 获取搜索结果页面元素
/opt/homebrew/bin/camoufox-cli snapshot -i
2. 查看商品详情
# 点击商品链接
/opt/homebrew/bin/camoufox-cli click @e456
# 等待详情页加载
/opt/homebrew/bin/camoufox-cli wait --url https://item.szlcsc.com/
# 获取详情页文本或元素
/opt/homebrew/bin/camoufox-cli text @e789
/opt/homebrew/bin/camoufox-cli snapshot -i
3. 加入购物车
# 在商品详情页选择数量、规格
/opt/homebrew/bin/camoufox-cli fill @e123 "10"
# 点击“加入购物车”按钮
/opt/homebrew/bin/camoufox-cli click @e456
# 等待操作完成
/opt/homebrew/bin/camoufox-cli wait 2000
4. BOM 配单
# 打开 BOM 配单页面
/opt/homebrew/bin/camoufox-cli open "https://bom.szlcsc.com/bom.html"
# 等待页面加载
/opt/homebrew/bin/camoufox-cli wait @e123
# 上传 BOM 表或填写型号
# ...(根据页面元素操作)
5. PCB/SMT 下单
# 打开 PCB 下单页面
/opt/homebrew/bin/camoufox-cli open "https://www.jlc.com/newOrder/#/pcb/pcbPlaceOrder"
# 等待页面加载
/opt/homebrew/bin/camoufox-cli wait @e123
# 填写参数、上传文件
# ...(根据页面元素操作)
camoufox-cli 常用命令速查
| 命令 | 用途 | 关键参数 |
|---|---|---|
| open \x3Curl> | 导航到 URL | url |
| back | 返回上一页 | - |
| forward | 前进到下一页 | - |
| reload | 刷新页面 | - |
| url | 打印当前 URL | - |
| title | 打印页面标题 | - |
| snapshot [-i] [-s sel] | 获取页面元素树 | -i: 交互模式, -s: 限定范围 |
| click @ref | 点击元素 | ref |
| fill @ref "text" | 清空输入框并输入文本 | ref, text |
| type @ref "text" | 不清空直接输入文本 | ref, text |
| select @ref "option" | 选择下拉选项 | ref, option |
| check @ref | 切换复选框 | ref |
| hover @ref | 悬停在元素上 | ref |
| press \x3Ckey> | 按下按键 | key (如 Enter, Control+a) |
| text @ref|selector | 获取元素文本内容 | ref 或 selector |
| eval "js expression" | 执行 JavaScript | js 表达式 |
| screenshot [--full] [f] | 截图到文件或 stdout | --full: 全屏, f: 文件路径 |
| pdf \x3Cfile> | 保存页面为 PDF | 文件路径 |
| scroll \x3Cdir> [px] | 滚动页面 | dir: up/down, px: 像素数(默认 500) |
| wait \x3Cms|@ref|--url p> | 等待时间/元素/URL | ms: 毫秒数, @ref: 元素, --url: URL |
| tabs | 列出打开的标签页 | - |
| switch \x3Cindex> | 切换标签页 | 标签页索引 |
| close-tab | 关闭当前标签页 | - |
| sessions | 列出活动会话 | - |
| cookies [import|export] | 管理 cookies | import/export |
注意事项
- 点击或导航后需等待页面加载(使用 wait 命令),再读取新内容
- 使用 snapshot -i 获取交互元素树,找到合适的 ref 再操作
- fill 命令会先清空输入框再输入,适合搜索框等场景
- type 命令不会清空输入框,适合追加内容
- 优先使用 camoufox-cli 的专用命令(snapshot, click, fill 等),eval 作为补充
安全使用建议
This skill is plausible for automating LCSC but has two things to check before installing: (1) ensure the camoufox-cli binary it calls is legitimate and installed at the exact path /opt/homebrew/bin/camoufox-cli (the registry metadata failed to declare this dependency), and (2) understand that the documented commands (eval, cookies import/export, file upload, screenshots) can access or capture sensitive data from web sessions and local files. Only use this with a trusted camoufox-cli binary, avoid running it while logged into sensitive accounts, and test in an isolated account or environment. If you need more assurance, ask the publisher for the camoufox-cli origin and why the dependency was not declared in the skill metadata.
功能分析
Type: OpenClaw Skill
Name: lcsc
Version: 1.0.0
The skill bundle provides instructions for an AI agent to automate tasks on the LCSC (szlcsc.com) and JLC (jlc.com) electronics platforms using the `camoufox-cli` browser automation tool. It includes standard automation workflows for searching components, managing shopping carts, and processing BOM/PCB orders. While the tool possesses high-privilege capabilities such as JavaScript execution (`eval`) and cookie management, these are standard for browser automation and are strictly aligned with the stated purpose of the skill without any evidence of malicious intent or data exfiltration.
能力评估
Purpose & Capability
The skill's stated purpose (automating LCSC via camoufox-cli) is coherent, but the package metadata declares no required binaries while SKILL.md mandates calling /opt/homebrew/bin/camoufox-cli. That is an internal inconsistency: the skill will not work unless that binary exists, yet the registry metadata did not declare it as a dependency. The absolute path implies macOS/homebrew and may not exist on target systems.
Instruction Scope
Instructions cover realistic site actions (open, click, fill, upload) but also expose broad capabilities: eval (arbitrary JS execution in page context), cookies import/export, screenshot/pdf (capture page contents), and file upload. These are useful for automation but also capable of reading or transmitting sensitive page content, session cookies, or local files if misused. The SKILL.md gives no constraints or safeguards on using these powerful commands.
Install Mechanism
This is an instruction-only skill with no install spec, so nothing is written to disk by the skill itself. That is lower risk. The caveat is the skill depends on an external binary (/opt/homebrew/bin/camoufox-cli) which the SKILL.md expects to exist, but that dependency was not declared in the registry metadata.
Credentials
No environment variables or credentials are requested by the skill, which is proportionate. However, browser automation inherently relies on browser sessions/cookies and user-provided files (for PCB/SMT uploads). The SKILL.md references cookie import/export and file upload operations — these imply access to session credentials and local files even though no env vars were declared.
Persistence & Privilege
The skill does not request always-on presence and does not declare modifications to other skills or system-wide settings. It appears to operate only when invoked.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lcsc - 安装完成后,直接呼叫该 Skill 的名称或使用
/lcsc触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
初始版本,支持元器件搜索、详情查看、加购物车、BOM配单、PCB/SMT下单等全流程立创商城操作
元数据
常见问题
立创商城自动化技能 是什么?
通过 camoufox-cli 浏览器自动化操作立创商城,完成元器件搜索、查看详情、加入购物车、BOM 配单、PCB/SMT 下单等操作。Use when 用户需要搜索立创商城元器件、查看商品详情、加入购物车、BOM 配单、PCB/SMT 下单、查看订单等立创商城操作。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 370 次。
如何安装 立创商城自动化技能?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lcsc」即可一键安装,无需额外配置。
立创商城自动化技能 是免费的吗?
是的,立创商城自动化技能 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
立创商城自动化技能 支持哪些平台?
立创商城自动化技能 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 立创商城自动化技能?
由 SinKy-Yan(@sinky-yan)开发并维护,当前版本 v1.0.0。
推荐 Skills