AgentSkillsCN

xr-compose-tool

本仓库中用于基于 xr-compose 的 XRd 实验室的工具集。当您被要求启动、停止或重启实验室,运行命令与日志,通过 just 封装器管理容器,或处理 docker-compose.xr.yml 拓扑文件及 xr-compose 模板时,可直接调用此工具。

SKILL.md
--- frontmatter
name: xr-compose-tool
description: Tooling for xr-compose-based XRd labs in this repo. Use when asked to launch/stop/restart labs, run commands/logs, manage containers via the just wrapper, or work with docker-compose.xr.yml topology files and xr-compose templates.

XR Compose Tool

Overview

Provide the xr-compose tooling layer for XRd labs in this repo.

Related Skills

This skill may depend on compute infrastructure skills for Docker environment setup.

Compute Infrastructure

A compute mode must be active before launching labs. It configures the Docker environment (DOCKER_HOST, image paths) and sets the LAB_COMPUTE_* variables that session management depends on.

Selection:

  • If one compute skill is available, use it — read its SKILL.md and follow setup.
  • If multiple compute skills are available, ask the user which to use (once per session).
  • If no compute skills are available, use native compute (see references/native-compute.md).
  • If the user explicitly requests native compute, use it regardless of available compute skills.
  • Remember the selection for the session duration.

Tooling

Never use docker or docker-compose directly. Use the wrapper script and task list in references/tooling.md.

Running Labs and Compute

Running-lab state tracking, compute session management, and resource-awareness guidance are in references/running-labs.md.

Compose File Format

Follow the topology file guidance and template in references/compose-file.md.