Стандарты C++ кода для проекта clice
★ 7.0 · vibe-coding
C++ Code Style and Standards is a Claude Code skill that encodes the coding conventions for the clice project: redundancy elimination, file layout, error-handling policy, naming, and preferred APIs from the C++ standard library and LLVM. Reach for it when you are about to write or touch C++ code in clice and want to stay consistent with the project's rules; when review keeps coming back with comments about dead branches, unused parameters, or wrong error-propagation patterns; when you are unsure whether to use `struct` vs `class`, `assert` vs `std::unreachable()`, or an init-statement `if` vs a plain local variable. The skill covers: headers as `.h` with `#pragma once`, source files as `.cpp` and entry points as `.cc`, `snake_case` for files and functions, `PascalCase` for class and enum names. The project compiles with `-fno-exceptions -fno-rtti`, so fallible operations return `std::expected<T, E>` and polymorphic inspection uses `llvm::isa<>`/`dyn_cast<>` instead of `dynamic_cast`. Async code is kota coroutines (`co_await`), never callbacks. Logging goes exclusively through `LOG_TRACE`/`LOG_DEBUG`/`LOG_INFO`/`LOG_WARN`/`LOG_ERR` macros — never raw spdlog or stdout. The direction is authoring new code to spec, not auditing or refactoring arbitrary codebases.
- #cpp
- #c
- #coding-style
- #llvm
- #code-conventions