본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

rose-container-tools

chunhualiao 제작

DevOps & Cloud
584clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Build and run ROSE compiler tools using ROSE installed in a Docker container.

설명

이 스킬이 하는 일

Provides a Makefile-based workflow for building and running ROSE compiler tools inside a Docker container. ROSE requires GCC 7-10 and specific Boost versions that most modern hosts lack — the container supplies a pre-configured environment with ROSE at /rose/install. Covers identity translators, call graph generators, and AST traversal tools.

Using a pre-configured container avoids installing GCC 7-10 and the specific Boost version ROSE requires, which typically conflicts with modern host toolchains.

사용 시점

  • Generating call graphs from C/C++ source code
  • Writing source-to-source transformations on a codebase
  • Counting and inspecting AST node types across project files
  • Building tools that link against librose.so without configuring the host compiler
  • Running regression tests on ROSE-based analysis tools with make check

예시 워크플로

입력

User asks: Build and test a call graph generator for a C source file

에이전트
  1. 1

    Start the rose-tools-dev container with the ROSE install and workspace directories mounted

  2. 2

    Place callgraph.cpp in the tools/ directory

  3. 3

    Create a Makefile with ROSE include and lib paths, rpath linker flag, and a check target

  4. 4

    Run make inside the container to compile the tool against librose.so

  5. 5

    Run make check to execute the tool against test C files and verify callgraph.dot output

출력

callgraph.dot file containing the call graph of the input C source

요구 사항

  • Docker installed on the host machine
  • rose-dev Docker image with ROSE pre-installed
  • ROSE installation directory available to mount at /rose/install inside the container

설치

clawhub install chunhualiao/rose-container-tools

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크