Agent skill

Cleanup Code Inspections

by flutter in flutter/flutter-intellij

Reduce technical debt and improve code quality by systematically resolving static analysis warnings.

BSD-3-ClauseAuto-check passedDevelopment

Install Cleanup Code Inspections

skills CLI
$ npx skills add flutter/flutter-intellij --skill cleanup-code-inspections -a claude-code

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

GitHub CLI
$ gh skill install flutter/flutter-intellij cleanup-code-inspections --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/flutter/flutter-intellij.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/cleanup-code-inspections .claude/skills/cleanup-code-inspections && 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
cleanup-code-inspections
GitHub stars
2k
Token cost
~429 tokens
SKILL.md length
205 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Reduce technical debt and improve code quality by systematically resolving static analysis warnings.

  • Works in 7 steps: Baseline → Run Inspection → Prioritize → …
  • Tasks that involve Static analysis and SAST
  • SKILL.md covers Objective and Workflow Instructions
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cleanup Code Inspections is an agent skill from flutter/flutter-intellij. Reduce technical debt and improve code quality by systematically resolving static analysis warnings.

Its SKILL.md is about 430 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Static analysis and SAST, Technical debt and Code quality. It works with Flutter. The repository describes itself as: Flutter Plugin for IntelliJ. The licence is BSD-3-Clause.

When your agent uses it

  • Tasks that involve Static analysis and SAST
  • Tasks that involve Technical debt
  • Tasks that involve Code quality

Example prompts

  • “/cleanup-code-inspections”

Workflow steps

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

  1. Baseline
  2. Run Inspection
  3. Prioritize
  4. Refactor
  5. Suppress
  6. Verify
  7. Report & Review

What it can do on your machine

Read from SKILL.md and the folder at commit 6d5ab33. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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

Cleanup Code Inspections loads about 429 tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 205 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~429

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from flutter/flutter-intellij at commit 6d5ab33, republished under its BSD-3-Clause licence (© flutter). 205 words, ~429 tokens.

Download SKILL.mdSave it as .claude/skills/cleanup-code-inspections/SKILL.md (or your agent's skills folder).
name
cleanup-code-inspections
description
Reduce technical debt and improve code quality by systematically resolving static analysis warnings.

Skill: Code Inspection & Cleanup

You are tasked with reducing technical debt and improving code quality by systematically resolving static analysis warnings.

Objective

Reduce technical debt and improve code quality by systematically resolving static analysis warnings.

Workflow Instructions

1. Baseline
  • Run ./gradlew test and ./gradlew verifyPlugin to ensure the project is stable.
2. Run Inspection
  • Execute Analyze > Inspect Code... on the project (or a specific module) using the "Default" profile.
3. Prioritize
  • Focus first on "Probable bugs", "Performance", and "Memory" categories.
4. Refactor
  • Apply quick-fixes for obvious issues (e.g., "Result of method call ignored", "String concatenation in loop").
5. Suppress
  • Explicitly suppress false positives with a comment and reason (e.g., //noinspection [ID] - [Reason]).
6. Verify
  • Run ./gradlew testClasses to ensure safe refactoring.
  • Run ./gradlew test and ./gradlew verifyPlugin to ensure no regressions.
  • Re-run analysis to ensure the "Yellow code" count has decreased and no regressions were introduced.
7. Report & Review
  • Summarize the inspections resolved.
  • Test Location: Explicitly state where in the IDE the user should go to test the changed functionality (e.g., "Go to Preferences > Languages & Frameworks > Flutter").
  • Action: Ask the user to review the changes closely.
  • Do not commit or push.
  • Provide a suggested Git commit message (e.g., "Cleanup: Resolve static analysis warnings in [Module]").

© flutter, 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

Just SKILL.md in .agents/skills/cleanup-code-inspections of flutter/flutter-intellij.

Open the folder on GitHubat commit 6d5ab33

Compare with similar skills

Cleanup Code Inspections 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.

Cleanup Code Inspections compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cleanup Code Inspections this skillflutter/flutter-intellij2k—~429Automated safety check: PassBSD-3-Clause
Code Review Skillawesome-skills/code-review-skill2.1k—~2.8kAutomated safety check: NotesMIT
jscpd Duplicate Code Detectorkucherenko/jscpd6.3k—~4.6kAutomated safety check: PassMIT
Signals Lintrodydavis/signals.dart819—~712Automated safety check: PassApache-2.0
CheckQuisApp/flutter_contacts111—~141Automated safety check: PassMIT
Dart Coding Standardsbladeofgod/flutter-ai-harness116—~228Automated safety check: PassMIT

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
  • Finds duplicated code in 220+ languages with jscpd, reports exact, renamed and near-miss clones in a compact agent-friendly format and measures duplication.

    6.3k GitHub stars~4.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Signals Lint

    rodydavis/signals.dart

    Standardized compiler diagnostics, static analysis lints, and automated IDE quick-fixes.

    819 GitHub stars~712 tokensUpdated 23 days ago
    DevelopmentAuto-check passed
  • Check

    QuisApp/flutter_contacts

    Run code quality checks — format, test, and analyze. An agent skill from QuisApp/flutter_contacts.

    111 GitHub stars~141 tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Dart Coding Standards

    bladeofgod/flutter-ai-harness

    适用:编写或审查 Dart/Flutter 生产代码,尤其是 Controller、Service、Stream、异步任务和依赖注入。不适用:Kotlin、Swift 或生成代码规范。触发词:Dart、Controller、Service、StreamSubscription、unawaited、dynamic、DI、重构。

    116 GitHub stars~228 tokensUpdated 1 mo ago
    MobileAuto-check passed
  • Flutter Testing Apps

    btwld/superdeck

    Implements unit, widget, and integration tests for a Flutter app.

    129 GitHub stars~2.2k tokensUpdated 9 days ago
    Testing & QAAuto-check passed

More from flutter/flutter-intellij

All 14 skills in this repo
  • Release Plugin

    flutter/flutter-intellij

    Prepare and execute a new release for the flutter-intellij plugin, including updating dependencies, compatibility bounds, changelogs, and verification.

    2k GitHub stars~1k tokensUpdated 2 days ago
    Auto-check passed
  • Add Missing Unit Test

    flutter/flutter-intellij

    Add a new unit test for a class that currently lacks one or add a new test case to an existing test file, verifying improvement with Kover.

    2k GitHub stars~591 tokensUpdated 2 days ago
    Auto-check passed
  • Audit Accessibility

    flutter/flutter-intellij

    Ensure the plugin's custom UI components are accessible to users with screen readers and other assistive technologies.

    2k GitHub stars~520 tokensUpdated 2 days ago
    Auto-check passed
  • Audit Dependencies

    flutter/flutter-intellij

    Optimize plugin size and security by removing unused dependencies and updating outdated libraries.

    2k GitHub stars~475 tokensUpdated 2 days ago
    Auto-check passed
  • Audit UI Thread Safety

    flutter/flutter-intellij

    Prevent UI freezes and ensure a responsive user experience by validating threading rules and migrating blocking calls off the Event Dispatch Thread (EDT).

    2k GitHub stars~518 tokensUpdated 2 days ago
    Auto-check passed
  • Code Review

    flutter/flutter-intellij

    Perform a pedantic, multi-perspective code review on the current diff or git changes against the styleguide and software engineering best practices.

    2k GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Cleanup Code Inspections

What does Cleanup Code Inspections do?

Reduce technical debt and improve code quality by systematically resolving static analysis warnings. Cleanup Code Inspections is an agent skill from flutter/flutter-intellij. Reduce technical debt and improve code quality by systematically resolving static analysis warnings.

When should I use Cleanup Code Inspections?

Cleanup Code Inspections fits situations like: tasks that involve Static analysis and SAST; tasks that involve Technical debt; tasks that involve Code quality.

How do I install Cleanup Code Inspections in Claude Code?

Run `npx skills add flutter/flutter-intellij --skill cleanup-code-inspections -a claude-code`. Or copy the skill folder (.agents/skills/cleanup-code-inspections in flutter/flutter-intellij) into .claude/skills/cleanup-code-inspections in your project. Claude Code loads it when a task matches its description.

How do I install Cleanup Code Inspections in Codex?

Run `npx skills add flutter/flutter-intellij --skill cleanup-code-inspections -a codex`. Or copy the skill folder (.agents/skills/cleanup-code-inspections in flutter/flutter-intellij) into .agents/skills/cleanup-code-inspections in your project. Codex loads it when a task matches its description.

Can I use Cleanup Code Inspections 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 flutter/flutter-intellij --skill cleanup-code-inspections -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cleanup-code-inspections, .gemini/skills/cleanup-code-inspections, .github/skills/cleanup-code-inspections and .opencode/skills/cleanup-code-inspections in your project.

What does Cleanup Code Inspections need to run?

SKILL.md names no scripts, command-line tools or credentials: Cleanup Code Inspections is instructions for the agent only.

Does Cleanup Code Inspections access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cleanup Code Inspections 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. Review the folder before installing.

What licence does Cleanup Code Inspections use?

Cleanup Code Inspections 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 Cleanup Code Inspections use?

About 429 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cleanup Code Inspections?

Skills that share tags, products or a category with Cleanup Code Inspections: Code Review Skill (awesome-skills/code-review-skill, 2.1k stars), jscpd Duplicate Code Detector (kucherenko/jscpd, 6.3k stars), Signals Lint (rodydavis/signals.dart, 819 stars) and Check (QuisApp/flutter_contacts, 111 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cleanup Code Inspections?

flutter (a GitHub organization) maintains it in flutter/flutter-intellij, which has 2,016 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 5, 2026.

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