AGENT SKILL

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.

License 许可
Apache-2.0
所属仓库
google/filament
最近更新
2026-11-14
Stars
★ 2.1w
Forks
2.3k

01 前言 Front Matter

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.

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

04 同仓库更多 Skills