Build C++ Backend with CMake

VerifiedSafe

This skill compiles the OrderParserProcessor C++ backend using CMake. Use it when you need to build, rebuild, or address compilation or linking errors. It supports standard builds, test builds, and parallel compilation.

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude Code
#cpp#cmake#build#compilation

Recommended for

Automated summary

Builds the C++ backend using CMake, with ANTLR dependency management and build options.

Strengths

  • Full automation of CMake configuration and compilation
  • Support for tests and clean rebuilds
  • Automatic handling of ANTLR-generated files

Limitations

  • Requires preconfigured environment variables
  • Does not handle protobuf or external dependency errors
  • No support for advanced cross-platform builds
When to use it

When the user asks to compile the C++ backend or fix compilation/linking errors.

When not to use it

For simple single-file builds or projects without CMake.

Security analysis

Safe
Quality score90/100

The skill uses standard CMake build commands and a scoped 'rm -rf build' for clean rebuilds. No exfiltration, token handling, or destructive actions outside the build directory.

No concerns found

How this analysis is made

Examples

Standard Build
Build the C++ backend using CMake.
Build with Tests
Build the project with tests enabled using CMake.
Clean Rebuild
Perform a clean rebuild of the C++ project.

name: build description: Build the C++ backend using CMake. Use when user asks to compile, build, rebuild, or mentions CMake, compilation errors, or linking issues. allowed-tools: Bash, Read

Build Project Skill

Build the OrderParserProcessor C++ backend using CMake.

Prerequisites

Ensure required environment variables are set:

  • ORDER_PARSER_PROCESSOR_ROOT: Project root directory
  • ANTLR_VERSION: ANTLR version (e.g., antlr-4.13.0)

Check with:

echo $ORDER_PARSER_PROCESSOR_ROOT
echo $ANTLR_VERSION

Instructions

  1. Verify environment variables are set
  2. Check if build directory exists, if not it will be created by CMake
  3. Run CMake configuration: cmake -B build
  4. Run CMake build: cmake --build build
  5. Report any compilation or linking errors found
  6. If successful, confirm the build completed and show executable location

Build Options

Standard Build

cmake -B build
cmake --build build

Build with Tests

cmake -B build -DBUILD_TESTS=ON
cmake --build build

Clean Rebuild

rm -rf build
cmake -B build
cmake --build build

Parallel Build (faster)

cmake --build build -j4

ANTLR Handling

CMake automatically handles ANTLR file generation from .g4 grammar files.

Important: For significant grammar modifications, it's better to work directly with antlr4 command to avoid recompiling every time:

# Generate parser from grammar (for testing)
antlr4 -Dlanguage=Cpp -visitor rules/parser/FiScript.g4

# Test grammar with input
grun FiScript <start_rule> -gui < input.txt

Common Issues

  • ANTLR not found: Check ANTLR_VERSION environment variable is set
  • Protobuf errors: Ensure proto files are generated in generated/cpp/ (use proto-gen skill)
  • Link errors: Check library dependency order in CMakeLists.txt
  • ORDER_PARSER_PROCESSOR_ROOT not set: Export it in your shell profile

Success Criteria

  • CMake configuration completes without errors
  • All targets compile successfully
  • Executable OrderParserProcessor is created in build/backend/ directory

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/build-c-backend-with-cmake-mm78nnzt/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/build-c-backend-with-cmake-mm78nnzt' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/build-c-backend-with-cmake-mm78nnzt/download' --output '.skill-downloads/build-c-backend-with-cmake-mm78nnzt/SKILL.md.part' && mv '.skill-downloads/build-c-backend-with-cmake-mm78nnzt/SKILL.md.part' '.skill-downloads/build-c-backend-with-cmake-mm78nnzt/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Bash, Read

Original excerpt: Prerequisites

Ensure required environment variables are set:

  • ORDER_PARSER_PROCESSOR_ROOT: Project root directory
  • ANTLR_VERSION: ANTLR version (e.g., antlr-4.13.0)

Check with:

echo $ORDER_PARSER_PROCESSOR_ROOT
echo $ANTLR_VERSION

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/build-c-backend-with-cmake-mm78nnzt/SKILL.md' && test -s '.skill-downloads/build-c-backend-with-cmake-mm78nnzt/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/build' && cp -R '.skill-downloads/build-c-backend-with-cmake-mm78nnzt' '.claude/skills/build'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/build-c-backend-with-cmake-mm78nnzt'

openskills read 'build-c-backend-with-cmake-mm78nnzt'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/build-c-backend-with-cmake-mm78nnzt/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills