Execute qualquer Skill no Manus
com um clique
com um clique
Execute qualquer Skill no Manus com um clique
Começar$pwd:
$ git log --oneline --stat
stars:2
forks:0
updated:9 de março de 2026 às 12:08
SKILL.md
SimilarWeb 网站分析连接器 — 流量、排名、营销渠道、受众画像等数据
数据源连接器管理 — Agent 自动帮用户查询、配置、创建和测试数据连接器
自动执行模式 — 直接生成并执行代码完成用户任务
SensorTower 移动应用数据连接器 — App 下载量、收入、DAU/MAU 数据
金融数据连接器 — 通过 Data Bridge 获取实时股票、财务报表、估值比率等结构化数据
WPS 图表创建 — AddChart2 方法、图表类型、配色方案、最佳实践
| name | sandbox-executor |
| type | bundled |
| description | 沙盒执行器 — 在安全隔离环境中运行 Python/Shell 脚本获取外部数据 |
| version | 1.0.0 |
| modes | ["agent","plan"] |
| context | {"keywords":["python","pip","爬虫","抓取","scrape","crawl","脚本","script","下载","安装","shell","bash","命令行","terminal","终端","pandas","numpy","requests","beautifulsoup","selenium","playwright","google play","app store","评论","reviews","数据采集","数据抓取","网页抓取","api调用","curl","wget"]} |
当任务需要 Python 或 Shell 脚本(如安装第三方库、调用外部 API、网页抓取),使用 sandboxExec() 在安全沙盒中执行。
var result = sandboxExec(language, code, options);
| 参数 | 类型 | 说明 |
|---|---|---|
| language | string | "python" 或 "shell" |
| code | string | 要执行的代码 |
| options.pip | string[] | Python 依赖包列表(可选) |
| options.timeout | number | 超时秒数,默认 60,最大 120 |
{
"ok": true,
"stdout": "脚本输出内容",
"stderr": "错误信息(如有)",
"exitCode": 0,
"timedOut": false
}
核心原则:sandboxExec 获取数据 → WPS JavaScript 写入表格
// 第一步:在沙盒中用 Python 获取数据
var result = sandboxExec("python", `
import json
from google_play_scraper import reviews, Sort
result, _ = reviews(
'com.example.app',
lang='zh',
country='cn',
sort=Sort.NEWEST,
count=50
)
print(json.dumps(result, ensure_ascii=False, default=str))
`, { pip: ["google-play-scraper"], timeout: 90 });
if (!result.ok) return "Python 执行失败: " + result.error;
// 第二步:解析数据并写入表格
var data = JSON.parse(result.stdout);
var ws = Application.ActiveSheet;
ws.Range("A1").Value2 = "用户名";
ws.Range("B1").Value2 = "评分";
ws.Range("C1").Value2 = "评论";
ws.Range("D1").Value2 = "日期";
for (var i = 0; i < data.length; i++) {
var row = i + 2;
ws.Range("A" + row).Value2 = data[i].userName || "";
ws.Range("B" + row).Value2 = data[i].score || 0;
ws.Range("C" + row).Value2 = (data[i].content || "").substring(0, 200);
ws.Range("D" + row).Value2 = data[i].at || "";
}
return "已写入 " + data.length + " 条评论数据";
var result = sandboxExec("python", `
import json, urllib.request
url = "https://api.example.com/data"
resp = urllib.request.urlopen(url)
data = json.loads(resp.read())
print(json.dumps(data))
`, { timeout: 30 });
var result = sandboxExec("python", `
import json, pandas as pd
df = pd.read_csv("https://example.com/data.csv")
print(df.to_json(orient="records", force_ascii=False))
`, { pip: ["pandas"], timeout: 60 });
var result = sandboxExec("shell", `
curl -s "https://api.exchangerate-api.com/v4/latest/USD" | python3 -c "
import sys, json
data = json.load(sys.stdin)
print(json.dumps(data['rates']))
"
`, { timeout: 30 });
sandboxExec() 获取数据 + WPS API 写入表格print(json.dumps(...)) 输出结构化数据result.ok:沙盒执行可能失败,必须处理错误os.system("pip install ...")dataBridgePull)