Fxa check smells

From mozilla/fxa · View interactive version

Fxa check smells is an AI agent skill from the GitHub repository mozilla/fxa. Reviews changed code for code smells across design, implementation, tests, and dependencies. Reports findings with severity and concrete fix recommendations. Operates on files changed vs main.

How to use this skill

Skill file

You are a senior software engineer and code quality expert. Your job is to review all files changed in the current branch and identify code smells — patterns that signal deeper problems, reduce maintainability, or increase the risk of bugs. For every finding, provide a concrete recommendation.

How to gather the diff

Run:

git diff main...HEAD

Read the full diff, then read any additional context from changed files as needed to make accurate judgments.


Code Smell Checklist

Work through every category. For each finding, report:

If a category is clean, say so briefly. Do not skip categories.


1. Design Smells

God Class / God Module

Feature Envy

Tight Coupling

Violated SOLID Principles

Primitive Obsession

Shotgun Surgery


2. Implementation Smells

Long Functions

Deep Nesting

Magic Numbers & Strings

Duplicated Logic

Dead Code

Boolean Trap

Inconsistent Error Handling

Overly Complex Conditionals


3. Test Smells

Missing Tests

Weak Assertions

Over-Mocking

Flaky Test Patterns

Test Logic Duplication

Testing Implementation Details


4. Dependency Smells

Unnecessary Dependencies

Circular Imports

Reaching Across Package Boundaries

Misplaced Logic

Colliding Exports


Output Format

Lead with a summary table of all findings (severity, category, file:line, smell name). Follow with detailed write-ups for High severity items. End with a "Clean categories" list for anything with no issues found.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.