Preprocessor Guard Hygiene

SkillDev tools

Lets your agent keep C++ preprocessor guards and macro-dependent includes correctly organized when editing headers.

Use Preprocessor Guard Hygiene in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Preprocessor Guard Hygiene and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Preprocessor Guard Hygiene skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Preprocessor Guard HygieneStart free
About this skill

Enforce preprocessor guard rules and macro-dependent inclusion hygiene in C++. Use this skill when modifying conditional imports or preprocessor directives.

What this skill tells your AI

The instructions your AI receives, as published by google/filament in skills/preprocessor_guard_hygiene/SKILL.md and read by ahel’s review.

  • Simple Guarded Includes: Headers wrapped inside single-line preprocessor guards (like #if __EXCEPTIONS or #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_COPYABLE in ostream.cpp). The reorganize_headers.py safety check will automatically detect and skip these; respect these skips.

Signals

GitHub stars
21k
Forks
2k
Last commit
Oct 2026
Advanced
Item type
skill
Key
preprocessor-guard-hygiene
Source
github.com/google/filament