ROSE Container Tools for Openclaw

A streamlined environment for building and running ROSE-based source code analysis tools within a Docker container to ensure toolchain compatibility.

chunhualiao
v1.0.0
Feb 12, 2026
0
1.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install rose-container-tools

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install rose-container-tools using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is ROSE Container Tools?

The ROSE Container Tools skill provides a robust framework for developing advanced source-to-source translators and AST processors. By leveraging a containerized environment, this skill bypasses the complex dependency requirements of the ROSE compiler infrastructure, such as specific GCC and Boost versions that are often incompatible with modern host operating systems. It ensures developers can focus on writing analysis logic rather than environment configuration, making it a vital part of the Openclaw Skills ecosystem for compiler engineering and static analysis.

ROSE Container Tools Use Cases

  • Developing source-to-source code translators for legacy code modernization
  • Generating call graphs and control flow graphs for large C/C++ projects
  • Performing deep AST traversals and node counting for static analysis metrics
  • Automated testing of compiler tools in a consistent, reproducible environment
  • Rapid prototyping of ROSE-based tools without manual local dependency installation

How ROSE Container Tools Works

  1. The user triggers the skill by requesting a ROSE-related task such as AST traversal or building a call graph generator.
  2. The skill initiates or connects to a Docker container containing a pre-installed ROSE infrastructure at /rose/install.
  3. The developer uses a standardized Makefile to compile C++ source code against the librose.so library inside the container.
  4. The built tool is executed against target source code files to perform analysis, unparsing, or translation.
  5. Output artifacts, such as unparsed code (rose_*.c) or DOT files for visualization, are generated in the mounted workspace.

ROSE Container Tools Setup

Ensure Docker is installed on your host system. To begin using this skill with Openclaw Skills, pull the container and start the development environment using the following commands:

# Create and start the ROSE development container
docker run -it --name rose-tools-dev \
  -v /home/liao/rose-install:/rose/install:ro \
  -v $(pwd):/work \
  -w /work \
  rose-dev:latest bash

Once inside the container, use make to build tools and make check to run automated tests.

ROSE Container Tools Data Schema & Taxonomy

The skill manages data across container volumes and follows a specific directory taxonomy for ROSE development:

Path Purpose
/rose/install Contains headers (/include/rose), libraries (/lib), and binaries.
/work The mounted workspace containing your tool source code and Makefiles.
/work/build Directory where compiled binaries and analysis tools are stored.
/work/tools Recommended directory for C++ source files (e.g., identity.cpp, callgraph.cpp).
/work/tests Location for input source files used during the make check testing phase.

ROSE Container Tools Advanced Features

  • Mandatory Makefile integration to support parallel builds via make -j and consistent compiler flags
  • Pre-configured support for multiple AST traversal patterns including simple, Top-Down, and Bottom-Up processing
  • Automated DOT file generation capabilities for visualizing complex incidence graphs and AST structures
  • Seamless host-to-container workspace mounting for persistent development within Openclaw Skills
  • Integrated troubleshooting support for common ROSE issues like library path configuration and stack size limits

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*