Agent skill

Java Inline Fqn Cleanup

by nwjs in nwjs/chromium.src

Identify and clean up inline fully qualified Java names (FQNs) in first-party code, replacing them with standard imports.

BSD-3-ClauseAuto-check passedDevelopment

Install Java Inline Fqn Cleanup

skills CLI
$ npx skills add nwjs/chromium.src --skill java-inline-fqn-cleanup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nwjs/chromium.src java-inline-fqn-cleanup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nwjs/chromium.src.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/projects/code-health/java-inline-fqn-cleanup .claude/skills/java-inline-fqn-cleanup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
java-inline-fqn-cleanup
GitHub stars
160
Token cost
~1.6k tokens
SKILL.md length
731 words
Files
4 (incl. scripts, references)
Skills in repo
64
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Identify and clean up inline fully qualified Java names (FQNs) in first-party code, replacing them with standard imports.

  • Works in 6 steps: Workspace Preparation → Discovery & Batch Selection → Refactoring & Implementation → …
  • Tasks that involve Code quality
  • SKILL.md covers Overview, Relevant Resources & Style… and Workflow
  • Runs Python scripts from its folder; calls git

What it does

Java Inline Fqn Cleanup is an agent skill from nwjs/chromium.src. Identify and clean up inline fully qualified Java names (FQNs) in first-party code, replacing them with standard imports.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including scripts and reference files (for example `references/automated_review.md`, `references/patterns.md` and `scripts/find_candidates.py`).

It sits in Development, covering Code quality. It works with Java. The repository describes itself as: Chromium codebase with NW.js modifications. Based on https://chromium.googlesource.com/chromium/src.git. The licence is BSD-3-Clause.

When your agent uses it

  • Tasks that involve Code quality

Example prompts

  • “/java-inline-fqn-cleanup”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Workspace Preparation
  2. Discovery & Batch Selection
  3. Refactoring & Implementation
  4. Validation
  5. Verification
  6. Submission

What it can do on your machine

Read from SKILL.md and the folder at commit a9e8946. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • chromium.googlesource.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Java Inline Fqn Cleanup loads about 1.6k tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 36 tokens; SKILL.md has 731 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from nwjs/chromium.src at commit a9e8946, republished under its BSD-3-Clause licence (© nwjs). 731 words, ~1,583 tokens.

Download SKILL.mdSave it as .claude/skills/java-inline-fqn-cleanup/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
java-inline-fqn-cleanup
description
Identify and clean up inline fully qualified Java names (FQNs) in first-party code, replacing them with standard imports.

Code Health: Java Inline FQN Cleanup

Clean up inline fully qualified names (FQNs) in Java code by replacing them with proper import statements at the top of the file, and then formatting/optimizing the import order.

Overview

Using fully qualified class names inline (e.g. android.view.View view = ...) instead of importing them makes code harder to read and breaks standard style conventions. This skill helps automate the discovery, safety analysis, and clean-up of these inline qualifiers in Chromium's first-party Java files.

Goal: Clean up inline fully qualified names (FQNs) in first-party Java files and replace them with standard imports.

Relevant Resources & Style Guides

Workflow

[!IMPORTANT] Execution Protocol: Execute all steps sequentially one by one. Do not skip any step. Do not use edit-code or grep. Use rg (ripgrep) for searches.

Step 1: Workspace Preparation

Follow the workspace preparation steps in workspace_preparation.md to ensure a clean and updated environment.

Step 2: Discovery & Batch Selection

Follow the Discovery & Batch Selection workflow. When presenting the batch, include the Imports Found and Banned FQNs details.

Step 3: Refactoring & Implementation

CRITICAL RULE: Standard file editing tools (like replace_file_content or multi_replace_file_content) must be used to apply the cleanups directly to the Java files. DO NOT create, write, or execute any custom python or bash scripts to perform the text replacements.

  • References: Refer to patterns.md for concrete examples and exceptions (e.g., handling java.lang.* and Local R classes) before applying replacements.

Process the candidates by handling them one file at a time, and applying modifications inside each file one FQN at a time (rather than refactoring all files or FQNs at once). This ensures stability and allows for precise verification. For each file in the batch, apply the following cleanup rules:

  1. Avoid Name Collisions & Shadowing: Check if the simple class name of the FQN is already imported, defined, or implicitly resolved in that file (e.g., via wildcard imports, implicit package-private classes, or other imported annotations with the same name). If there is a collision or shadowing risk, do not modify the line (the FQN must remain inline).
  2. Banned FQNs: If the discovery script outputted a Banned FQNs list, completely ignore those specific FQNs. They are either raw package paths or invalid classes, and attempting to import them will break the build.
  3. First-Party Code Only: Do not modify any files in third_party/ or auto-generated directories.
  4. Import Strategy for Static Members: When cleaning up inline FQNs for static constants, properties (e.g. TabProperties), feature flags (ChromeFeatureList), or enums (TabLaunchType), prefer importing the class itself rather than importing its members statically.
    • Incorrect (Static Import): import static org.chromium.chrome.browser.tasks.tab_management.TabProperties.IS_SELECTED;
    • Correct (Class Import): import org.chromium.chrome.browser.tasks.tab_management.TabProperties; and use TabProperties.IS_SELECTED in the code.
    • Rationale: Qualifying static constants (e.g. TabProperties.TITLE) keeps clear context of where the constant is defined and avoids namespace conflicts when multiple imported properties classes share the same field names (e.g. TabProperties.TITLE vs FolderProperties.TITLE).
  5. Clean up Javadocs & Comments: Replace inline FQNs found inside code comments and Javadoc links (e.g. {@link android.webkit.WebSettings} -> {@link WebSettings}). However, never modify URLs (like https://... or other web links) inside comments.
  6. Nested and Inner Classes: For inline references to nested or inner classes (e.g. org.chromium.chrome.browser.profiles.ProfileKey.Theme), prefer importing the top-level outer class (import org.chromium.chrome.browser.profiles.ProfileKey;) and referring to it as ProfileKey.Theme in the code, rather than importing the nested class directly.
    • Exception: If importing the nested class directly is the dominant style in that specific file, match the existing style.
  7. Apply Replacements:
    • Replace the inline FQN with its simple class name.
    • Add the corresponding import statement at the top of the file.
Show full SKILL.md (133 more words)Show less
Step 4: Validation
  1. Code Formatting: Execute git cl format to format the modified source code and organize imports. Address any errors that are reported.
  2. Mandatory Final Review: Follow the Automated Review Protocol to delegate a final review of the patch to the generalist sub-agent. Proceed to the Verification phase only after the review returns PASS.
Step 5: Verification

Follow the Verification workflow.

Step 6: Submission

Invoke the Submission workflow. Pass the following context variables to the workflow:

  • Skill Name: java-inline-fqn-cleanup
  • Branch Name: cleanup-fqns-[component-name]
  • Commit Hashtag: Code Health
  • Cleanup Title: Clean up inline FQNs in [Component/Directory]
  • Cleanup Description: Remove inline fully qualified class names and replace them with standard imports in the [Component/Directory] directory.
  • Parent Bug: 528570333
  • Cleaned Component: The parent directory of the batch.
  • File Count: Number of files cleaned up.

© nwjs, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references) in agents/projects/code-health/java-inline-fqn-cleanup of nwjs/chromium.src.

  • SKILL.md
  • references/automated_review.md
  • references/patterns.md
  • scripts/find_candidates.py

Open the folder on GitHubat commit a9e8946

Compare with similar skills

Java Inline Fqn Cleanup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Java Inline Fqn Cleanup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Java Inline Fqn Cleanup this skillnwjs/chromium.src160—~1.6kAutomated safety check: PassBSD-3-Clause
Code Review Skillawesome-skills/code-review-skill2.1k—~2.8kAutomated safety check: NotesMIT
Coding Standardsapache/shardingsphere21k—~2.2kAutomated safety check: PassApache-2.0
New Rule for sonar-javaSonarSource/sonar-java1.2k—~833Automated safety check: PassCustom licence
Cross-Language Coding Standardszereight/gitlab-mcp2k1 repos~1.4kAutomated safety check: PassMIT
Code Qualitypiomin/claude-ai-spring-boot1.3k—~2.2kAutomated safety check: PassApache-2.0

Similar skills

  • Code Review Skill

    awesome-skills/code-review-skill

    Provides comprehensive code review guidance for React 19, Vue 3, Angular 17+, Svelte 5, Rust, TypeScript, Java, Java 8, PHP, Ruby, Rails, Python, Django, FastAPI, Go, C/.NET, Kotlin, Swift, Dart…

    2.1k GitHub stars~2.8k tokensUpdated 29 days ago
    DevelopmentAuto-check: notes
  • Coding Standards

    apache/shardingsphere

    Apply Apache ShardingSphere's written coding standards when explicitly requested, or when code-implementation routes task-changed production, test, script, build, generated, or Maven POM artifacts…

    21k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • New Rule for sonar-java

    SonarSource/sonar-java

    Official

    Sets the sonar-java conventions for adding an analyzer rule: metadata from rule-api, test locations, MethodMatchers and what not to commit or change.

    1.2k GitHub stars~833 tokensUpdated today
    DevelopmentAuto-check passed
  • Shared reference for naming, function size, complexity and error handling rules that reviewer agents apply across TypeScript, Python, Go, Rust, Java, C# and Swift.

    2k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Code Quality

    piomin/claude-ai-spring-boot

    Comprehensive code review for Java - clean code principles, API contracts, null safety, exception handling, and performance.

    1.3k GitHub stars~2.2k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Android Code Quality Checker

    wordpress-mobile/WordPress-Android

    Runs detekt, checkstyle, and Android lint together, reads their reports, and proposes approved fixes grouped by file.

    3.2k GitHub stars~587 tokensUpdated today
    DevelopmentAuto-check passed

More from nwjs/chromium.src

All 64 skills in this repo
  • Analyzing SQL Traces

    nwjs/chromium.src

    Extracts raw trace data from Perfetto traces, runs arbitrary SQL queries for custom follow-up analysis, and applies expert cognitive principles (Tiered Flow Analysis, Semantic Mismatch, Redundancy)…

    160 GitHub stars~2.9k tokensUpdated 4 days ago
    Auto-check passed
  • Autonomous multi-agent performance optimization loop for Chromium and V8.

    160 GitHub stars~4.2k tokensUpdated 4 days ago
    Auto-check passed
  • Automated Tracing

    nwjs/chromium.src

    Automated Tracing & Performance Telemetry in Chromium using Perfetto and Telemetry benchmarks.

    160 GitHub stars~1.5k tokensUpdated 4 days ago
    Auto-check passed
  • Chrome Releases

    nwjs/chromium.src

    Queries Chrome commit, version, release, and milestone metadata.

    160 GitHub stars~1.3k tokensUpdated 4 days ago
    Auto-check passed
  • Chromium Docs

    nwjs/chromium.src

    Search and reference Chromium documentation from the local docs index, including design docs, APIs, and development guides.

    160 GitHub stars~1.2k tokensUpdated 4 days ago
    Auto-check passed
  • Gn Deps Debugging

    nwjs/chromium.src

    Diagnose Chromium GN dependency and include-visibility failures, including BUILD.gn deps/publicdeps, DEPS include rules, private headers, and circular dependencies.

    160 GitHub stars~1.5k tokensUpdated 4 days ago
    Auto-check passed

Works with

Categories

Questions about Java Inline Fqn Cleanup

What does Java Inline Fqn Cleanup do?

Identify and clean up inline fully qualified Java names (FQNs) in first-party code, replacing them with standard imports. src. Identify and clean up inline fully qualified Java names (FQNs) in first-party code, replacing them with standard imports.

When should I use Java Inline Fqn Cleanup?

Java Inline Fqn Cleanup fits situations like: tasks that involve Code quality.

How do I install Java Inline Fqn Cleanup in Claude Code?

Run `npx skills add nwjs/chromium.src --skill java-inline-fqn-cleanup -a claude-code`. Or copy the skill folder (agents/projects/code-health/java-inline-fqn-cleanup in nwjs/chromium.src) into .claude/skills/java-inline-fqn-cleanup in your project. Claude Code loads it when a task matches its description.

How do I install Java Inline Fqn Cleanup in Codex?

Run `npx skills add nwjs/chromium.src --skill java-inline-fqn-cleanup -a codex`. Or copy the skill folder (agents/projects/code-health/java-inline-fqn-cleanup in nwjs/chromium.src) into .agents/skills/java-inline-fqn-cleanup in your project. Codex loads it when a task matches its description.

Can I use Java Inline Fqn Cleanup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nwjs/chromium.src --skill java-inline-fqn-cleanup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/java-inline-fqn-cleanup, .gemini/skills/java-inline-fqn-cleanup, .github/skills/java-inline-fqn-cleanup and .opencode/skills/java-inline-fqn-cleanup in your project.

What does Java Inline Fqn Cleanup need to run?

Going by SKILL.md and its folder, Java Inline Fqn Cleanup needs Python for the scripts in its folder and the command-line tools its instructions call (git). Our summary lists: Python 3.

Does Java Inline Fqn Cleanup access the network?

SKILL.md names 1 domain. As links in the text: chromium.googlesource.com. This is read from the text; nothing was executed.

Is Java Inline Fqn Cleanup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Java Inline Fqn Cleanup use?

Java Inline Fqn Cleanup is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Java Inline Fqn Cleanup use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 734 tokens, read only when the agent opens those files.

What are the alternatives to Java Inline Fqn Cleanup?

Skills that share tags, products or a category with Java Inline Fqn Cleanup: Code Review Skill (awesome-skills/code-review-skill, 2.1k stars), Coding Standards (apache/shardingsphere, 21k stars), New Rule for sonar-java (SonarSource/sonar-java, 1.2k stars) and Cross-Language Coding Standards (zereight/gitlab-mcp, 2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Java Inline Fqn Cleanup?

nwjs (a GitHub organization) maintains it in nwjs/chromium.src, which has 160 GitHub stars. The repository holds 64 skills in this directory. The repository was last updated on October 3, 2026.

Source: nwjs/chromium.src on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.