feat(skill): add us-stock skill for US market quotes, VIX, Mag7 and Gamma analysis#64
Open
maozhuoshushu wants to merge 2 commits into
Open
feat(skill): add us-stock skill for US market quotes, VIX, Mag7 and Gamma analysis#64maozhuoshushu wants to merge 2 commits into
maozhuoshushu wants to merge 2 commits into
Conversation
wsvn53
reviewed
Jun 8, 2026
wsvn53
left a comment
Contributor
There was a problem hiding this comment.
经过对 MinisApp iOS 和 Android 源码的扫描,发现 set_user_agent 支持的值在两个平台上完全不同:
| 平台 | 支持的值 |
|---|---|
| iOS | desktop_safari、mobile_safari |
| Android | desktop_chrome、mobile_chrome |
所以 Step 0 里的 set_user_agent desktop_chrome 在 Android 上没问题,但在 iOS 上会直接报错,导致后续抓取逻辑失败。
建议修复方案(二选一):
方案 A(推荐):不依赖 set_user_agent,改用 set_viewport 直接设置固定宽高(如 viewport_width: 1280, viewport_height: 800)来模拟桌面视窗。这样跨平台都能生效,不受 UA 枚举值差异影响。
方案 B:做 fallback 容错处理,先尝试 desktop_chrome(Android),失败后再尝试 desktop_safari(iOS)。在 SKILL 里注明:
# Android: desktop_chrome / iOS: desktop_safari
# 推荐先尝试 desktop_chrome,失败则 fallback 到 desktop_safari
方案 A 更简洁,同时 Google Finance 区分桌面/移动版主要靠 viewport 宽度,设置足够宽的视窗即可拿到完整数据。
Contributor
Author
|
已按方案A修复:将 Step 0 的 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a new skill for querying US stock market real-time data:
What it covers
Data source
Google Finance via browser_use (navigate + get_text) — no API key needed.
Output format
Structured tables with textual interpretation and memory logging.