ros2_package_scaffolder

Generate Antigravity-compliant ROS 2 C++ and Python package scaffolds.

8|2|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/p1tl0rd/antigravity-ros2-skills --skill ros2-package-scaffolder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ros2_package_scaffolder
Source: https://github.com/p1tl0rd/antigravity-ros2-skills/tree/main/.agent/skills/ros2-package-scaffolder
Command: npx skills add https://github.com/p1tl0rd/antigravity-ros2-skills --skill ros2-package-scaffolder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically scaffold ROS 2 packages (C++/Python) following the Antigravity architecture, standardizing structure, linting, and tooling setup to reduce boilerplate.

Core Features & Use Cases

  • Automatically generate ament_cmake or ament_python package scaffolds with conventional ROS 2 layout.
  • Add and align linting/formatting tooling (.clang-format), and adjust CMakeLists.txt to enable ament_lint_auto, while preserving ROS 2 conventions.
  • Create an interface package antgravity_interfaces with rosidl definitions, removing default src/include and configuring generation for messages, services, and actions.
  • Ensure Python package templates include setup.cfg with preserved ROS 2 sections for develop/install, and include a test/ directory with lint/test scripts.

Quick Start

Tell the Agent to scaffold a new ROS 2 package using the Antigravity blueprint for C++ or Python.

Frequently Asked Questions about ros2_package_scaffolder

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

FAQPage Schema
How do I scaffold a ROS 2 package with ament_lint_auto and .clang-format included?

Scaffolding a ROS 2 package with ament_lint_auto and .clang-format is automated by generating an Antigravity-compliant structure that updates CMakeLists.txt and aligns linting tooling for C++ or Python projects.

What is the best way to create a ROS 2 interface package with rosidl generation?

Creating a ROS 2 interface package with rosidl generation is handled by building an antgravity_interfaces package that removes default src/include directories and configures message, service, and action generation.

Does this scaffolding tool support both ament_cmake and ament_python ROS 2 layouts?

Yes, the scaffolding tool supports both ament_cmake and ament_python ROS 2 layouts, generating conventional structures and preserving setup.cfg sections for develop and install environments.

How do I convert a main.cpp file into a ROS 2 Component class during package setup?

Converting main.cpp into a ROS 2 Component class is performed automatically during package scaffolding, transforming standard entry points into compliant Component classes for the Antigravity architecture.

What does the Antigravity blueprint include for ROS 2 Python package testing?

The Antigravity blueprint for ROS 2 Python packages includes a dedicated test directory with lint and test scripts, ensuring testing setup is integrated alongside the preserved ROS 2 setup.cfg sections.