What problem does it solve?
The cpp-algo module in MaaEnd suffers from inconsistent naming conventions, duplicated utility code, scattered magic numbers, and non-standard CMake practices. This Skill provides a single authoritative style guide so that code written, modified, or reviewed under agent/cpp-algo/ stays consistent with MaaFramework best practices.
Core Features & Use Cases
- Naming & Formatting Rules: Defines a complete naming table (PascalCase classes, snake_case_ member variables, k-prefixed constants) plus include ordering and file naming conventions.
- Refactoring Guidance: Identifies known violations (e.g., camelCase members in MapPosition, direct OpenCV includes) and provides concrete before/after fixes in reference.md.
- Engineering Standards: Covers logging levels, error handling patterns, modern C++20 usage, magic-number elimination, and CMake explicit source listing, ending with a review checklist.
- Use Case: When asked to add a new tracking feature to cpp-algo, the AI consults this Skill to name constants correctly, reuse ScopedImageBuffer instead of duplicating it, route OpenCV through NoWarningCV.hpp, and sync schema files.
Quick Start
Review my changes to agent/cpp-algo/MapLocator against the cpp-algo style guide and fix any violations.