edgeone-makers-env-adaption
БесплатноБез исполняемых скриптовНе проверенEnvironment-specific adaptation rules for EdgeOne Makers Skills running in sandboxed or restricted AI coding environments (e.g. WorkBuddy). Trigger when: the…
от infometa★ 475 звёзд на GitHubОб этом скилле
Runtime Environment Adaptation Guide
This document describes the special constraints and adaptation rules for EdgeOne Makers Skills across different AI coding environments. Currently covered: WorkBuddy (Tencent sandboxed IDE)
🚦 Quick Reference: Preview Decision Tree
When you reach the "display / preview" step, read this first before deciding how to call present_files:
┌─ Delivering finished work? ── Yes ──→ present_files(deployed EdgeOne URL) ✅
│
Enter ┤
preview │ ┌─ dev server running? ─ Yes ──→ present_files(http://127.0.0.1:8088/) ✅
└─ Still iterating? ───┤
└─ No ──→ start edgeone makers dev → present_files(...)
| What you want to do | Correct approach | Wrong approach (breaks) |
|---|---|---|
| Preview local dev server | present_files("http://127.0.0.1:8088/") |
❌ Passing /path/to/index.html (IDE opens it via file://) |
| Preview a deployed project | present_files(deploy_url) with ?eo_token=... |
❌ Passing a local dist/index.html path |
| Start dev server | edgeone makers dev --name <p> --skip-env-sync |
❌ python -m http.server / npx serve |
| Verify dev server is up (agent-side API check) | curl --noproxy '*' http://127.0.0.1:8088/api/... ✅ works (same sandbox) |
❌ curl localhost:8088 / plain curl (proxy + IPv6 → 404/000) |
| Verify dev server is up (user-facing) | present_files(http://127.0.0.1:8088/) (platform tunnel) |
❌ Telling user to open 127.0.0.1:8088 — their browser can't reach the sandbox |
Core iron rule: inside a Makers project, any HTML / URL preview MUST go through the HTTP protocol. file:// looks convenient, but fetch / SSE / Blob / KV all break under it.
Violation symptoms self-check (if you see these, go back up immediately)
- Browser Console:
TypeError: Failed to fetch/CORS policyerrors - Page HTML loads fine but all JS requests 404
- SSE / EventSource disconnects immediately on connect
- Works locally but breaks once deployed (or vice versa)
WorkBuddy Sandbox Environment
WorkBuddy is a sandboxed remote IDE environment. When running AI coding tasks, it has the following constraints that differ from local development.
⚠️ Common misread: WorkBuddy is a desktop IDE sandbox, NOT a headless environment.
- CLI interactive prompts (site picker, confirmations) hang inside the sandbox → use the non-interactive flags in this section.
- BUT browser login (
edgeone login --site <x>) works fully — WorkBuddy launches the host OS browser AND routes the OAuth callback back into the sandbox.Deploy/link login should default to browser login and only fall back to
-t <token>after browser login is confirmed to fail. Do NOT jump to token login just because the caller is an "Agent".
1. Non-interactive mode (all CLI commands must avoid interactive prompts)
Inside the WorkBuddy sandbox, CLI interactive prompts cause the process to hang forever. All edgeone CLI commands must carry non-interactive flags:
| Scenario | Required flag | Reason |
|---|---|---|
| Local development | --skip-env-sync |
Skips the "sync environment variables?" confirmation |
| Linking a project | --name <project> |
Skips the interactive project picker |
| Auth when not logged in | -t <token> |
Passes the token directly, no login popup |
| Deploy output | --json |
Machine-readable JSON, avoids ANSI parsing |
# Correct: local development
edgeone makers dev --name my-project --skip-env-sync
# Correct: deploy
edgeone makers deploy -n my-project --json
# Wrong: will hang
edgeone makers dev
2. Login authentication
Token resolution priority (the CLI checks in this order automatically):
-t <token>command-line argumentEDGEONE_PAGES_API_TOKENenvironment variable<cwd>/.edgeone/auth.json(written byedgeone login --local)~/.edgeone/global credentials
Recommended approach: browser login + the --local flag:
edgeone login --site china --local
--local writes credentials to the project directory at <cwd>/.edgeone/auth.json, bypassing home-directory write restrictions.
Login status detection:
edgeone whoami # exit 0 = logged in, exit 1 = not logged in (does not hang)
When is login actually required? Login is only needed when the project uses Blob or other credentialed backends — and strictly because of the dependency chain: Blob requires the project to be linked, and linking requires a logged-in account first. So edgeone makers dev for a pure-static site runs fine without login — do NOT force a login prompt for static-only previews. Login (or -t <token>) becomes mandatory the moment dev/deploy must touch Blob storage. (The trigger condition and the link chain live in makers-storage.)
CLI version requirement: >= 1.6.7 (older versions lack the non-interactive fixes; whoa
Установить edgeone-makers-env-adaption в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл edgeone-makers-env-adaption?
Environment-specific adaptation rules for EdgeOne Makers Skills running in sandboxed or restricted AI coding environments (e.g. WorkBuddy). Trigger when: the user is working in WorkBuddy or a sandboxed IDE where CLI prompts hang and network is proxy-isolated (but browser login still works). Covers: non-interactive CLI flags, network isolation workarounds, login in sandbox, proxy bypass, file preview constraints (MUST use http:// via dev server, NEVER file://, NEVER python -m http.server / npx serve), dev server requirements.
Как установить скилл edgeone-makers-env-adaption?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл edgeone-makers-env-adaption запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic