DockerRos2Development: Constraining Agents with Skills for Dockerized ROS2 Development

Preface

In ROS2 projects, setting up a local environment capable of compiling, running, and launching rviz2 often involves managing distributions, dependencies, DDS, and device permissions. While moving development into Docker or docker-compose alleviates the “works on my machine” dilemma, Dockerfiles, multi-container networking, GPU/USB passthrough, and colcon caching can lead Agents to offer generic suggestions.

The following introduces DockerRos2Development (coordinate @user_3c6cb52e/docker-ros2-development-4wa1) on SkillHub. It encapsulates the key points of ROS2 development within Docker scenarios into a universal SKILL.md. Once installed into the Agent’s skills directory, it structures responses based on the scenarios and image hierarchies defined in the skill body, rather than piecing together solutions from scratch every time.

What is This

DockerRos2Development is a community-sourced (community) Agent Skill, version 1.0.0, published by user_3c6cb52e. It is categorized under dev-programming (marked as “Developer Tools” in the skill package metadata) on SkillHub. The public description is: A dedicated DockerRos2Development skill to help AI Agents efficiently complete related tasks.

The skill declares requires_api_key=false, requiring no additional API Key. The license is MIT; metadata indicates support for frameworks such as Claude Code, Codex, Hermes Agent, OpenClaw, QClaw, WorkBuddy, and is multi-platform. Both the repository and homepage fields point to https://github.com/1991513ccie-png.

According to SkillHub crawl data: Rating 100000, 1106 downloads (page statistics field, subject to change over time).

Core Functions

The title of the skill body is “Docker-Based ROS2 Development Skill”. The verified capability boundaries are as follows (all derived from the SKILL.md within the package).

Applicable Trigger Scenarios

In the “When to Use This Skill” section, the skill lists scenarios where the Agent should activate this skill, including:

  1. Writing Dockerfiles for ROS2 workspaces with colcon builds
  2. Configuring docker-compose for multi-container robotic systems
  3. Troubleshooting DDS discovery failures between containers (CycloneDDS, FastDDS)
  4. Configuring GPU passthrough for perception nodes using the NVIDIA Container Toolkit
  5. Forwarding X11 or Wayland displays for rviz2 and rqt
  6. Managing USB device passthrough for cameras, LiDAR, serial ports, etc.
  7. Setting up Docker-based CI/CD for ROS2 build and testing
  8. Writing VS Code devcontainers with ROS2 extensions
  9. Optimizing Docker layer caching for colcon workspaces
  10. Distinguishing between development and deployment images using multi-stage builds

ROS2 Official Image Hierarchy

The skill uses a diagram to illustrate the layered relationship of OSRF images and emphasizes selecting smaller base images when dependencies allow. The hierarchy scales from ros:<distro>-ros-core (approx. 700 MB) up to ros:<distro>-desktop-full (approx. 3.5 GB), including tags like ros-base, perception, and desktop in between. The body includes a comparison table of image tags, base systems, sizes, and usage (Note: In the currently publicly released package, this table is truncated at the end of the file. If the table appears incomplete after installation, please refer to the official OSRF documentation).

Installation and Activation

The official SkillHub page requires installation of the coordinate @user_3c6cb52e/docker-ros2-development-4wa1 following the SkillHub Installation and Priority Source Configuration.

1. Install SkillHub CLI (if not already installed)

First, check if the CLI is available:

command -v skillhub && skillhub --version

If not installed, you can execute the full installation (recommended by documentation):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install this skill to the current Agent’s skills directory

During installation, you must use --dir to point to the actual skills directory read by the current Agent; otherwise, it defaults to ./skills/ where it might not be recognized. Common path examples provided in the documentation:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Under Cursor, you can execute:

skillhub install @user_3c6cb52e/docker-ros2-development-4wa1 --dir ~/.cursor/skills/

Upon successful installation, the skill will appear in a subdirectory named similar to @user_3c6cb52e/docker-ros2-development-4wa1, containing the SKILL.md. Follow the instructions for your specific client to enable or refresh skills, and it will be loaded in new sessions.

Typical Usage

This skill does not have a standalone command-line tool; usage involves letting an Agent with the skill enabled handle Docker + ROS2 tasks in conversation, adhering to the scenarios and image selection principles found in SKILL.md.

Reproducible workflow example:

  1. Complete the skillhub install from the previous section and confirm the skill directory exists under ~/.cursor/skills/ (or your specific path).
  2. Start a new conversation in Cursor, describe the task in natural language, and explicitly name the scenario. For example: “Following the DockerRos2Development skill, write a multi-stage Dockerfile for a ROS2 Jazzy workspace using ros-base as the base image, and explain how to split the colcon cache layers.”
  3. If involving multi-container setups, specify DDS and networking: “Two containers are running different nodes and FastDDS discovery fails; please troubleshoot the docker-compose network and environment variables based on the DDS debugging approach in the skill.”

The Agent should select options based on the “When to Use” section and image hierarchy diagram within the skill, rather than arbitrarily choosing large images like desktop-full.

Applicable Scenarios and Notes

Who it is for: Engineers already using or planning to use Docker / compose / devcontainer for ROS2 development, who wish for the Agent to align with a consistent checklist regarding Dockerfiles, networking, DDS, GPU/Display/USB, CI, and other topics.

Limitations and Notes:

  • The SkillHub listing page description is brief; specific steps should be based on the installed SKILL.md. The body text in the current 1.0.0 package may be incomplete at the image comparison table; always verify image sizes and tags against official sources like OSRF Docker Images.
  • The GitHub homepage in the skill metadata is a link to the publisher’s account, not equivalent to official ROS2 or Docker documentation.
  • Running physical devices, GPUs, and graphical interfaces inside containers relies on host drivers and permissions. The Agent can only provide configuration strategies; you still need to verify on the target machine.
  • Statistics (downloads, ratings) are from the SkillHub page and are for reference only.

Conclusion

DockerRos2Development encapsulates high-frequency scenarios of Dockerized ROS2 development and OSRF image layering into a Skill loadable by Agents. Combined with a single SkillHub installation command, it can be placed into the skills directory of environments like Cursor. To check versions and coordinates, you can open the SkillHub page:

https://www.skillhub.cn/skills/user_3c6cb52e/docker-ros2-development-4wa1

API Entry (indexed from the same source as the page): https://api.skillhub.cn/user_3c6cb52e/docker-ros2-development-4wa1

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye