본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)5.4k · #14853

compute-env-setup

하는 일

이 스킬은 원격 컴퓨팅 호스트의 활성화 파일을 준비하는 방법을 에이전트에게 가르칩니다. 작업이 올바른 패키지를 불러오도록 설정 단계를 쓰고 환경을 점검합니다. 리소스를 만들거나 삭제하는 일은 사용자에게 맡깁니다.

사용하는 경우

  • ✓원격 작업에 호스트가 이미 제공하지 않는 패키지, 모듈, 캐시 설정이 필요할 때.
  • ✓사용자가 Open Science 컴퓨팅 호스트에 반복 가능한 환경 활성화가 필요한 경우.
  • ✓원격 작업이 호스트에 패키지나 모듈이 없어 실패할 때.

스킬 링크

https://github.com/aipoch/open-science/blob/main/resources/skills/compute-env-setup/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/aipoch/open-science/blob/main/resources/skills/compute-env-setup/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 원격 작업이 컴퓨팅 호스트에서 특정 Python 패키지 세트가 필요합니다. 설정 단계와 활성화 파일을 준비해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 기존 환경 정의를 확인하고, 필요한 설정이 담긴 활성화 파일을 쓰며, 정확한 설정 명령을 알려 줍니다. 사용자의 리소스를 만들거나 삭제하는 명령은 스스로 실행하지 않습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Compute environment setup

Prepare one reproducible environment definition and instructions for one small user-managed host activation file. Open-Science resolves submitJob(..., { environment: '<name>' }) by sourcing ~/.open-science/environments/<name>.sh before the workload. Existing ~/.openscience/environments/<name>.sh definitions remain readable in place. Before creating an activation, check both names: update the existing definition at its exact location; if both exist, ask the user which to retain. Never create a second activation just to rename the brand. The file contains activation only; it does not install packages when a job starts.

Software environment setup and Slurm accounting service configuration are separate concerns. An unavailable sacct service is not evidence that Python, Conda, modules, or the named activation file are missing. Use the Remote Compute Skill's Slurm troubleshooting reference for scheduler status and cancellation problems; do not make enabling accounting the only recovery path or assume the user has administrator privileges.

The environment, package caches, images, and activation file are user-managed durable resources, not Open-Science-owned components. This Skill may inspect them and prepare exact setup/removal commands, but must not execute commands that create, replace, or remove those resources. The user or host administrator runs those commands outside Open-Science and owns their lifecycle. Do not interpret the ~/.openscience path as app ownership.

Use host.compute only in repl_execute JavaScript. Python and R data kernels do not expose it. Start from the Session catalog and do not guess a provider id:

const hosts = await host.compute.listHosts()
const selected = hosts.filter((candidate) => candidate.role === 'selected')
const candidates = selected.length > 0 ? selected : hosts

Choose the requested host, or a suitable candidate when the user left the target open. Read its knowledge and probe snapshot before changing it:

const providerId = candidates[0].provider_id
const executionMode = candidates[0].execution_mode
const details = await host.compute.details(providerId, { mode: 'read' })
const compute = host.compute.create(providerId)

If no eligible host exists, or the selected host is unsuitable, explain the concrete blocker. Do not install locally as a substitute for a requested remote environment.

Define the environment

Keep the reproducible source in the user's project: an environment.yml, requirements or lock file, container definition, or a short setup script appropriate to the stack. When installation must run on a compute node, include exact user- or administrator-run staging and scheduler commands in the plan; do not submit that installation through Open-Science. Do not store project package lists or secrets in the host knowledge document.

Use a logical name containing 1–64 letters, numbers, periods, underscores, or hyphens, starting with a letter or number. Its host activation file is:

~/.open-science/environments/<name>.sh

The activation file itself and every path it references must be visible at the same path on the execution node. A shared home directory satisfies this. If login and compute nodes have separate homes, copy the activation file to the compute-node home at the same path and use shared software and data paths inside it; if the host offers no durable way to do that, explain the limitation.

Prefer the host's existing environment system:

  • Conda or micromamba: create the environment from the project definition, then source the shell hook and activate it in the activation file.
  • Modules: load the exact module versions in the activation file. Combine modules with a venv or conda environment when Python packages are also needed.
  • Apptainer or Singularity: installation and image creation are cluster-specific. Use an existing shared image when possible. Do not claim that environment wraps an arbitrary command in a container; the activation contract only sources shell setup.

Set cache paths and bounded thread variables in the activation file when the workload needs them. Keep credentials out of it. Avoid sudo, system package changes, shell-profile edits, and unrequested changes to other named environments.

Before installing, use one batched, read-only probe to identify the scheduler, available environment tools, relevant modules, quotas, and shared scratch. A typica

자주 묻는 질문

활성화 파일이 패키지를 설치하나요?

아닙니다. 스킬은 활성화만 담고, 작업이 시작될 때 패키지를 설치하지 않는다고 설명합니다.

어카운팅 서비스가 중단되면 어떻게 하나요?

스킬은 그것이 환경이 없다는 뜻은 아니라고 설명하고, 스케줄러 문제 해결 참고 자료를 가리킵니다.

누가 환경을 관리하나요?

사용자나 호스트 관리자가 관리하며, 스킬은 명령만 준비합니다.

상세 정보

작성자의 원본 설명

Prepare reproducible setup instructions and validate a user-managed named software environment on an Open-Science SSH Compute Host, including direct SSH and Slurm hosts. Use when a remote job needs packages, modules, cache variables, or a repeatable activation that the host does not already provide.

repo: aipoch/open-science

인기도

GitHub 스타
5.4k
순위
#14853
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬