/autoware-harness:awh-build-fix-colconfrom autoware-harness
Diagnoses and fixes colcon build failures in ROS 2 workspaces. Identifies the first error in build logs, classifies it by symptom (CMake missing packages, rosdep issues, header not found), and applies known fixes like rosdep install, vcs pull, or clearing stale build cache.
Ships in autoware-harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
For the build commands and options, see the /awh-build-colcon skill.
<workspace>/log/latest/ or in the /awh-build-colcon summary.A package <pkg> fails in the cmake step. The cmake step fails with this output:
Could not find a package configuration file provided by "Foo" with any of
the following names:
FooConfig.cmake
foo-config.cmake
This error often occurs after git pull or vcs pull updates CMakeLists.txt or package.xml.
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO at the workspace root to install the missing libfoo-dev or ros-<distro>-foo-dev packages.Otherwise, Autoware or vendor libraries may have been updated or added.
git pull to update <workspace>/autoware.repos, then compare each entry's version with the local checkout. If autoware.repos changed, run vcs import src < autoware.repos.vcs pull src/ to update the dependencies. If the output lists new packages, they likely resolve the issue.If you applied any of these fixes, run rm -rf build/<pkg> to remove the stale CMakeCache.txt.
No such file or directory for headers files often occurs when the package is not installed by rosdep.
fatal error: zmqpp/zmqpp.hpp: No such file or directory
53 | #include <zmqpp/zmqpp.hpp>
| ^~~~~~~~~~~~~~~~~
Once rosdep installed the missing dependencies, the cmake cache needs to be updated either by removing build/<stale packages> or by passing --cmake-clean-cache option to colcon build. Otherwise same errors continue.
msgs packagesSimilar error happens when msgs packages have been upgraded in autoware.repos but only your working repository like autoware_core is up-to-date with the latest main branch.
error: tier4_system_msgs/msg/command_filter_status.hpp: No such file or directory
25 | #include <tier4_system_msgs/msg/command_filter_status.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Align with your entire workspace with autoware.repos and purge stale cmake cache as described in the previous section.
g++ or clang++ crashes from out-of-memory (OOM) errorsAutoware builds need a lot of memory, so the OOM killer can terminate the compiler. In that case, lower --parallel-workers to reduce memory use.
Increasing the swap size also reduces OOM kills.
A package that combines Lanelet2 with Boost.Geometry operations can produce very long compilation errors. Common causes:
<lanelet2_core/geometry/<object>.hpp> is not included before boost::geometry::algorithm(ObjectType) is called. This header file provides Boost.Geometry adapter definition..polygon2d() or lanelet::utils::to2D(object).See the Boost.Geometry error guide.
Apply the fix and rebuild until all target packages succeed. Report progress after each cycle.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/awh-build-colconUse this skill when building an Autoware workspace with colcon (for example "build Autoware", "build only this package").
Provides the default build command and guidance for choosing options (package selection, build type, parallelism).
Pass the target packages as the argument. If none is given, build the whole workspace.
/awh-interface-msg-formatUse this skill when creating, reviewing, or validating .msg, .srv, or .action files for ROS 2 nodes to align with Autoware's style guidelines.
Include the path to message files in the argument.
/awh-meta-self-updateUse this skill when the user asks to update, upgrade, or check for a new version of the autoware-harness plugin itself
(for example "update the harness", "is there a newer version of this plugin?").
It gives the in-session command for the coding agent hosting the session.
npx claudepluginhub autowarefoundation/autoware-harness --plugin autoware-harness