用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/loonghao/auroraview --skill gallery-mcp-tester命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Convert an existing Qt/PySide/PyQt desktop project (QWebEngineView-based UI, QMainWindow browsers, Qt DCC tools) into an AuroraView project so it ships a lighter, Rust-powered WebView and gets full MCP automation for free. Use this skill whenever the user asks to "migrate", "convert", "port" a Qt/PySide/PyQt app to AuroraView, or when they want MCP-controllable Qt tooling.
Integrates ProofShot visual proof recording with the self-improvement workflow. Use when: (1) E2E tests fail or detect visual regressions, (2) Agent needs to verify UI changes it made, (3) Running self-iteration loops (build → test → fix → retest), (4) Preparing PR proof artifacts for review.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.
基于 SOC 职业分类
正在显示 SKILL.md
| name | gallery-mcp-tester |
| description | 通过 MCP 工具测试 AuroraView Python API,发现设计缺陷和代码味道。 迭代式测试:启动服务 → 调用工具 → 发现问题 → 修复 → 重新测试。 |
通过 MCP 工具测试 AuroraView Python API,发现设计缺陷和代码味道。
┌─────────────────────────────────────────────────────────────┐
│ 1. 用户手动启动: vx just gallery-mcp 27168 │
│ 2. AI 调用 auroraview-gallery MCP 工具进行测试 │
│ 3. 发现问题 → 在当前分支修复 │
│ 4. 重复测试直到所有问题解决 │
└─────────────────────────────────────────────────────────────┘
在终端中运行:
vx just gallery-mcp 27168
等待看到以下输出表示服务就绪:
[Python] MCP server listening on port 27168
| 工具名 | 描述 | 参数 |
|---|---|---|
api.get_samples | 获取所有示例列表 | 无 |
api.get_categories | 获取分类信息 | 无 |
api.get_mcp_info | 获取 MCP 服务器信息 | 无 |
api.get_source | 获取示例源代码 | sample_id: str |
api.run_sample | 运行示例 | sample_id, show_console?, use_channel? |
api.prepare_run_sample | 准备运行示例 | sample_id, show_console?, use_channel? |
api.kill_process | 终止进程 | pid: int |
api.list_processes | 列出运行中的进程 | 无 |
api.send_to_process | 发送数据到进程 | pid, data |
api.send_json_to_process | 发送 JSON 到进程 | pid, data |
api.launch_example_as_child | 作为子窗口启动示例 | sample_id, extra_env? |
api.close_child | 关闭子窗口 | child_id |
api.get_children | 获取所有子窗口 | 无 |
api.send_to_child | 发送事件到子窗口 | child_id, event, data |
api.broadcast_to_children | 广播事件 | event, data |
api.list_webview_extensions | 列出已安装扩展 | 无 |
api.install_to_webview | 安装扩展 | path, name? |
api.remove_webview_extension | 移除扩展 | id |
api.open_extensions_dir | 打开扩展目录 | 无 |
api.install_extension_from_url | 从 URL 安装扩展 | url |
api.start_extension_bridge | 启动扩展桥接 | 无 |
api.stop_extension_bridge | 停止扩展桥接 | 无 |
api.get_extension_status | 获取桥接状态 | 无 |
api.broadcast_to_extensions | 广播到扩展 | event, data |
api.install_extension | 安装浏览器扩展 | path, browser |
api.open_url | 打开 URL | url |
基础功能测试
api.get_samples - 验证返回格式api.get_categories - 验证分类结构api.get_mcp_info - 验证 MCP 信息源代码获取测试
api.get_source(sample_id="hello_world") - 验证源代码返回进程管理测试
api.list_processes - 验证进程列表api.run_sample(sample_id="hello_world") - 验证进程启动api.kill_process(pid=xxx) - 验证进程终止子窗口测试
api.get_children - 验证子窗口列表api.launch_example_as_child(sample_id="hello_world") - 验证子窗口启动扩展管理测试
api.list_webview_extensions - 验证扩展列表api.get_extension_status - 验证桥接状态{ok, data, error})## Issue: [简短描述]
**类型**: Bug / 设计缺陷 / 代码味道
**严重性**: High / Medium / Low
**文件**: [affected file]
**问题**: [详细描述]
**根因**: [分析]
**修复方案**: [解决方案]
python -c "import py_compile; py_compile.compile('path/to/file.py')"vx just gallery-mcp 27168
gallery/main.py - Gallery 主入口gallery/backend/ - API 实现
process_api.py - 进程管理child_api.py - 子窗口管理extension_api.py - 扩展管理webview_extension_api.py - WebView 扩展python/auroraview/core/ - 核心实现
mixins/api.py - bind_call 实现response.py - 响应工具所有 API 应返回标准格式:
# 成功
{"ok": True, "data": ...}
# 失败
{"ok": False, "error": "message"}
使用辅助函数:
from auroraview import ok, err
return ok({"key": "value"})
return err("Error message")