ros2-engineering-skills
Comprehensive ROS 2 engineering guide covering workspace setup, node architecture, communication patterns (topics/services/actions with QoS), lifecycle and component nodes, launch composition, tf2/URDF, ros2_control hardware interfaces, real-time constraints, Nav2, MoveIt 2, perception pipelines, simulation (Gazebo/Isaac Sim), security (SROS2/DDS), micro-ROS (MCU/RTOS), multi-robot systems (fleet management/Open-RMF), testing, debugging, deployment, and ROS 1 migration. Trigger whenever the user works on ROS 2 code, packages, launch files, URDF/xacro, DDS configuration, ros2_control, Nav2, MoveIt 2, or any robotics middleware task involving rclcpp, rclpy, colcon, ament, rosbag2, ros2 CLI tools, Gazebo/Isaac Sim, micro-ROS, SROS2, or multi-robot coordination. Also trigger for ROS 1 to ROS 2 migration, cross-compilation, Docker-based ROS 2 workflows, and CI/CD for robotics.
What this skill does
# ROS 2 Engineering Skills A progressive-disclosure skill for ROS 2 development — from first workspace to production fleet deployment. Each section below gives you the essential decision framework; detailed patterns, code templates, and anti-patterns live in the `references/` directory. Read the relevant reference file before writing code. ## How to use this skill 1. Identify what the user is building (see Decision Router below). 2. Read the matching `references/*.md` file for detailed guidance. 3. Apply the Core Engineering Principles in every piece of code you generate. 4. When multiple domains intersect (e.g. Nav2 + ros2_control), read both files. ## Decision router | User is doing... | Read | |---------------------------------------------------|-----------------------------------| | Creating a workspace, package, or build config | `references/workspace-build.md` | | Writing nodes, executors, callback groups | `references/nodes-executors.md` | | Topics, services, actions, custom interfaces, QoS | `references/communication.md` | | Lifecycle nodes, component loading, composition | `references/lifecycle-components.md` | | Launch files, conditional logic, event handlers | `references/launch-system.md` | | tf2, URDF, xacro, robot_state_publisher | `references/tf2-urdf.md` | | ros2_control, hardware interfaces, controllers | `references/hardware-interface.md` | | Real-time constraints, PREEMPT_RT, memory, jitter | `references/realtime.md` | | Nav2, SLAM, costmaps, behavior trees | `references/navigation.md` | | MoveIt 2, planning scene, grasp pipelines | `references/manipulation.md` | | Camera, LiDAR, PCL, cv_bridge, depth processing | `references/perception.md` | | Unit tests, integration tests, launch_testing, CI | `references/testing.md` | | ros2 doctor, tracing, profiling, rosbag2 | `references/debugging.md` | | Docker, cross-compile, fleet deployment, OTA | `references/deployment.md` | | Gazebo, Isaac Sim, sim-to-real, use_sim_time | `references/simulation.md` | | SROS2, DDS security, certificates, supply chain | `references/security.md` | | micro-ROS, MCU/RTOS, XRCE-DDS, rclc | `references/micro-ros.md` | | Multi-robot fleet, Open-RMF, DDS discovery scale | `references/multi-robot.md` | | Message types, units, covariance, frame conventions | `references/message-types.md` | | ROS 1 migration, ros1_bridge, hybrid operation | `references/migration-ros1.md` | When a task spans multiple domains, read all relevant files and reconcile conflicting recommendations by favoring safety, then determinism, then simplicity. **Cross-cutting concern — Security:** Security is not isolated to `references/security.md`. Every domain should consider its security implications: hardware interfaces need safe shutdown on auth failure, DDS topics may need encryption, deployment images need supply chain verification, and fleet communication must use TLS. When reviewing code in any domain, check whether the data path crosses a trust boundary. ## Core engineering principles These apply to every ROS 2 artifact you produce, regardless of domain. ### 1. Distro awareness Always ask which ROS 2 distribution the user targets. Key differences: | Feature | Foxy (**EOL**) | Humble (LTS) | Jazzy (LTS) | Kilted (non-LTS) | Rolling | |---------------------------|----------------------|--------------------|--------------------|--------------------|--------------------| | EOL | Jun 2023 (**ended**) | May 2027 | May 2029 | Nov 2025 | Rolling | | Ubuntu | 20.04 | 22.04 | 24.04 | 24.04 | Latest | | Default DDS | Fast DDS | Fast DDS | Fast DDS | Fast DDS | Fast DDS | | Zenoh support | — | — | — | Tier 1 | Tier 1 | | Type description support | No | No | Yes | Yes | Yes | | Service introspection | No | No | Yes | Yes | Yes | | EventsExecutor | No | No | Experimental | Stable (+ rclpy) | Stable (+ rclpy) | | Default bag format | sqlite3 | sqlite3 | MCAP | MCAP | MCAP | | ros2_control interface | N/A (separate) | 2.x | 4.x | 4.x | Latest | | CMake recommendation | ament_target_deps | ament_target_deps | either | target_link_libs | target_link_libs | When the user does not specify, default to the latest LTS (Jazzy). Pin the exact distro in Dockerfile, CI, and documentation so builds are reproducible. ### 2. C++ vs Python decision Choose the language based on the node's role, not personal preference. **Use rclcpp (C++) when:** - The node sits in a control loop running ≥100 Hz - Deterministic memory allocation matters (real-time path) - The node is a hardware driver or controller plugin - Intra-process zero-copy communication is required **Use rclpy (Python) when:** - The node is orchestration, monitoring, or parameter management - Rapid prototyping with frequent iteration - Heavy use of ML frameworks (PyTorch, TensorFlow) that are Python-native - The node does not sit in a latency-critical path **Mixed stacks are normal.** A typical robot has C++ drivers/controllers and Python orchestration/monitoring. Note: `component_container` (composition) only loads C++ components via pluginlib. Python nodes run as separate processes, but can share a launch file and communicate via zero-overhead intra-host DDS. **Intra-process communication** works for any nodes sharing a process — not only composable components. Any nodes instantiated in the same process with `use_intra_process_comms(true)` can use zero-copy transfer. ### 3. Package structure conventions Every package should follow this layout. Consistency across a workspace reduces onboarding time and makes CI scripts portable. ``` my_package/ ├── CMakeLists.txt # or setup.py for pure Python ├── package.xml # format 3, with <depend> tags ├── config/ │ └── params.yaml # default parameters ├── launch/ │ └── bringup.launch.py # Python launch file ├── include/my_package/ # C++ public headers (if library) ├── src/ # C++ source files ├── my_package/ # Python modules (if ament_python or mixed) ├── test/ # gtest, pytest, launch_testing ├── urdf/ # URDF/xacro (if applicable) ├── msg/ srv/ action/ # custom interfaces (dedicated _interfaces package preferred) └── README.md ``` Separate interface definitions into a `*_interfaces` package so downstream packages can depend on interfaces without pulling in implementation. ### 4. Parameter discipline - Declare every parameter with a type, description, range, and default in the node constructor — never use undeclared parameters. - Use `ParameterDescriptor` with `FloatingPointRange` or `IntegerRange` for numeric bounds. The parameter server rejects out-of-range values at set time. - Group related parameters under a namespace prefix: `controller.kp`, `controller.ki`, `controller.kd`. - Load defaults from a `config/params.yaml`; allow launch-time overrides. - For dynamic reconfiguration, regist
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.