AGENT SKILL

lightning-studio-driver

Use when driving Lightning.ai Studios via the lightning_sdk (auth, account switching, org-aware teamspace/studio discovery, create/start/stop/ switch-machine, upload, run commands) or when installing a big licensed suite (e.g. Schrödinger) on a Studio and running GPU jobs (FEP/MD) on it. Encodes.

License 许可
MIT
最近更新
2026-11-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
lightning-studio-driver
description
Use when driving Lightning.ai Studios via the lightning_sdk (auth, account switching, org-aware teamspace/studio discovery, create/start/stop/ switch-machine, upload, run commands) or when installing a big licensed suite (e.g. Schrödinger) on a Studio and running GPU jobs (FEP/MD) on it. Encodes.

03 SKILL.md 正文

lightning-studio-driver

Drive Lightning.ai Studios programmatically via lightning_sdk (installed at C:\Python314). The lightning CLI is BROKEN on Windows (imports simple_term_menu→termios) — always use the SDK, never the CLI.

Credentials — the hard boundary

  • Auth = two env vars: LIGHTNING_USER_ID (non-secret UUID) + LIGHTNING_API_KEY (secret).
  • The assistant NEVER types/writes the API KEY into any field, env var, or config. Only READ it from the registry: [Environment]::GetEnvironmentVariable('LIGHTNING_API_KEY','User'). The USER sets the key. The assistant MAY set the non-secret LIGHTNING_USER_ID itself.
  • setx pitfall (bites every time): setx VAR=value (with =) SILENTLY FAILS to update on Windows. Must be setx VAR value (SPACE). Verify after: [Environment]::GetEnvironmentVariable('VAR','User').
  • Keys pasted in chat are compromised → tell the user to ROTATE, then re-set.
  • In-process for a run: $env:LIGHTNING_USER_ID = [Environment]::GetEnvironmentVariable('LIGHTNING_USER_ID','User') (same for key), then run python.

Auth + WHO AM I

from lightning_sdk.lightning_cloud.login import Auth
from lightning_sdk.api.user_api import UserApi
a = Auth(); a.authenticate()
uid = a.user_id
uname = getattr(UserApi()._get_user_by_id(user_id=uid), "username", None)

Auth() resolves the account from LIGHTNING_USER_ID (it overrides — mismatched user_id + key lands on the user_id's account). Confirm uid/uname match the

★ Org-owned teamspaces — the discovery gap that wastes hours

Studio lifecycle

Free-tier reality (same failure modes as the Boltz free tier)

cloud-hub rotation (like Modal's md_account_*)

Installing Schrödinger + running FEP (the heavy path)

Worked context (2026-07-04)

04 同仓库更多 Skills

Prekzursil
Prekzursil/agent-skills-toolchain

clarify-requirements

Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

openmm-md

Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

visual-review

Take screenshots of web pages and UI using Playwright for visual review and iteration

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

status

Diagnostic status report — shows metaswarm installation state, project setup, and potential issues

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

start

Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

setup

Interactive project setup — detects your project, configures metaswarm, writes project-local files

★ 0