remove-circular-includes
Skill by chromium
Guides an AI assistant through removing allow_circular_includes_from declarations from Chromium GN build files. It is aimed at Chromium developers working on the circular includes cleanup.
Install remove-circular-includes
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/remove-circular-includes ~/.claude/skills/remove-circular-includesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install remove-circular-includes 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/remove-circular-includes ~/.gemini/antigravity-cli/skills/remove-circular-includesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install remove-circular-includes in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a guide for removing allow_circular_includes_from declarations across the Chromium codebase. It follows the Remove Circular Includes LSC and tracks the work under bug 556482973. The guide explains how to decide whether each declaration is obsolete, a true circular dependency, or a case that needs link targets split into source sets.
Before changing targets, the workflow prepares output directories with tools/mb/mb.py, runs gn gen, and saves a siso query graph baseline to compare after each fix. Each change removes the entry from the untriaged or bedrock allowlist, uses a fixed commit message format, and is uploaded to Gerrit. It is intended for Chromium developers who maintain GN build files.
Written from the project's SKILL.md and checked against it.
What it can do
- Classify declarationsDecides whether an allow_circular_includes_from entry is obsolete, a true circular dependency, or a link target case.
- Prepare output directoriesGenerates build output directories for Linux, Mac, Windows, Android, Fuchsia and ChromeOS using mb.py.
- Compare build graphsSaves siso query graph baselines before and after a fix to confirm the build graph is unchanged.
- Apply gn check fixesRuns gn check --fix to add missing dependencies and resolves the errors it reports.
- Prepare commitsCreates commits with the standard removal message and removes the entry from the allowlist file.
What you need
- A Chromium checkout synced with gclient
- GN and siso available for build graph checks
- jj or git for version control
Try asking
- Remove the allow_circular_includes_from entry from //ui/base:base
- Check whether this circular include entry is obsolete and can be removed
- Write the commit message for removing allow_circular_includes_from
Good to know
- Source does not state platform support beyond the listed Chromium output directories.
- Fixes must follow Chromium best practices and avoid -= source subtraction.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: agents/skills/remove-circular-includes/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
OWNERS47 B -
SKILL.md6 KB
Alternatives to remove-circular-includes
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
remove-circular-includes: common questions
What does allow_circular_includes_from do?
According to the source, it lets a target A skip a dependency on target B even when A's sources include B. The guide describes removing it when it is obsolete or when the circular dependency is broken.
Which build files does this skill cover?
It covers GN build files in the Chromium codebase, with the allowlist entries listed in build/circular_includes_untriaged.gni and build/circular_includes_bedrock.gni.
Does it work with git instead of jj?
Yes. The source says that if jj is unavailable, equivalent git commands can be used instead.
How do I install remove-circular-includes?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is remove-circular-includes free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is remove-circular-includes 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 remove-circular-includes?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
