enable-check-includes-strict
Skill by chromium
Enables and migrates Chromium GN targets and directories to check_includes_strict = true. It guides allowlist changes and fixing header include violations with gn check, for Chromium contributors.
Install enable-check-includes-strict
Built from the published package, never by AI.
git clone --depth 1 https://github.com/chromium/chromium /tmp/chromium && mkdir -p ~/.claude/skills && cp -r /tmp/chromium/agents/skills/enable-check-includes-strict ~/.claude/skills/enable-check-includes-strictRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install enable-check-includes-strict in Claude Code
git clone --depth 1 https://github.com/chromium/chromium /tmp/chromium && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/chromium/agents/skills/enable-check-includes-strict ~/.gemini/antigravity-cli/skills/enable-check-includes-strictAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install enable-check-includes-strict in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides the work of enabling check_includes_strict across Chromium targets and directories. check_includes_strict is a GN target setting that blocks including headers from transitive dependencies unless they are forwarded through explicit public_deps. The skill sets up output directories from shared args files, then onboards a directory by adding it to CHECK_INCLUDES_STRICT_ALLOWLIST in build/strict_deps_failures.gni.
The workflow runs gn check --fix on each output directory until no failures remain, then re-checks without --fix. Conditional suggestions from GN are wrapped in conditions, and the skill tells the assistant to resolve TODOs and ask the user when a fix is unclear. It is written for Chromium contributors who work with jj or git, gclient and GN.
Written from the project's SKILL.md and checked against it.
What it can do
- Set up output directoriesSymlinks .gclient, runs gclient sync and creates out/<name>/args.gn files from shared args.
- Onboard a directoryAdds a directory such as //base/* to CHECK_INCLUDES_STRICT_ALLOWLIST and commits the change.
- Fix include failuresRuns gn check --fix iteratively on each output directory and adds the suggested dependencies.
- Wrap conditional depsPlaces dependencies suggested by GN behind the stated conditions, using deps or public_deps blocks.
- Verify fixesRe-runs gn check without --fix on every output directory to confirm earlier fixes still pass.
- Upload the changeRuns jj fix and uploads the change to Gerrit with the commit queue label.
What you need
- Chromium source checkout with gclient
- GN build tool
- jj or git
- Gerrit access for uploads
Try asking
- Enable check_includes_strict on //base and fix the gn check failures
- Add //net to the check_includes_strict allowlist and create the commit
- Resolve the CHECK_INCLUDES_STRICT_UNTRIAGED targets in my out directories
Good to know
- Downstream targets across the repo may need new explicit dependencies, which the source says is expected.
- The skill says not to read .cc files for include errors and to use GN's suggestions instead.
- When an obvious fix is missing, the skill says to ask the user before proceeding.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: agents/skills/enable-check-includes-strict/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
OWNERS48 B -
SKILL.md5 KB -
args/.gclient289 B -
args/android-arm64.gn852 B -
args/chromeos-x64.gn825 B
Show all 11 files
-
args/common.gni849 B -
args/fuchsia-x64.gn742 B -
args/linux-dbg-x64.gn619 B -
args/linux-x64.gn978 B -
args/mac-arm64.gn823 B -
args/win-x64.gn835 B
Alternatives to enable-check-includes-strict
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
enable-check-includes-strict: common questions
What does check_includes_strict do?
The source says it prevents including headers declared in transitive dependencies unless they are forwarded through explicit public_deps.
Which version control tools does this skill use?
The source says its VCS commands are written for jj, and that git commands can be used if jj is unavailable.
Who is this skill for?
The source describes it as a guide for enabling check_includes_strict across Chromium targets and directories, so it is aimed at Chromium contributors.
How do I install enable-check-includes-strict?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is enable-check-includes-strict free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is enable-check-includes-strict safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to enable-check-includes-strict?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
