Agent Skillsgoogle/filament › header-self-containment

header-self-containment

GitHub

强制C++头文件自包含,确保每个头文件可独立编译。要求显式声明类型依赖,禁止假设前置include已提供定义,适用于创建或修改C++头文件场景。

skills/header_self_containment/SKILL.md google/filament

触发场景

创建新的C++头文件 修改现有C++头文件

安装

npx skills add google/filament --skill header-self-containment -g -y
更多选项

不安装直接使用

npx skills use google/filament@header-self-containment

指定 Agent (Claude Code)

npx skills add google/filament --skill header-self-containment -a claude-code -g -y

安装 repo 全部 skill

npx skills add google/filament --all -g -y

预览 repo 内 skill

npx skills add google/filament --list

SKILL.md

Frontmatter
{
    "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.

版本历史

  • d8b4a37 当前 2026-08-20 07:30

同 Skill 集合

skills/bindings_synchronization/SKILL.md
skills/code_review/SKILL.md
skills/cpp_header_inclusion/SKILL.md
skills/cpp_static_thread_safety/SKILL.md
skills/filament_android_development/SKILL.md
skills/filament_build_clean/SKILL.md
skills/filament_desktop_testing/SKILL.md
skills/preprocessor_guard_hygiene/SKILL.md
skills/verification_protocols/SKILL.md
tools/ai/agents/skills/filament_lifetime/SKILL.md
tools/ai/agents/skills/filament_math/SKILL.md

元信息

文件数
0
版本
d30bc32
Hash
3b3d7793
收录时间
2026-08-20 07:30

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 23:07
浙ICP备14020137号-1 $访客地图$