/autoware-harness:awh-build-colconfrom autoware-harness
Builds Autoware workspaces with colcon, providing default commands and guidance for package selection, build type, and parallelism options.
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.
Locate the workspace root: walk up from the current directory to the directory that contains src/, with build/, install/, and log/ at the same level.
Confirm that the ROS 2 distribution and any overlay workspaces are sourced.
$ROS_DISTRO is set and AMENT_PREFIX_PATH points to its installation. If either is missing, run source /opt/ros/<ROS_DISTRO>/setup.bash./opt/autoware/. If it exists, run source /opt/<overlay>/setup.bash.The Autoware installation page uses the following command for tutorials.
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
For development, use RelWithDebInfo, which keeps the debug information that you need to debug C++ code and analyze crashes. Run the following command and replace <extra options> as needed.
colcon build <extra options> --symlink-install --continue-on-error --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
| Purpose | Option | When needed |
|---|---|---|
| Build selected packages only | --packages-select <pkg> | One package changed, or the changed packages do not depend on each other. |
| Build a package and its dependencies | --packages-up-to <pkg> | The changed packages depend on each other, especially when a header file changed. Do not use --packages-select. |
| Build packages that depend on a package | --packages-above <pkg> | A common or library package changed. |
| Limit parallel jobs | --parallel-workers <N> | The system load is high. |
| Show compiler output | --event-handlers console_direct+ | The compiler or linker output lacks enough detail. |
| Other build types | -DCMAKE_BUILD_TYPE=Release / Debug | Use Release for production or performance measurement. Use Debug for rich information in gdb. Combine with --packages-up-to or --packages-above so that all affected packages use the same build type. |
At the workspace root, call colcon build along with the options.
If colcon build succeeds, report success. Otherwise, report:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub autowarefoundation/autoware-harness --plugin autoware-harness4 skills in this plugin
/awh-build-fix-colconUse this skill when a `colcon build` has failed and the cause needs to be identified and fixed (for example "colcon build failed", "fix the build error", "package X does not build").
Provides the steps to find the error in the build logs or in the summary from the `/awh-build-colcon` skill, classify it, and apply known fixes.
Pass the failed package names or the error log path as the argument. If none is given, inspect `log/latest`.
/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.