blink-gc-plugin

blink-gc-plugin is a skill for Claude Code, Codex from chromium/chromium. It costs 79 tokens per session (4,298 once invoked), scanned C, original, BSD-3-Clause.

A development workflow for the Blink garbage-collection Clang plugin, a tool that checks C++ code for memory-management rules. It covers changing the plugin, testing it, handling reported violations, and rolling out updates.

In plain words
What is it for?
It helps maintain plugin checks, run plugin unit tests, inspect violations in Blink code, add suppressions, and prepare a Clang roll.
Why use it?
It organizes the specialized steps needed to change the plugin safely and check its effects across Chromium and Blink code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./tools/clang/scripts/build.py --without-android --without-fuchsia.

Good fit It helps maintain plugin checks, run plugin unit tests, inspect violations in Blink code, add suppressions, and prepare a Clang roll.

Compare 6 skills from other repositories ↓
About the project

Chromium is an open-source web browser project and the official GitHub mirror of its source code. It is used to build and maintain software for browsing the web, with documentation and code for products such as Chrome and Android WebView.

chromium/chromium · 25,043 stars · on GitHub · chromium.googlesource.com

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/chromium/chromium
agentmods
npx agentmods add skills/chromium/chromium/blink-gc-plugin

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for blink-gc-plugin

README.md
[![agentmods](https://agentmods.dev/badge/skills/chromium/chromium/blink-gc-plugin/github.svg)](https://agentmods.dev/skills/chromium/chromium/blink-gc-plugin)
Your own site
<a href="https://agentmods.dev/skills/chromium/chromium/blink-gc-plugin"><img src="https://agentmods.dev/badge/skills/chromium/chromium/blink-gc-plugin/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for blink-gc-plugin

Your own site · 80×15
<a href="https://agentmods.dev/skills/chromium/chromium/blink-gc-plugin"><img src="https://agentmods.dev/badge/skills/chromium/chromium/blink-gc-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,298 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.04298
Opus 5.5 $0.00032 $0.01719
Sonnet 5.5 $0.00016 $0.00860
Haiku 4.5 $0.00008 $0.00430

Measured 8d ago against content hash 37aa7ee3549b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

blink-gc-plugin scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf third_party/llvm-build/Release+Asserts/ third_party/llvm-build/force_head_revision
agents/skills/blink-gc-plugin/SKILL.md · 339 lines

How it starts

The opening of the file, as written. The whole thing — 339 lines — stays where its author put it; the contents beside it link to each section on GitHub.

This skill covers the end-to-end workflow for modifying the Blink GC (Oilpan) Clang plugin in //tools/clang/blink_gc_plugin/, testing it locally, fixing or suppressing violations across the codebase, rolling out the changes, and cleaning up the local environment afterwards.

1. Key Files and Architecture

  • Plugin Entry Point & AST Consumer:
  • Record & Points-To Edge Model:
    • RecordInfo.h and RecordInfo.cpp: Caches record properties (whether a type is garbage-collected, traceable, stack-allocated, or has fields/bases requiring tracing).
    • Edge.h, Edge.cpp, NeedsTracing.h, and TracingStatus.h: Models the type/field edge graph (Value, RawPtr, RefPtr, UniquePtr, Member, WeakMember, Persistent, CrossThreadPersistent, Collection, Iterator, ArrayEdge, etc.), EdgeVisitor / RecursiveEdgeVisitor, and tracing requirements.
  • Visitor-Based Checks:
  • AST Matcher-Based Checks:
    • BadPatternFinder.h and BadPatternFinder.cpp: Clang AST matchers for disallowed patterns involving Oilpan types (such as std::optional, absl::optional, std::variant, absl::variant, base::raw_ptr, base::raw_ref, std::unique_ptr, base::WeakPtr, off-heap collections, Member on stack, GCed variables/fields by value, and extra padding).
  • Configuration, Diagnostics, Graph Dumping, and Tests:
    • Config.h and Config.cpp: Helpers for identifying Oilpan types, annotations (STACK_ALLOCATED, GC_PLUGIN_IGNORE), and smart pointer/collection names.
    • DiagnosticsReporter.h and DiagnosticsReporter.cpp: Diagnostic message templates and reporting methods.
    • JsonWriter.h and process-graph.py: Utilities for dumping (dump-graph) and processing the object graph.
    • //tools/clang/blink_gc_plugin/tests/: Lit-style golden tests (.cpp, .h, optional .flags, and expected .txt output files) run via test.py.

Read the full file on GitHub · 339 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 339 lines · 79 tokens per session scan C 37aa7ee3549b

Subscribe to this mod's changes

blink-gc-plugin is a skill published in the GitHub repository chromium/chromium (25,043 stars, last pushed today), licensed BSD-3-Clause. It adds 79 tokens to every session and 4,298 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.