package-xml-cmake

Configure ROS 2 package.xml and CMakeLists.txt for new packages.

18|2|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/wimblerobotics/ros2-copilot-skills --skill package-xml-cmake
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: package-xml-cmake
Source: https://github.com/wimblerobotics/ros2-copilot-skills/tree/main/package-xml-cmake
Command: npx skills add https://github.com/wimblerobotics/ros2-copilot-skills --skill package-xml-cmake

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Every ROS 2 package requires a package.xml and a CMakeLists.txt to declare dependencies and drive the build system. This Skill helps automate generation and validation of these files during package creation.

Core Features & Use Cases

  • Generate proper package.xml dependencies for build, exec, and test.
  • Generate a CMakeLists.txt that correctly links dependencies and install targets.
  • Handle both rosidl-enabled and non-rosidl packages across Jazzy and Rolling.

Quick Start

Generate package.xml and CMakeLists.txt for a new ROS 2 package, including declared dependencies.

Frequently Asked Questions about package-xml-cmake

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate package.xml and CMakeLists.txt for a new ROS 2 package?

To generate package.xml and CMakeLists.txt for a new ROS 2 package, this Skill automates configuration of required fields, dependency declarations, and install targets for both ament_cmake and ament_python workflows.

How do I configure ROS 2 build dependencies across Jazzy and Rolling releases?

To configure ROS 2 build dependencies across Jazzy and Rolling releases, this Skill guides declarations for build tool, exec, and test dependencies in package.xml and links them properly in CMakeLists.txt.

Does this ROS 2 build configuration tool support ament_python workflows?

Yes, this ROS 2 build configuration tool supports ament_python workflows alongside ament_cmake, correctly handling package.xml dependencies and install targets for both build system types across Jazzy and Rolling.

What is the best way to set up CMakeLists.txt install targets for rosidl-enabled packages?

The best way to set up CMakeLists.txt install targets for rosidl-enabled packages is to automate generation through this Skill, which configures correct linking and export targets for both rosidl and non-rosidl packages.

Why does my ROS 2 package build fail when dependencies are missing from CMakeLists.txt?

Your ROS 2 package build fails when dependencies are missing from CMakeLists.txt because the build system cannot locate required libraries. This Skill prevents errors by validating and generating complete dependency declarations.

Can I use this Skill to validate existing package.xml files before building a ROS 2 workspace?

Yes, you can use this Skill to validate existing package.xml files before building a ROS 2 workspace, as it checks and implements required fields including build tool, exec, and build dependencies across Jazzy and Rolling.