fxa-simplify

Simplify TypeScript and JavaScript code in the FXA monorepo without altering runtime behavior.

683|238|Updated Jun 3, 2015
One-click install
npx skills add https://github.com/mozilla/fxa --skill fxa-simplify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fxa-simplify
Source: https://github.com/mozilla/fxa/tree/main/.claude/skills/fxa-simplify
Command: npx skills add https://github.com/mozilla/fxa --skill fxa-simplify

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Simplifies and refines code in the FXA monorepo using project-specific conventions. Use when asked to simplify, clean up, or refine recently written code. Focuses on recently modified code unless instructed otherwise.

Core Features & Use Cases

  • Non-invasive refactors that preserve behavior while improving readability and consistency with FXA standards.
  • Applies to recently changed TypeScript/JavaScript code across FXA packages (accounts, subscriptions, shared libs) to reduce debt.
  • Enforces project conventions (Prettier formatting, ESLint rules, explicit typings) to ensure maintainable code across the monorepo.

Quick Start

Provide a cleaned, well-documented version of the recently modified FXA code while preserving behavior.

Frequently Asked Questions about fxa-simplify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor TypeScript in a monorepo without changing runtime behavior?

Code simplification for the FXA monorepo automates non-invasive refactoring of TypeScript and JavaScript files. It enforces project standards like Prettier formatting, explicit typings, and cross-package import rules while preserving exact runtime behavior across accounts and subscriptions packages.

What is the best way to clean up recently modified TypeScript code in a monorepo?

Cleaning up recently modified TypeScript code involves enforcing FXA project conventions including Prettier with single-quote strings, trailing commas, no-non-null assertions, and explicit typings. The process targets recently changed files across accounts, subscriptions, and shared libraries to reduce technical debt.

Does this refactoring approach work with Prettier and ESLint rules?

Yes, this refactoring approach works with Prettier and ESLint rules. It enforces Prettier formatting with single-quote strings and trailing commas, applies the no-non-null assertion ESLint rule, and requires explicit typings to ensure maintainable code across the monorepo packages.

Can I use automated refactoring across multiple packages in a TypeScript monorepo?

Yes, you can use automated refactoring across multiple packages in a TypeScript monorepo. It targets recently changed TypeScript and JavaScript files spanning accounts, subscriptions, and shared libraries, enforcing cross-package import standards and project conventions while preserving exact runtime behavior.

What are the limitations of automated code simplification for TypeScript files?

The main limitation of automated code simplification is that it focuses on recently modified code unless explicitly instructed otherwise. It is scoped to TypeScript and JavaScript files within the FXA monorepo packages and performs non-invasive refactors designed to preserve runtime behavior while improving readability.