# Header Self Containment

> Header Self Containment is an Agent Skill for development published in the google/filament repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

- Skill name: `header-self-containment`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/google/filament/blob/HEAD/skills/header_self_containment/SKILL.md
- Repository: google/filament (20,258 GitHub stars when collected)

## SKILL.md

# 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.

---

Source: https://www.openparable.com/skill/development/header-self-containment (OpenParable). Cite the canonical URL above.
