← 返回 Skills 市场
159
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install multi-env-isolator
功能描述
Generate isolated dev/test/prod environments for uvicorn/FastAPI Python web projects with frontend (Vue/React) support. Creates separate config files, startu...
安全使用建议
This skill appears to implement the described multi-environment scaffolding, but take these precautions before running it on a real project:
1. Back up the target project directory first (or try it in a copy/sandbox). The scripts will create files and update .gitignore.
2. Documentation mismatch: SKILL.md mixes examples for two script versions. If you want frontend flags like --dev-backend-port/--frontend-dir, run scripts/setup_envs_v2.py; the older scripts/setup_envs.py accepts different flag names. Verify which script you run and its accepted flags.
3. Immediately change generated secrets: replace JWT_SECRET (and any other secrets) in .env.prod with a strong random value before using a production environment. The defaults are intentionally weak placeholders.
4. Review package.json and dependencies before allowing the generated frontend start scripts to run. The frontend start scripts will run `npm install` (if node_modules missing) and use `npx playwright` for tests — npm installs run arbitrary install/postinstall scripts and fetch packages from the network, so only run them in a trusted environment or after checking dependencies.
5. Verify ports and database choices: defaults differ between versions; ensure ports don't conflict on your machine and set DATABASE_URL for production if you need a managed DB instead of local sqlite.
6. If you only need file generation (no npm/network activity), inspect and run the setup script but avoid starting frontend scripts until you've reviewed the project and dependencies.
Overall: the code is not obviously malicious, but the doc/version mismatch and the automated npm behavior justify caution. If you want, I can point out the exact command flags each script accepts or produce a safe checklist of what to inspect in package.json before running npm install.
功能分析
Type: OpenClaw Skill
Name: multi-env-isolator
Version: 2.0.0
The multi-env-isolator skill is a legitimate developer utility designed to automate the creation of isolated dev, test, and production environments for FastAPI and frontend projects. The Python scripts (scripts/setup_envs.py and scripts/setup_envs_v2.py) generate standard configuration files (.env), shell scripts for starting services, and directory structures for data isolation. There is no evidence of malicious intent, data exfiltration, or unauthorized execution; the tool operates locally on the user-specified project directory and includes clear documentation and security warnings regarding production secrets.
能力评估
Purpose & Capability
The name/description (create isolated dev/test/prod environments for FastAPI + frontend) matches what the included scripts do: create .env files, data directories, startup scripts, Playwright integration and docs. Creating .env, scripts, docs, and updating .gitignore is expected for this purpose.
Instruction Scope
SKILL.md instructs running a setup script and then starting generated scripts, which is expected; however the documentation mixes flags and examples for two versions (setup_envs.py vs setup_envs_v2.py). The example invocation in SKILL.md references flags like --dev-backend-port/--frontend-dir that are only accepted by the v2 script, which is confusing and could cause users to run the wrong script or pass unsupported flags. Also the generated frontend start scripts run `npm install` when node_modules is missing (and Playwright runner uses `npx`), which causes network activity and execution of package install scripts — this is legitimate for starting a frontend but increases risk if run against an untrusted project or with unreviewed package.json.
Install Mechanism
There is no install spec — the skill is instruction + local scripts only. Nothing is downloaded by the setup scripts themselves and no off-host archives or remote URLs are fetched during generation. The main network-affecting actions occur later when frontend start scripts run npm/npx, which is expected for frontend tooling.
Credentials
The skill requests no environment variables or credentials. However it generates default JWT_SECRET values like `dev-jwt-secret-change-me` and leaves production secrets as placeholders; the included docs do advise changing them. This is expected but important: the generated defaults are weak and must be replaced before using the 'prod' environment. The scripts also add local sqlite URLs by default — appropriate for dev/test but should be configured for real prod.
Persistence & Privilege
The skill does not request persistent/global privileges or always: true. It only writes files inside the target project and updates/creates the project's .gitignore. It does not modify other skills or system-wide configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install multi-env-isolator - 安装完成后,直接呼叫该 Skill 的名称或使用
/multi-env-isolator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
**v2.0.0 introduces frontend (Vue/React) isolation and Playwright E2E support for full-stack FastAPI projects.**
- Adds support for generating separate backend and frontend (Vue/React) startup scripts for dev, test, and prod environments.
- Integrates Playwright test environment, with generated config and scripts for E2E testing in the isolated test setup.
- Supports isolated frontend ports/configs alongside backend for each environment (dev/test/prod).
- Introduces new command-line options for customizing frontend directories and ports.
- Team documentation now reflects both backend and frontend workflows, clearly outlining roles and parallel non-conflicting work.
- Backwards compatible with Python-only (FastAPI/uvicorn) projects; added support is for full-stack teams.
v1.0.0
Initial release: generate isolated dev/test/prod environments for uvicorn/FastAPI projects
元数据
常见问题
Multi-Environment Isolator 是什么?
Generate isolated dev/test/prod environments for uvicorn/FastAPI Python web projects with frontend (Vue/React) support. Creates separate config files, startu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 159 次。
如何安装 Multi-Environment Isolator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install multi-env-isolator」即可一键安装,无需额外配置。
Multi-Environment Isolator 是免费的吗?
是的,Multi-Environment Isolator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Multi-Environment Isolator 支持哪些平台?
Multi-Environment Isolator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Multi-Environment Isolator?
由 RM-Huang(@rm-huang)开发并维护,当前版本 v2.0.0。
推荐 Skills