AgentBay AIO 技能
技能 已验证 活跃用于任何“运行/执行/评估代码”的请求(如 run this code、execute script、用 Python 画图、跑代码/画图/执行脚本)。通过 AgentBay SDK 创建 code_latest 沙箱,调用 run_code 执行并返回结果。支持 Python、JavaScript、R、Java。
可靠地在安全、隔离的环境中执行用户请求的代码片段或脚本,支持多种编程语言。
功能
- 在 Python、JavaScript、R 和 Java 中执行代码
- 使用 AgentBay SDK 进行沙箱执行
- 管理依赖项和 API 密钥配置
- 提供结构化输出和错误报告
使用场景
- 运行代码片段进行测试或评估
- 执行脚本进行数据分析或可视化
- 允许代理直接执行编码任务
- 在无需本地环境设置的情况下生成代码输出
非目标
- 在 AgentBay 沙箱之外执行代码
- 管理用户的本地开发环境
- 执行复杂的代码重构或调试
- 与执行代码本身指定的外部系统以外的系统进行交互
工作流
- 用户请求代码执行或脚本运行。
- 技能识别意图并准备代码/语言参数。
- 脚本 run_code.py 在虚拟环境中调用。
- AgentBay SDK 创建一个 code_latest 沙箱会话。
- 用户代码在指定超时时间内在沙箱中执行。
- 捕获结果(输出、日志、错误)。
- 删除沙箱会话。
- 将结果返回给用户。
先决条件
- 在虚拟环境中安装了 wuying-agentbay-sdk
- 已配置 AgentBay API 密钥(通过环境变量或配置文件)
安装
npx skills add agentbay-ai/agentbay-skills通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。
质量评分
已验证类似扩展
Coding Standards
100Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.
Create Spatial Visualization
100Create interactive maps, elevation profiles, and spatial visualizations from GPX tracks, waypoints, or route data using R (sf, leaflet, tmap) or Observable (D3, deck.gl). Covers data import, coordinate system handling, map styling, and export to HTML or image formats. Use when visualizing a planned or completed tour route on an interactive map, creating elevation profiles for hiking or cycling routes, overlaying waypoints and POIs on a basemap, or building a web-based trip dashboard.
Cleanup Cycles
100Detect and untangle circular dependencies. Runs madge/skott (TS), pycycle (Py), or compiler-only checks (Go/Rust). Auto-fixes leaf-extractable cycles; reports core cycles for human review. Use when the user asks to find circular imports, fix dependency cycles, or untangle module graph. Example queries — "find circular imports", "fix dependency cycles", "untangle our module graph", "why is madge complaining".
Wasm Agent
99Create and manage sandboxed WASM agents for isolated code execution
Python Executor
99Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh). Pre-installed: NumPy, Pandas, Matplotlib, requests, BeautifulSoup, Selenium, Playwright, MoviePy, Pillow, OpenCV, trimesh, and 100+ more libraries. Use for: data processing, web scraping, image manipulation, video creation, 3D model processing, PDF generation, API calls, automation scripts. Triggers: python, execute code, run script, web scraping, data analysis, image processing, video editing, 3D models, automation, pandas, matplotlib
Cloudflare Sandbox SDK
99构建用于安全代码执行的沙盒应用程序。在构建 AI 代码执行、代码解释器、CI/CD 系统、交互式开发环境或执行不受信任的代码时加载。涵盖 Sandbox SDK 生命周期、命令、文件、代码解释器和预览 URL。倾向于从 Cloudflare 文档中检索信息,而不是依赖预训练知识。