Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)16k · #10863

environment

Skill này làm gì

Skill này xây một môi trường đám mây để các không gian làm việc mới bắt đầu từ đó, nên chúng khởi động với phụ thuộc và dịch vụ đã sẵn sàng. Dành cho nhóm muốn bỏ qua việc thiết lập thủ công cho mỗi không gian đám mây mới.

Khi nào nên dùng

  • ✓Khi bạn muốn thiết lập hoặc hoàn tất một môi trường đám mây cho các repository của mình.
  • ✓Khi một phiên thiết lập đưa cho bạn một ID môi trường để hoàn tất.
  • ✓Khi bạn muốn không gian đám mây mới khởi động với phụ thuộc đã cài và dịch vụ đang chạy.

Liên kết skill

https://github.com/ParadevAI/Paradev/blob/main/plugins/superset/skills/environment/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ParadevAI/Paradev/blob/main/plugins/superset/skills/environment/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thiết lập môi trường đám mây cho các repo của chúng tôi để mỗi không gian đám mây mới khởi động sẵn sàng với phụ thuộc đã cài.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent xác định các repository cần gì, thiết lập biến môi trường, khởi động một máy đám mây trên đó và đưa dự án chạy lên. Sau đó nó lưu các checkpoint để những không gian làm việc sau bắt đầu từ cùng trạng thái.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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 replace saves 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 superset CLI. 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 run gh auth login or 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.example and the repository's config folder (.paradev/, or .superset/ in repos set up before the rename): config.toml, or the old config.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

Câu hỏi thường gặp

Nó có cài các công cụ mà image gốc đã có không?

Không. Nó bỏ qua các công cụ mà image đã bao gồm.

Nó có thiết lập được công cụ cho Mac hoặc iOS không?

Không. Các máy đám mây chạy Linux, nên skill sẽ cho bạn biết nếu dự án cần thứ không thể chạy ở đó.

Có bao nhiêu checkpoint được giữ?

Chỉ giữ checkpoint mới nhất.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
16k
Vị trí xếp hạng
#10863
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự