Agent Skills
› google/filament
› preprocessor-guard-hygiene
preprocessor-guard-hygiene
GitHub规范C++头文件的预处理器守卫和宏依赖包含,确保受保护的头文件保持包裹并按层排序,禁止修改与宏配置紧耦合的包含关系。
Trigger Scenarios
修改C++条件导入语句
调整预处理器指令
Install
npx skills add google/filament --skill preprocessor-guard-hygiene -g -y
SKILL.md
Frontmatter
{
"name": "preprocessor-guard-hygiene",
"description": "Enforce preprocessor guard rules and macro-dependent inclusion hygiene in C++. Use this skill when modifying conditional imports or preprocessor directives."
}
Preprocessor Guard Hygiene
- Simple Guarded Includes: Headers wrapped inside single-line preprocessor guards (like
#if __EXCEPTIONSor#if defined(__ARM_NEON)) must remain wrapped and are sorted alphabetically within their correct layer. - Macro-Dependent Templating: Never modify or split includes that are tightly coupled with macro configurations (such as
#define UTILS_PRIVATE_IMPLEMENTATION_NON_COPYABLEinostream.cpp). Thereorganize_headers.pysafety check will automatically detect and skip these; respect these skips.
Version History
- d8b4a37 Current 2026-08-20 07:30


