Source profileQuality 93/100Review permissions

aipoch/open-science/resources/skills/remote-compute-ssh/SKILL.md

remote-compute-ssh

Evaluate and use SSH Remote Compute before choosing where to run GPU, high-memory, parallel, batch, model-inference, bioinformatics, or other long-running scientific work; supports short remote commands and asynchronous jobs with automatic harvest and analysis.

Source repository stars
3,127
Declared platforms
0
Static risk flags
1
Last source update
2026-08-26
Source checked
2026-08-26

Decision brief

What it does: where it fits

Only Compute Hosts enabled for this Session are visible or callable. Discover them in one catalog; each entry has role selected or available. A non-empty selected pool is an execution instruction: run tool-backed task work on one or more selected hosts as the task requires. The…

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/aipoch/open-science --skill "resources/skills/remote-compute-ssh"
    Safe inspection promptEditorial

    Inspect the Agent Skill "remote-compute-ssh" from https://github.com/aipoch/open-science/blob/6625fe4bb8c326c3904f96b343cb0231de084942/resources/skills/remote-compute-ssh/SKILL.md at commit 6625fe4bb8c326c3904f96b343cb0231de084942. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Workflow: the analysis turn

      When the app initiates the analysis turn, it provides the jobid, status, and featuredfiles (workspace-relative paths under hpc//featured/). In this turn:

      Call attachJob(jobid).result() to get the full result dict.Inspect the outputs, run any analysis needed.Call writeartifactfile to publish outputs worth keeping as artifacts.
    2. 02

      Typical first-contact workflow

      1. await host.compute.details(providerid, { mode: 'read' }) — a Resources skeleton means first contact; populated sections mean prior sessions did the legwork, trust them. 2. Bind once: const c = host.compute.create(providerid). 3. Run one batched probe: await c.callCommand('id;…

      await host.compute.details(providerid, { mode: 'read' }) — a Resources skeleton meansBind once: const c = host.compute.create(providerid).Run one batched probe: await c.callCommand('id; module avail 2&1 | head -40', '').
    3. 03

      Choose an execution location

      Only Compute Hosts enabled for this Session are visible or callable. Discover them in one catalog; each entry has role selected or available. A non-empty selected pool is an execution instruction: run tool-backed task work on one or more selected hosts as the task requires. The…

      Only Compute Hosts enabled for this Session are visible or callable. Discover them in one catalog; each entry has role selected or available. A non-empty selected pool is an execution instruction: run tool-backed task w…Never guess or reuse a provider id absent from the catalog. A user naming a disabled host does not make it callable; explain that it must first be enabled for this Session. If no eligible host is usable, explain the blo…Each list item is a compact summary with providerid, displayname, shape, status, and role (connected, probefailed, or notprobed). Knowledge documents and resource probe snapshots are deliberately excluded from discovery…
    4. 04

      API reference

      With loginShell: true, the remote Bash login profiles run first and then Open Science attempts to source /.bashrc when it is readable. A .bashrc can deliberately return early for non-interactive shells, so variables declared after such a guard are not available. A missing .bashr…

      With loginShell: true, the remote Bash login profiles run first and then Open Science attempts to source /.bashrc when it is readable. A .bashrc can deliberately return early for non-interactive shells, so variables dec…
    5. 05

      API reference (async jobs)

      Use submitJob for long-running computations (minutes to hours). It returns immediately with a jobid; the job runs on the remote host in the background. When the job finishes, the app automatically harvests the outputs and initiates a new analysis turn — you never poll or block.

      Declared output files are selected before stdout and stderr; logs use the remaining per-job budget.The app rejects model-supplied limits above 100 MiB per file or 500 MiB per job.Harvest also preserves a fixed 2 GiB of free local disk space. Files that do not fit remain remote.

    Permission review

    Static risk signals and limitations

    Runs scripts

    medium · line 46

    The documentation asks the agent to run terminal commands or scripts.

    // Run a short remote command (throws on approval_denied / host_unreachable / timeout)

    Runs scripts

    medium · line 74

    The documentation asks the agent to run terminal commands or scripts.

    Set `loginShell: false` to run the command without either initialization step. Initialization failures

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score93/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars3,127SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    aipoch/open-science
    Skill path
    resources/skills/remote-compute-ssh/SKILL.md
    Commit
    6625fe4bb8c326c3904f96b343cb0231de084942
    License
    Apache-2.0
    Collected
    2026-08-26
    Default branch
    main
    View the original SKILL.md

    This skill covers remote compute over SSH: listing hosts, creating handles, running short remote commands (callCommand), reading/writing host knowledge docs, and the full async job lifecycle — submit → harvest → analysis turn → publish artifacts.

    Where host.compute runs: host.compute lives ONLY on the control-plane REPL kernel — run every example below with the repl_execute tool (JavaScript), the same kernel that hosts host.mcp. The python/r data kernels have NO host.compute (SSH and approvals stay outside the sandbox workspace); calling it from a python/r cell will fail with host.compute is undefined.

    Choose an execution location

    Only Compute Hosts enabled for this Session are visible or callable. Discover them in one catalog; each entry has role selected or available. A non-empty selected pool is an execution instruction: run tool-backed task work on one or more selected hosts as the task requires. The pool has no priority and does not imply automatic multi-host scheduling. If no host is selected, choose from the available entries. Read details() only for candidates that need closer evaluation.

    Never guess or reuse a provider id absent from the catalog. A user naming a disabled host does not make it callable; explain that it must first be enabled for this Session. If no eligible host is usable, explain the blocker and ask the user how to proceed.

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

    Each list item is a compact summary with provider_id, display_name, shape, status, and role (connected, probe_failed, or not_probed). Knowledge documents and resource probe snapshots are deliberately excluded from discovery results.

    API reference

    // List this Session's enabled hosts as one role-bearing compact catalog
    const hosts = await host.compute.listHosts()
    
    // Compatibility discovery names remain available; both still hide disabled hosts.
    const visibleHosts = await host.compute.listRegistered()
    const selectedHosts = await host.compute.listPreferred()
    
    // Create a handle to a specific host (no network call)
    const c = host.compute.create('ssh:<alias>')
    
    // Run a short remote command (throws on approval_denied / host_unreachable / timeout)
    const result = await c.callCommand('<shell command>', '<one-line intent for the approval card>', {
      loginShell: true, // default: true — runs login profiles, then readable ~/.bashrc, before this command
      timeoutSeconds: 60 // optional — the host applies its own default (60s) when omitted
    })
    // result → { exit_code, stdout, stderr, truncated }
    
    // Read the host knowledge doc and resource probe snapshot on demand.
    // probe is explicitly null when this host has never been probed.
    const info = await host.compute.details('ssh:<alias>', { mode: 'read' })
    
    // Append a note to the host knowledge doc (agent writes; 32 KB cap enforced)
    await host.compute.details('ssh:<alias>', {
      mode: 'append',
      text: '\n## Note\nlearned X on <date>'
    })
    
    // Replace the entire host knowledge doc (oldText must match the current doc exactly)
    await host.compute.details('ssh:<alias>', {
      mode: 'replace',
      text: '<new full doc>',
      oldText: info.doc // from the read above
    })
    

    With loginShell: true, the remote Bash login profiles run first and then Open Science attempts to source ~/.bashrc when it is readable. A .bashrc can deliberately return early for non-interactive shells, so variables declared after such a guard are not available. A missing .bashrc is a no-op. Set loginShell: false to run the command without either initialization step. Initialization failures are reported through the normal command result/error behavior.

    API reference (async jobs)

    Use submitJob for long-running computations (minutes to hours). It returns immediately with a job_id; the job runs on the remote host in the background. When the job finishes, the app automatically harvests the outputs and initiates a new analysis turn — you never poll or block.

    // Reuse the `candidates` selected above from the Session catalog.
    
    // Submit a non-blocking job — returns immediately after the user approves
    const c = host.compute.create('ssh:<alias>')
    const job = await c.submitJob(
      '<one-line intent for the approval card>', // shown in the approval card
      '<shell command>', // command to run remotely
      {
        timeoutSeconds: 3600, // optional; default 24 h, max 7 days
        inputs: [
          { src: 'in.dat', dstFilename: 'in.dat' }, // stage a workspace file
          { remotePath: 'ssh:<alias>/<abs_path>' } // link a remote file (no transfer)
        ],
        outputs: [
          '*.result', // featured (default visibility)
          { glob: '*.json', visibility: 'featured' }, // explicitly featured
          { glob: '*.log', visibility: 'hidden' }, // hidden (diagnostic, not shown in card)
          { glob: 'checkpoints/**', residency: 'remote' } // leave on remote — recorded in left_on_remote
        ],
        harvest: {
          exclude: ['work/**'], // never harvest these paths
          maxFileMb: 100, // single-file hard maximum (100 MiB)
          maxTotalMb: 500 // per-job hard maximum, including stdout/stderr (500 MiB)
        }
      }
    )
    // job → { job_id, provider_id, status: 'submitted', remote_workdir }
    print(job.job_id) // end the cell — kernel never blocks on compute
    

    End the cell here. Do NOT write a polling loop. The app runs the poller and harvest in the background. When the job finishes, the app automatically starts a new analysis turn in this conversation — the conversation is NOT locked while the job runs, so the user can keep chatting.

    Harvest safety boundaries

    • Declared output files are selected before stdout and stderr; logs use the remaining per-job budget.
    • The app rejects model-supplied limits above 100 MiB per file or 500 MiB per job.
    • Harvest also preserves a fixed 2 GiB of free local disk space. Files that do not fit remain remote.

    Behavior boundaries

    • While the job runs: the conversation is open. The user can send messages; you can handle other tasks. No blocking wait.
    • When the job finishes: the app initiates a new analysis turn automatically. You do not trigger this — it happens without any action on your part.
    • Do NOT write a loop calling attachJob().status() to wait for completion. That is the app's job, not yours. Writing such a loop would block the conversation for the entire job duration.

    Check job status (non-blocking read, for informational use)

    // Non-blocking DB read — no SSH. Use if you need a status snapshot mid-conversation.
    const handle = c.attachJob(job.job_id)
    const s = await handle.status()
    // s → { job_id, status, exit_code, stdout_tail, stderr_tail, remote_workdir }
    // status: 'submitted' | 'running' | 'success' | 'failed' | 'timeout' | 'error'
    

    submitJob status values

    statusmeaning
    submittedaccepted; background dispatch in progress
    runningremote process confirmed alive (pid recorded)
    successexit code 0
    failednon-zero exit (job_failed) or process vanished (process_vanished)
    timeoutexceeded timeoutSeconds
    errornever reached the remote host (host_unreachable / dispatch_failed)

    Workflow: the analysis turn

    When the app initiates the analysis turn, it provides the job_id, status, and featured_files (workspace-relative paths under hpc/<job_id>/featured/). In this turn:

    1. Call attachJob(job_id).result() to get the full result dict.
    2. Inspect the outputs, run any analysis needed.
    3. Call write_artifact_file to publish outputs worth keeping as artifacts.
    // In the analysis turn — read the full harvested result (non-blocking DB + directory scan)
    const c = host.compute.create('ssh:<alias>')
    const r = await c.attachJob(job_id).result()
    // r → {
    //   job_id, status, exit_code,
    //   featured_files: ['hpc/<job_id>/featured/out.result', ...],   // workspace-relative
    //   hidden_files:   ['hpc/<job_id>/hidden/run.log', ...],
    //   output_files:   [...featured_files, ...hidden_files],         // featured first
    //   left_on_remote: [{ uri: 'ssh:<alias>/<abs_path>', size_mb: 420, reason: 'residency:remote' }],
    //   remote_workdir: '.openscience/jobs/<job_id>',
    //   stdout_tail: '...last 64 KB...',
    //   stderr_tail: '...last 64 KB...'
    // }
    

    Files land in the workspace at hpc/<job_id>/ and are readable directly:

    # python cell — files are in the workspace; open() works with workspace-relative paths
    import pandas as pd
    df = pd.read_csv('hpc/<job_id>/featured/results.csv')
    

    Publish artifacts

    Harvest only lands files in the workspace — it does NOT publish artifacts automatically. Call write_artifact_file in the analysis turn to publish outputs worth keeping:

    // In the analysis turn — publish featured outputs as artifacts (bound to this turn)
    for (const path of r.featured_files) {
      await host.mcp('artifacts', 'write_artifact_file', { path })
    }
    // Artifacts appear in the artifact panel with provenance tied to this analysis turn.
    

    When the job fails

    Read r.exit_code and r.stderr_tail. An infrastructure failure (wrong partition, env not activated, missing module, OOM, walltime) is yours to fix — adjust command, record the fix, fresh c.submitJob(). A harvest failure (r.stderr_tail notes it, r.remote_workdir is preserved) means some files were not downloaded — the remote workdir is kept so you can c.callCommand('ls ...', intent='...') to inspect what's there.

    Chaining jobs via left_on_remote

    Large outputs declared with residency: 'remote' or files that exceed the size threshold stay on the remote host and appear in r.left_on_remote. Use their URIs directly as remotePath inputs to the next job — no local round-trip:

    // In the analysis turn — chain a left_on_remote output into the next job
    const big_output_uri = r.left_on_remote[0].uri // e.g. 'ssh:biowulf//scratch/jobs/<id>/big.h5'
    
    const job2 = await c.submitJob(
      'process big.h5 output from job 1',
      'python process.py --input big.h5 --out summary.csv',
      {
        inputs: [
          { remotePath: big_output_uri } // symlinked in job workdir, no transfer
        ],
        outputs: ['summary.csv']
      }
    )
    

    Submitting several jobs

    Submit a batch and let each job's analysis turn handle its results independently. The app triggers a separate analysis turn for each job as it finishes (or merges simultaneous completions into one turn with multiple job_ids):

    // Submit multiple jobs — end the cell after all submits
    const c = host.compute.create('ssh:gpu-cluster')
    const jobs = []
    for (const seed of [0, 1, 2, 3, 4]) {
      const job = await c.submitJob(
        `AlphaFold seed ${seed}`,
        `python fold.py --seed ${seed} --in input.fasta --out ranked.pdb`,
        {
          inputs: [{ src: 'input.fasta', dstFilename: 'input.fasta' }],
          outputs: [{ glob: '*.pdb', visibility: 'featured' }],
          timeoutSeconds: 3600
        }
      )
      jobs.push(job.job_id)
    }
    print(jobs) // end the cell — no waiting, no loop
    

    The app triggers one analysis turn per job completion (or a merged turn for simultaneous completions). Do NOT write a loop collecting all results — each analysis turn handles its job independently.

    Session concurrency control

    Cap how many non-terminal jobs run at once across all providers in this conversation. Jobs that would exceed the cap enter a queued state and auto-dispatch when a slot frees up. These two methods live on the handle returned by create(), but they are session-scoped — they act on the whole conversation, not on the handle's bound provider.

    const c = host.compute.create('ssh:<alias>')
    
    // Set the conversation-wide limit (positive integer 1..500).
    await c.setConcurrencyLimit(2)
    
    // Read the session's concurrency status (non-blocking DB read, no SSH).
    const s = await c.status()
    // s → {
    //   session_limit: number | null,            // the cap you set, or null if unset
    //   active_count: number,                    // non-terminal jobs running now
    //   queued_count: number,                    // jobs waiting for a slot
    //   provider_ceilings: Record<string, number> // per-host hard limits (host config)
    // }
    

    callCommand error handling

    try {
      const r = await c.callCommand('cmd', '<intent>')
    } catch (e) {
      const code = e.error_code || ''
      if (code === 'host_unreachable') {
        // SSH connectivity issue — needs user action (VPN, key, etc.); e.retry_after_user_action is true
      } else if (code === 'approval_denied') {
        // User declined the approval card
      } else if (code === 'timeout') {
        // Command exceeded timeoutSeconds
      }
    }
    

    Typical first-contact workflow

    1. await host.compute.details(provider_id, { mode: 'read' }) — a ## Resources skeleton means first contact; populated sections mean prior sessions did the legwork, trust them.
    2. Bind once: const c = host.compute.create(provider_id).
    3. Run one batched probe: await c.callCommand('id; module avail 2>&1 | head -40', '<intent>').
    4. Append what you learned via await host.compute.details(..., { mode: 'append' }).

    What to record in the knowledge doc

    The knowledge doc is the only state that survives across sessions. Record:

    • Scheduler type and any known partition/account combinations that worked.
    • Environment activation commands (e.g. module load X/<ver>, conda activate <env>).
    • Verified invocations tagged verified <date>; user-provided info tagged per user <date>.
    • Gotchas specific to this host or provider.

    Do NOT record per-job state, transient errors, or facts about your project — those belong elsewhere. When a session ends without new host-specific learnings, write nothing.

    Frequently asked questions

    What to verify before installation and use

    What does the remote-compute-ssh source document cover?

    Only Compute Hosts enabled for this Session are visible or callable. Discover them in one catalog; each entry has role selected or available. A non-empty selected pool is an execution instruction: run tool-backed task work on one or more selected hosts as the task requires. The…

    How do I install remote-compute-ssh?

    The source record exposes this install command: npx skills add https://github.com/aipoch/open-science --skill "resources/skills/remote-compute-ssh". Inspect the command and pinned source before running it.

    Which permission-related actions were detected?

    Static rules flagged exec-script in the source; the page lists the matching lines and excerpts.

    Alternatives

    Compare before choosing

    Computed 9534,478

    K-Dense-AI/scientific-agent-skills

    simpy

    Build, inspect, test, and analyze bounded process-based discrete-event simulations with SimPy, including events, resources, interrupts, monitoring, replications, warm-up, and reproducible output analysis.

    Computed 94158

    datadog-labs/agent-skills

    agent-observability-eval-bootstrap

    Bootstrap evaluators from production traces — by default propose online LLM-judge evaluators and, after you confirm, create them in Datadog as disabled drafts (never auto-enabled); on request emit Python SDK code or a framework-agnostic JSON spec instead. Use when user says "bootstrap evaluators", "generate evaluators", "create evals from traces", "eval bootstrap", "write evaluators", "build eval suite", "publish evaluators", or wants to generate BaseEvaluator/LLMJudge code or online judge confi

    Computed 936

    mgiovani/cc-arsenal

    ci-local

    Run the checks a GitHub Actions workflow would run, locally, when Actions is unavailable or out of quota. Parses .github/workflows/*.yml, extracts the jobs/steps that gate merges (lint, typecheck, test, build), translates them to local commands respecting the workflow's pinned node/python versions and env, executes them sequentially, and reports a parity table of what passed locally vs. what can't be replicated (service containers, secrets, matrix dimensions) and why. Activates on "CI quota", "A

    Computed 9164

    Jamie-BitFlight/claude_skills

    comprehensive-test-review

    Performs checklist-driven review of pytest test suites against coverage thresholds (80% line/branch minimum, 95% for critical paths), AAA pattern adherence, pytest-mock usage, test isolation, naming clarity, type hints, and flaky pattern detection. Use when auditing test quality before a release, reviewing coverage gaps, checking tests for completeness or best practices, or validating mocking standards. Accepts a test file or directory as input and outputs prioritized findings grouped by HIGH, M