CO

code-hygiene

Standardizes Dart code using built-in linting and formatting commands.

Install

mkdir -p .claude/skills/code-hygiene && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13798" && unzip -o skill.zip -d .claude/skills/code-hygiene && rm skill.zip

Installs to .claude/skills/code-hygiene

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Applies Dart fixes and formats Dart code according to standard guidelines.
74 charsno explicit “when” trigger
Beginner

Key capabilities

  • Apply Dart fixes to resolve linting issues
  • Format Dart code according to standard guidelines
  • Remove unused imports
  • Add `const` modifiers where appropriate
  • Recursively format all Dart files
  • Report the results of fix and format operations

How it works

The skill executes `dart fix --apply` to resolve common linting issues and `dart format .` to format all Dart files recursively.

Inputs & outputs

You give it
Dart codebase with potential linting issues or inconsistent formatting
You get back
Cleaned and formatted Dart code, with a report of changes made

When to use code-hygiene

  • Cleaning up Dart code
  • Fixing linting warnings
  • Applying standard code formatting

About this skill

Instructions

When the user asks to clean up the codebase, fix linting issues, or format code, perform the following actions using the run_in_terminal tool:

1. Apply Dart Fixes

To resolve common linting issues (like removing unused imports, adding const modifiers):

dart fix --apply

2. Format Dart Code

To format all Dart files recursively:

dart format .

Report the results of both operations back to the user.

When not to use it

  • When the codebase is not Dart
  • When the user does not want to fix linting issues or format code
  • When the user wants to apply custom formatting rules not aligned with `dart format`

Prerequisites

dart

Limitations

  • The skill applies Dart fixes and formats Dart code.
  • It relies on the `dart fix` and `dart format` commands.
  • It applies fixes for common linting issues.

How it compares

This skill automates the application of standard Dart fixes and formatting across an entire codebase, ensuring consistency and adherence to guidelines more efficiently than manual code review and correction.

Compared to similar skills

code-hygiene side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
code-hygiene (this skill)04moReviewBeginner
typescript-review392moNo flagsIntermediate
antfu63moReviewIntermediate
ast-grep-find37moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry