用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/brave/chromium --skill replace-anonymous-runnables命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Identify and safely remove expired Chromium histograms (dead metrics/technical debt). Use this skill when a contributor asks to clean up metrics, fix code health issues related to histograms, remove obsolete code, or work on a histogram cleanup task.
Extension pipeline to bump expiration dates of Chromium UMA histograms.
Orchestrator for the "Code Health Hub" framework. Trigger only when the user refers to the Hub or asks to see "available cleanup tasks" within the Chromium technical debt reduction system.
基于 SOC 职业分类
正在显示 SKILL.md
| name | replace-anonymous-runnables |
| description | Replace anonymous classes with lambdas where applicable (SAM interfaces) |
Replace Java anonymous classes implementing Single Abstract Method (SAM) interfaces with lambdas to leverage Lambda Grouping and reduce binary size.
Goal: Clean up all occurrences of this pattern in the codebase.
[!IMPORTANT] Execution Protocol: Execute all steps sequentially one by one. Do not skip any step. Use
rg(ripgrep) for searches.
Follow the workspace preparation steps in workspace_preparation.md to ensure a clean and updated environment.
self subagent.Process the candidates by handling them one file at a time, and applying modifications inside each file one instance at a time. This ensures stability and allows for precise verification.
Refactoring Guidelines:
@JavascriptInterface or @SuppressLint). Do not attempt to move @SuppressLint to the field or enclosing method to bypass this, as it may not suppress the warning on the lambda.this to refer to itself.View.OnTouchListener to lambdas. These often trigger ClickableViewAccessibility lint warnings if they do not call View#performClick(), and converting them can break existing lint baselines.git cl format to format changes.PASS.Follow the Verification workflow.
Invoke the Submission workflow. Pass the following context variables:
cleanup-replace-anonymous-runnables-[component-name]Code HealthReplace anonymous classes with lambdas in [Component]541671762"none""true"