Skip to main content

header-self-containment

Enforce strict header self-containment so that every header file compiles independently. Use this skill when creating or modifying C++ header files.

Source facts

Repository
google/filament
Last source activity
May 26, 2026 at 07:25
Detected SKILL.md language
English
Stars
20,655
Forks
2,283

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
header-self-containment
description
Enforce strict header self-containment so that every header file compiles independently. Use this skill when creating or modifying C++ header files.
# Strict Header Self-Containment Every header file (`.h`) in Filament **must be fully self-contained** and compile independently. * **Rule:** Never assume a header's type dependencies (like `FrameGraphHandle`) are pre-declared by preceding includes in a `.cpp` file. * **Action:** Always explicitly `#include` the declaring header (e.g., `fg/FrameGraphId.h`) inside the header itself.
View on GitHub