casey-muratori-cpp-style

Generate procedural C/C++ code following Handmade Hero conventions.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/johnpgr/webgpu-game --skill casey-muratori-cpp-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: casey-muratori-cpp-style
Source: https://github.com/johnpgr/webgpu-game/tree/main/.agents/skills/cpp-style
Command: npx skills add https://github.com/johnpgr/webgpu-game --skill casey-muratori-cpp-style

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Write clean, hand-tuned C/C++ code in Casey Muratori's Handmade Hero style, helping developers avoid unnecessary abstractions and dependencies while preserving a procedural, data-oriented mindset.

Core Features & Use Cases

  • Procedural, non-OOP C/C++ coding with flat data structures and explicit control flow.
  • Applies to code requests emphasizing compression-oriented programming, minimal dependencies, and platform-layer isolation.
  • Useful for teams or individuals who want to write lightweight, interface-free C/C++ routines that can be composed into larger systems.

Quick Start

Ask for a tiny handmade-style C++ function demonstrating the procedural approach

Frequently Asked Questions about casey-muratori-cpp-style

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write procedural C++ code with flat data structures instead of OOP classes?

Handmade-style C++ coding eliminates unnecessary abstractions by using flat data layouts, explicit control flow, and minimal dependencies. It conforms to Handmade Hero conventions, helping developers preserve a procedural, data-oriented mindset without heavy class hierarchies.

What is compression-oriented programming in C++ and when should I use it?

Compression-oriented programming emphasizes flat data layouts, explicit control flow, and minimal dependencies in C++. It is useful when writing lightweight, interface-free routines that avoid unnecessary abstractions and need to be composed into larger systems.

Can I use this style for platform-layer isolation in C/C++ projects?

Yes, Handmade-style procedural C/C++ is suitable for platform-layer isolation. It enforces minimal dependencies and flat data structures, allowing you to separate platform-specific code cleanly without introducing heavy OOP abstractions or unnecessary interface layers.

What's the best way to avoid unnecessary dependencies in hand-tuned C++ code?

The best way to avoid unnecessary dependencies in hand-tuned C++ code is to adopt a procedural, data-oriented style using flat data structures and explicit control flow. This approach conforms to Handmade Hero conventions, minimizing abstractions and keeping routines lightweight and composable.

When should I not use procedural C++ coding over object-oriented programming?

You should not use procedural C++ coding when your project strictly relies on deep class hierarchies, heavy polymorphism, or framework-enforced OOP patterns. This style targets flat data layouts and explicit control flow, so it is less suited for architectures requiring extensive object-oriented abstractions.