chromium/chromium/experimental-code-coverage-config-validator
Claude Code and agent skill by chromium/chromium
- community
Checking that the SKILL.md file is still in the repository.
Validates Chromium generated builder configurations (gn-args.json) for code coverage correctness based on language context.
Install
npx vskill@latest install chromium/chromium/experimental-code-coverage-config-validatorSKILL.md
The same SKILL.md was published earlier as chromium/chromium/experimental-code-coverage-config-validator.
Code Coverage Config Validator
Use this skill to verify if a Chromium builder is correctly configured in its generated GN arguments (gn-args.json) to produce code coverage data.
Inputs
When invoking this skill, the caller MUST pass the following inputs in the prompt:
builders_of_concern: Target builder names to validate (e.g.,
["linux-rel"]). To locate the Starlark .star definition file for each builder, reference: builder_star_map.json.
language_context: The programming language context ("cpp","objc",
"rust", "java", "js", or "ts"). Consult [language_coverage_map.json][map_ref] for authoritative mappings.
When to Use This Skill
- Verifying if a builder has the correct GN arguments for code coverage.
- Debugging why code coverage artifacts are missing or not updated.
- Triaging a code coverage bug where builder configuration needs validation.
Validation Checks
Consult [language_coverage_map.json][map_ref] for the required settings mapped to language_context. Verify that the builder's configuration (gclient_config and generated gn-args.json) satisfies both:
- gclient Configuration: Inspect
builder_spec.gclient_configto confirm
any required_gclient_vars (e.g., checkout_clang_coverage_tools set via apply_configs = ["use_clang_coverage"]).
- GN Arguments (`gn_args`): Inspect generated
gn-args.jsonto confirm all
required_gn_args are present.
Step-by-Step Execution
- Locate GN Args File: Search for
builder_nameinside
infra/config/generated/builders/gn_args_locations.json to resolve its relative path (e.g., "try/linux-rel/gn-args.json"). Read the JSON file at infra/config/generated/builders/<relative_path>.
- Inspect Configuration: Examine the
"gn_args"dictionary in the JSON. - Perform Checks: Check each required key-value pair as defined in the
Validation Checks section for the given language_context.
- Generate Report:
- Validation Success: If all checks pass, report builder is valid.
- Validation Failure: Detail missing or incorrect configurations.
Recommend updating the builder's Starlark file and regenerating configs via lucicfg generate infra/config/main.star.
- Environment Reminder: If
language_contextis"cpp","objc", or
"rust", append a reminder that local Clang code coverage generation requires "checkout_clang_coverage_tools": True in the developer's ~/.gclient file under custom_vars.
Example Outputs
Example 1: Successful Validation (C++)
Builder linux-rel validation successful for language context cpp. Allrequired GN arguments (use_clang_coverage = true,is_clang = true, andis_debug = false) are present ingn-args.json.
Example 2: Failed Validation (C++)
Builder linux-rel for language context cpp requires updates:- LACKING:"is_debug": falseis missing ingn-args.json.- SUGGESTED CHANGE: Update the Starlark builder definition to setis_debug = Falseand runlucicfg generate infra/config/main.star.- REMINDER: For local C++ coverage generation, ensure your~/.gclientfile contains:```pythoncustom_vars = {"checkout_clang_coverage_tools": True,}```
Example 3: Failed Validation (Java)
Builder android-x86-rel for language context java requires updates:- LACKING:"use_jacoco_coverage": trueis missing ingn-args.json.- SUGGESTED CHANGE: Update the Starlark builder definition to setuse_jacoco_coverage = Trueand regenerate configs vialucicfg.
[map_ref]: ../../../tools/code_coverage/language_coverage_map.json
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagents/skills/experimental-code-coverage-config-validator/SKILL.md
Popularity
- Repository stars
- 24,913
- Repository forks
- 9,273
- 7-day trend score
- 51
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chromium/chromium/experimental-code-coverage-config-validator)