
agentbay-aio-skills
用于任何「运行/执行/评估代码」的请求(如 run this code、execute script、用 Python 画图、跑代码/画图/执行脚本)。通过 AgentBay SDK 创建 codelatest 沙箱,调用 runcode 执行并返回结果。支持 Python、JavaScript、R、Java。
- Installs
- 70
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/agentbay-ai/agentbay-skills --skill agentbay-aio-skills- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads agentbay-aio-skills automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
AgentBay AIO 技能
触发条件:何时使用本技能
当用户意图运行或执行代码时即应使用本技能,即使用户没有说「沙箱」。典型表述(遇到即触发):
- 英文:run this code、execute this script、run the code、execute the script、plot with Python、draw a graph、evaluate this snippet、what's the output of this code、can you run this
- 中文:帮我跑一下这段代码、运行这段代码、执行这个脚本、用 Python 画个图、跑一下、看下运行结果、执行一下、帮我运行
依赖与环境
本技能依赖 wuying-agentbay-sdk 包。
最佳实践(Agent 必读):
为避免污染用户当前项目的环境,请务必使用技能目录下的独立虚拟环境:
-
检查/创建虚拟环境:
# 检查是否存在 .venv,不存在则创建 if [ ! -d ".venv" ]; then python3 -m venv .venv; fi -
激活并安装依赖(仅首次或缺失时安装,使用阿里云镜像):
source .venv/bin/activate pip show wuying-agentbay-sdk >/dev/null 2>&1 || pip install wuying-agentbay-sdk -i https://mirrors.aliyun.com/pypi/simple/ -
运行脚本(在虚拟环境中):
# 确保在 venv 下运行 python scripts/run_code.py --code "..." --language python
(若用户明确要求在全局环境运行,或当前已在特定环境中,可跳过创建 venv,但仍建议使用镜像源安装。)
API Key(仅报错时引导)
默认先直接执行脚本,不要每次运行前都提醒用户配置 API Key。 仅当脚本报错「Missing API key」或类似信息时,再引导用户配置:
- 到 AgentBay 控制台 申请 API Key。
- 在本地创建配置文件(脚本会从该路径读取):
- macOS / Linux:
~/.config/agentbay/api_key(或$XDG_CONFIG_HOME/agentbay/api_key) - Windows:
%USERPROFILE%\.config\agentbay\api_key
- macOS / Linux:
- 示例(macOS/Linux):
mkdir -p ~/.config/agentbay,再将密钥写入~/.config/agentbay/api_key。Windows:在%USERPROFILE%\.config\agentbay下创建名为api_key的无扩展名文件。 - 告知用户完成后重试,不要只复述报错。
使用场景
所有代码执行类请求均默认使用本技能。 只要用户要求运行代码、执行脚本、评估片段或查看代码输出(Python、JavaScript、R 或 Java),即使用本技能——即使用户未提「沙箱」。使用 code_latest 创建 AgentBay 沙箱,通过 run_code 执行代码并返回结果。在本技能可用时,不要在本地终端执行用户代码;应使用沙箱以保证隔离与行为一致。
概述
使用 AgentBay SDK 以 code_latest 镜像创建会话,在沙箱中通过 run_code 执行代码,解析 EnhancedCodeExecutionResult,并销毁会话。
执行方式(Agent 必读)
请通过本技能自带的脚本执行用户代码 在技能目录下执行:
python scripts/run_code.py --code "用户要执行的代码" --language python
从文件执行:
python scripts/run_code.py --code-file /path/to/file.py --language python
需要结构化输出时加 --json。脚本会从配置文件或环境变量读取 API Key,创建沙箱、执行并返回结果。
(若用户在自己的 Python 项目中集成 AgentBay,可参考 wuying-agentbay-sdk 的同步/异步用法;Agent 执行本技能时仅需调用上述脚本。)
脚本输出
- 成功:脚本 exit code 0,结果在 stdout(或加
--json时输出 JSON:success、result、logs、error_message)。 - 失败:exit code 非 0,错误信息在 stderr;根据输出提示用户(如缺 API Key 则按「API Key(仅报错时引导)」处理)。
重要约束
language支持:python、javascript、r、java(不区分大小写)。- 单次执行超时 60 秒(可用
--timeout-s指定,不超过 60)。
FAQ
What does the agentbay-aio-skills skill do?
用于任何「运行/执行/评估代码」的请求(如 run this code、execute script、用 Python 画图、跑代码/画图/执行脚本)。通过 AgentBay SDK 创建 codelatest 沙箱,调用 runcode 执行并返回结果。支持 Python、JavaScript、R、Java。
How do I install agentbay-aio-skills?
Run npx skills add https://github.com/agentbay-ai/agentbay-skills --skill agentbay-aio-skills in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/agentbay-aio-skills/ (personal) or .claude/skills/agentbay-aio-skills/ (project).
Which AI agents can use agentbay-aio-skills?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is agentbay-aio-skills safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains agentbay-aio-skills?
It is published by agentbay-ai in agentbay-ai/agentbay-skills. It has 70 recorded installs.
More from agentbay-ai/agentbay-skills
stock-watcher
agentbay-ai/agentbay-skills
Manage and monitor a personal stock watchlist with support for adding, removing, listing stocks, and summarizing their recent performance using data from 10jqka.com.cn. Use when the user wants to track specific stocks, get performance summaries, or manage their watchlist.
boss-job-search
agentbay-ai/agentbay-skills
Open the skill to read its SKILL.md instructions.
web-scraper
agentbay-ai/agentbay-skills
Scrape web pages and save as HTML or Markdown (with text and images). Minimal dependencies - only requests and beautifulsoup4. Use when the user provides a URL and wants to download/archive the content locally.
find-skills
agentbay-ai/agentbay-skills
Helps users discover, search and install agent skills from the marketplace. Use when the user wants to find a skill, discover new capabilities, find specific tools (especially sandboxes) or install a skill. This skill should be used when the user is looking for functionality that might exist as an installable skill. Also supports progressive disclosure to recommend sandbox-related skills when relevant. 用于帮助用户在市场中搜索、发现和安装 Agent 插件(Skills)。 当用户想要查找功能、安装特定工具或寻找沙箱(sandbox)时使用。 Triggers: "查找插件","搜索技能","搜索 X 技能","安装技能","安装 X 技能","如何做 X","沙箱","安全沙箱","find a skill for X", "how do i do X", "search for skill", "install skill", "I need a skill for X", "sandbox", "aio sandbox"
douban-movie-review
agentbay-ai/agentbay-skills
Open the skill to read its SKILL.md instructions.
Popular backend & apis skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
entra-app-registration
microsoft/azure-skills
Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.
google-agents-cli-adk-code
google/agents-cli
This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).
embedded-captions
heygen-com/hyperframes
Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet anchor rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.
entra-agent-id
microsoft/azure-skills
Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmipath token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registration (use entra-app-registration), Microsoft Foundry agent authoring (use microsoft-foundry).
neon
neondatabase/agent-skills
Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, the AI Gateway, and Realtime. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASEURL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Child skill neon-realtime wins for live queries in reactive apps and agents. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, realtime, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.