kj-style

$npx mdskill add cloudflare/workerd/kj-style

Enforces KJ/workerd C++ style guidelines during code review or writing to ensure consistency and quality.

  • Helps developers maintain consistent naming, type usage, and formatting in C++ code for the workerd codebase.
  • Integrates with the docs/reference/kj-style.md file as the authoritative source for style rules.
  • Decides recommendations by referencing the documented guidelines for memory management, error handling, and constness.
  • Presents results by surfacing style violations or suggestions based on the established conventions.
SKILL.md
.github/skills/kj-styleView on GitHub ↗
---
name: kj-style
description: KJ/workerd C++ style guidelines for code review. Covers naming, type usage, memory management, error handling, inheritance, constness, and formatting conventions. Load this skill when reviewing or writing C++ code in the workerd codebase.
---

**Always** use the `docs/reference/kj-style.md` file when reviewing or writing C++ code.
More from cloudflare/workerd