environment
它能做什么
这个技能构建新工作区所基于的云环境,使新工作区启动时依赖项和服务已经就位。适合希望在每个新云工作区上省去手动设置的团队。
适用场景
- ✓当你想为你的代码仓库设置或完成云环境时。
- ✓当设置会话交给你一个需要完成的环境 ID 时。
- ✓当你希望新的云工作区启动时已安装依赖项并运行服务时。
技能链接
https://github.com/ParadevAI/Paradev/blob/main/plugins/superset/skills/environment/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我们的代码仓库设置一个云环境,使新的云工作区启动时已安装依赖项并处于就绪状态。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会判断代码仓库需要什么,设置环境变量,在其上启动一台云机器,并在那里运行项目。然后它会保存检查点,使之后的工作区从相同状态启动。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Cloud environment setup
Goal: a cloud environment that new cloud workspaces boot straight into, with dependencies installed, variables set, and services starting on boot. You run on the user's machine with their Paradev login. You build the environment by driving a cloud box from here.
Terms you will use with the user:
- Environment: what a cloud workspace boots from. It has repositories (the first is primary), variables, a region, and a visibility.
- Box: one cloud workspace running on the environment.
- Checkpoint: a snapshot of the box saved into the environment, so the next workspace starts from it.
superset environments replacesaves one. Only the latest checkpoint is kept.
What a box already has
Do not install or upgrade these:
- Node 24, Bun, Python 3 (pip, pipx, venv), a JDK, build-essential, clang, git, git-lfs,
gh, and Docker with Compose. They come with the image, and a checkpoint keeps the versions it was saved with. - Chrome, Claude Code, Codex and the
supersetCLI. Every boot updates them to the platform's current release, so a checkpoint does not freeze their versions. - A Linux desktop (XFCE over VNC, Xvfb), ffmpeg and ImageMagick.
- GitHub access for git and
gh. Do not rungh auth loginor put a token in the box.
There is no macOS: no Xcode, iOS simulator or Safari. If the project needs one, tell the user. Install only what the project needs, and do it through the repository's config.toml so a fresh checkout repeats it.
0. Connect GitHub
Boxes check out repositories through the organization's Paradev GitHub App. Run superset integrations github status. If the App is not installed, run superset integrations github connect and ask the user to finish the install in the browser. It needs the Pro plan and a GitHub account that can install apps on the repositories' owner.
superset environments repos lists the repositories the App can see; only these are valid for --repo. If a repository the project needs is missing, ask the user to add it to the App's repository access in GitHub, or to ask whoever manages that installation.
Then run superset connections github status. Without a personal connection, boxes push and open pull requests as the App. Offer superset connections github connect so they act as the user instead.
1. Find the environment
If you were given an environment ID, run superset environments list --json and confirm it exists. Otherwise, look there for a personal environment on the same repositories from an earlier session and offer to continue it. Create one only if there is none:
superset environments create --name <name> --repo <owner/name> [--repo ...] --scope personal
A new environment is named after its primary repository until you rename it in step 6.
2. Intake
Read each repository before asking anything. Use the local clone when there is one (superset projects list), otherwise the GitHub API. Check:
- the README, package manifests and lockfiles (they decide the package manager and install command);
- CI config (it is the most honest list of what a working build needs);
.env.exampleand the repository's config folder (.paradev/, or.superset/in repos set up before the rename):config.toml, or the oldconfig.json;- services the project expects, such as Postgres, Redis or Docker Compose.
Then ask only what you could not infer: missing secret values and extra repositories. Check extra repositories against superset environments repos as in step 0.
The repository list cannot change after the first checkpoint. Confirm it with the user before step 5, and fix it with superset environments update while you still can.
3. Variables
Ask the user before you read any local .env* file, and name the files you would read. Only with a yes, read them and list the keys you would set, never the values, and set only the keys the user confirms:
printf %s "$VALUE" | superset environments secrets set --environment <environment-id> KEY
superset environments secrets set --environment <environment-id> --env-file path/to/.env
Use --env-file only when the user confirms every key in that file. If the user says no, ask for each value the code needs instead.
Never pass a value with --body: it ends up in the process list and the shell history. Reserved keys (SUPERSET_*, HOST_SERVICE_*, PATH, HOME, PORT and similar) and agent credentials are skipped; tell the user if one they need i
常见问题
它会安装基础镜像已经包含的工具吗?
不会。它会跳过镜像中已经包含的工具。
它能设置 Mac 或 iOS 工具吗?
不能。云机器运行的是 Linux,因此如果项目需要无法在其中运行的东西,该技能会告诉你。
会保留多少个检查点?
只保留最新的一个检查点。
详情
作者的原始描述
Set up a Paradev (formerly Superset) cloud environment end to end from this machine - work out what the repositories need, set the environment's variables, boot a cloud box on it, get the project running there, and save checkpoints until new cloud workspaces start ready. Use when the user asks to set up, onboard, or finish a cloud environment, or when a setup session hands you an environment ID.
repo: ParadevAI/Paradev
热度
- GitHub 星标
- 16k
- 排名
- #10863
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …