shopping-admin-browser-automation
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "shopping-admin-browser-automation":https://skillpi.com/zh/skills/deepskill-0ace7ff0e23641d21873bcf589548293e649b712c7b7fece68dae27086b68262。安装前核对上游来源和版本:https://github.com/MassLab-SII/open-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
提供用于 Magento 管理面板自动化的工具和技术,包含管理员登录、客户管理、搜索词分析及其他常见后台操作场景。适用于需要在电商管理后台执行复杂操作的任务。
介绍来源: third_party · MassLab-SII · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: shopping-admin-browser-automation
description: This skill provides tools and techniques for Magento Admin panel automation. Includes admin login, customer management, search term analysis, and other common admin scenarios. Suitable for tasks requiring complex operations on e-commerce admin backends.Shopping Admin Browser Automation Skill
This skill is based on Playwright MCP tools, providing automation capabilities for Magento Admin panel.
Core Concepts
In admin panel automation, we distinguish two types of operations:
- Skill: Meaningful combinations of multiple tool calls, encapsulated as independent Python scripts
- Basic Tools: Single function calls used for atomic operations.
I. Skills
1. Admin Login
Use Cases:
- Login to Magento Admin panel at the start of admin tasks
- Authenticate with admin credentials
Prerequisites:
- Get ref values for form fields
Usage:
# Usage:
# python admin_login.py <admin_url> <username> <password> <username_ref> <password_ref> <signin_ref>
# Example:
python admin_login.py http://localhost:7780/admin admin admin1234 e15 e20 e23
2. Create Customer
Use Cases:
- Create a new customer after clicking "Add New Customer" button
- Add customers to specific customer groups
Usage:
# Usage:
# python create_customer.py <first_name> <last_name> <email> <group> <group_ref> <fname_ref> <lname_ref> <email_ref> <save_btn_ref>
# Example:
python create_customer.py "Isabella" "Romano" "isabella.romano@premium.eu" "Premium Europe" e92 e112 e124 e136 e61
II. Basic Tools (When to Use Single Functions)
Below are the basic tool functions and their use cases. These are atomic operations for flexible combination.
Note: Code should be written without line breaks.
How to Run
# Standard format (browser persists across calls)
python run_browser_ops.py -c "await browser.navigate('http://localhost:7780/admin')"
Navigation Tools
navigate(url: str)
Use Cases:
- Open admin panel URL
- Navigate to specific admin pages
Example:
python run_browser_ops.py -c "await browser.navigate('http://localhost:7780/admin')"
navigate_back()
Use Cases:
- Go back to previous page
- Return to list page after viewing details
Example:
python run_browser_ops.py -c "await browser.navigate_back()"
Interaction Tools
click(ref: str, element: Optional[str] = None)
Use Cases (very broad):
- Click navigation menu items (Customers, Marketing, Reports, etc.)
- Click submenu links (All Customers, Customer Groups, Search Terms, etc.)
- Click action buttons (Add New, Save, Search, Reset Filter)
- Click table rows for details
Example:
# Click Customers menu
python run_browser_ops.py -c "await browser.click(ref='e17', element='Customers menu')"
# Click All Customers link
python run_browser_ops.py -c "await browser.click(ref='e182', element='All Customers link')"
type_text(ref: str, text: str, element: Optional[str] = None)
Use Cases:
- Enter text in form fields
- Fill filter inputs
- Enter search terms
Example:
# Enter username
python run_browser_ops.py -c "await browser.type_text(ref='e15', text='admin', element='Username textbox')"
# Enter filter value
python run_browser_ops.py -c "await browser.type_text(ref='e109', text='tank', element='Search Query filter input')"
select_option(ref: str, element_desc: str, value: str)
Use Cases:
- Select dropdown values (Customer Group, Status filter, Store View)
- Select options in forms
Example:
# Select customer group
python run_browser_ops.py -c "await browser.select_option(ref='e92', element_desc='Group select', value='Premium Europe')"
# Select status filter
python run_browser_ops.py -c "await browser.select_option(ref='e124', element_desc='Status filter combobox', value='Subscribed')"
press_key(key: str)
Use Cases:
- Submit forms (press Enter)
- Close dialogs (press Escape)
Example:
python run_browser_ops.py -c "await browser.press_key('Enter')"
Page State Tools
snapshot()
Use Cases (very important):
- When unsure about current page state
- Need to view complete page content to decide next action
- Verify if operation was successful
- Find ref references for specific elements
Example:
python run_browser_ops.py -c "await browser.snapshot()"
Best Practices:
- Use snapshot before and after critical operations to confirm state
- Use snapshot after navigation to find element refs
- Use snapshot to verify data in tables and grids
Tab Management
list_tabs()
Use Cases:
- View all currently open tabs
- Get tab ID
tab_new(url: Optional[str] = None)
Use Cases:
- Open admin section in new tab
- Compare data across multiple pages
Example:
python run_browser_ops.py -c "await browser.tab_new(url='http://localhost:7780/admin/customer/index/')"
III. Best Practice Recommendations
Make Good Use of snapshot()
Use snapshot() in the following situations:
- Just entered a new page, unsure about page structure
- After executing an operation, need to verify results
- Need to find ref references for elements
- Unsure about current state of filters or grids
Usage Principles
- Start with admin_login.py: Most admin tasks require authentication first
- Use snapshot() liberally: Admin pages have complex structures, verify state
- Use basic tools for dynamic refs: Element refs may change, use snapshot to find current refs
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Magento 管理面板的完整自动化解决方案
- 覆盖电商后台常见高频操作场景(登录、客户管理、搜索分析)
- 显著提升电商运营人员的工作效率
亮点
- 触发描述精准完整,明确限定为 Magento Admin panel automation
- 涵盖多种具体使用场景,边界清晰
- 中英文描述一致且详细
待提升项
-
缺少明确的 When to Use 章节标题 原报告严重程度:轻微
文档中提到了使用场景但未使用标准章节标题格式
改进建议:建议添加明确的 'When to Use' 章节标题以提升规范性
亮点
- 文档结构层次清晰,分为 Skills 和 Basic Tools 两大部分
- 每个工具都有详细的 Use Cases、Usage 示例和参数说明
- 提供了最佳实践建议和端到端使用示例
亮点
- 基于成熟的 Playwright MCP tools,工具来源明确可靠
- 提供了详细的参数说明和完整的命令行示例
- 包含了状态验证机制(snapshot)和错误处理建议
- 不可逆操作有明确的参数要求和确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 25 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- localhost
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。