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.zipInstalls 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.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
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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| code-hygiene (this skill) | 0 | 4mo | Review | Beginner |
| typescript-review | 39 | 2mo | No flags | Intermediate |
| antfu | 6 | 3mo | Review | Intermediate |
| ast-grep-find | 3 | 7mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
typescript-review
metabase
Review TypeScript and JavaScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull requests or diffs containing TypeScript/JavaScript code.
antfu
antfu
Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences.
ast-grep-find
parcadei
AST-based code search and refactoring via ast-grep MCP
code-standards
redpanda-data
TypeScript, React, and JavaScript best practices enforced by Ultracite/Biome.
naming-analyzer
davila7
Suggest better variable, function, and class names based on context and conventions.
dead-code
parcadei
Find unused functions and dead code in the codebase