cloudai-remote-experiment
Skill103 starsChanged 58 days agoApache-2.0View on GitHub
Run, monitor, stop, and retrieve a CloudAI experiment (test scenario) on a remote Slurm or standalone cluster.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- cloudai-config-contributionSkill
- cloudai-docs-contributionSkill
- cloudai-remote-installSkill
- cloudai-workload-contributionSkill
- pr-managementSkill
- security-assessmentSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use cloudai-remote-install first.
- Distinctive: line 10
Use its wrapper for all remote commands and transfers, not direct SSH.
- Very specific: line 11
Run the CloudAI controller as a detached daemon that survives disconnects, with stdin closed and output redirected.
- Distinctive: line 17
Do not run compute-heavy standalone workloads on login nodes without explicit user approval.
- Distinctive: line 18
Do not change partition, resources or workload to bypass queue waits without user approval.
- Very specific: line 23
Use background monitoring when available.
- Very specific: line 24
Check the recorded process with ps and read bounded log increments no more than once per minute.
- Distinctive: line 26
No recursive scans, whole-log rereads or continuous result syncing on shared storage.
- Very specific: line 27
Never use squeue --me or equivalent user-wide queue queries.
- Distinctive: line 34
Stop confirmed stuck work after its stall timeout, using repeated evidence of missing expected progress in an active allocation.
- Distinctive: line 36
Before stopping, recheck process identity and job ownership.
- Distinctive: line 42
Verify termination and allocation release.
- Very specific: line 49
After success, failure or cancellation, copy the exact run directory into results/<cluster-nickname>/<run-directory>/ locally, without …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run
- Use cloudai-remote-install first. Identify this checkout's remote installation and system config; do not use another checkout's deployment. Use its wrapper for all remote commands and transfers, not direct SSH.
- Run the CloudAI controller as a detached daemon that survives disconnects, with stdin closed and output redirected. Keep separate per-run controller/debug logs in remote home, not Lustre. Record the actual controller PID, start time, deployment, selected configs, exact results directory and eventual exit status.
- Establish expected progress and a workload-specific stall timeout before launching. Include legitimate silent phases such as initialization; ask if expectations are unclear.
- Do not run compute-heavy standalone workloads on login nodes without explicit user approval.
- Do not change partition, resources or workload to bypass queue waits without user approval.
Monitor and stop
- Stay responsible for monitoring until the run finishes or is explicitly handed back.
Use background monitoring when available; stay quiet when unchanged and stop monitoring when done.
Check the recorded process with
psand read bounded log increments no more than once per minute; back off when unchanged. Sample only a few known artifacts for progress. No recursive scans, whole-log rereads or continuous result syncing on shared storage. - Never use
squeue --meor equivalent user-wide queue queries. Let CloudAI poll Slurm; do not add scheduler polling loops. If diagnosis requires scheduler state, make a targeted query for this run's recorded job IDs only. - Track submitted job IDs from this run's own log. Completion metadata can corroborate ownership but may not exist while jobs are running. Never infer ownership from username, job name or checkout alone: a checkout may have several runs.
- Silence alone is not a stall, and queued jobs are not wasting an allocation. Stop confirmed stuck work after its stall timeout, using repeated evidence of missing expected progress in an active allocation. Ask if the evidence is ambiguous.
- Before stopping, recheck process identity and job ownership. Send SIGTERM to this
run's controller and allow a bounded grace period for finalization. If it does not exit,
keeps submitting jobs, or leaves DSE workers running, recheck ownership and send SIGKILL
to the surviving controller/workers belonging to this run. Once submissions have stopped,
refresh this run's job IDs and
scancelits remaining exact allocation IDs, including queued jobs. Killing local processes does not release Slurm allocations. Verify termination and allocation release. For standalone runs, stop only this run's process tree. Never use user-wide cancellation or broad process-name matching. Preserve logs explaining why the run was stopped.
Results
- Confirm completion from logs, job outcomes and expected artifacts, not just a vanished PID or zero exit code.
After success, failure or cancellation, copy the exact run directory into
results/<cluster-nickname>/<run-directory>/locally, without overwriting another run. - Derive the cluster nickname from the selected config and SSH target, not blindly
from the config name:
<cluster>-for-testingstill belongs under<cluster>. Ask if ambiguous. - Retrieve with
deploy.py HOST fetch 'REMOTE_RUN_DIR' 'results/<cluster-nickname>/'. Copy this run's output, not the shared results tree; preserve remote files. Report the outcome and local results path, including any incomplete retrieval.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

