mcpField
E
ember-best-practices

ember-best-practices

github.com/ember-toolingDevelopment12184 installsUpdated 2w ago
Repository

About ember-best-practices

ember-best-practices is a reference skill for performance and accessibility guidance in Ember.js applications. It organizes recommendations into ten prioritized categories and links each rule to detailed examples and documentation.

Key features

  1. 01Guidance across ten prioritized categories
  2. 02Rules for route loading and data fetching
  3. 03Build, bundle, and component optimization
  4. 04Accessibility and state management practices
  5. 05Detailed rule examples in references

Use cases

  1. 01Plan a new Ember component or route
  2. 02Review an application for performance issues
  3. 03Refactor Ember.js code and reduce bundle size
  4. 04Add accessibility checks and keyboard navigation

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ember-tooling/agent-skills --skill ember-best-practices

After installing, type/ember-best-practicesin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
build-agents.sh
metadata.json
README.md
references/
_sections.md
_template.md
a11y-automated-testing.md
a11y-form-labels.md
a11y-keyboard-navigation.md
a11y-route-announcements.md
a11y-semantic-html.md
advanced-concurrency.md
advanced-data-loading-with-ember-concurrency.md
advanced-helpers.md
advanced-modifier-reruns.md
advanced-modifiers.md
advanced-tracked-built-ins.md
bundle-direct-imports.md
bundle-embroider-static.md
bundle-lazy-dependencies.md
component-args-validation.md
component-avoid-classes-in-examples.md
component-avoid-constructors.md
component-avoid-lifecycle-hooks.md
component-cached-getters.md
component-class-fields.md
component-composition-patterns.md
component-controlled-forms.md
component-file-conventions.md
component-memory-leaks.md

Details

From the project README

Ember.js Best Practices

Comprehensive performance optimization and accessibility guide for Ember.js applications. Its rules span 10 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new Ember components or routes
  • Implementing data fetching with WarpDrive
  • Reviewing code for performance issues
  • Refactoring existing Ember.js code
  • Optimizing bundle size or load times
  • Implementing accessibility features

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Route Loading and Data FetchingCRITICALroute-
2Build and Bundle OptimizationCRITICALbundle-
3Component and ReactivityHIGHcomponent-, exports-
4Accessibility Best PracticesHIGHa11y-
5Service and State ManagementMEDIUM-HIGHservice-
6Template OptimizationMEDIUMtemplate-, helper-
7Performance OptimizationMEDIUMperformance-
8Testing Best PracticesMEDIUMtesting-
9Tooling and ConfigurationMEDIUMvscode-
10Advanced PatternsMEDIUM-HIGHadvanced-

Quick Reference

1. Route Loading and Data Fetching (CRITICAL)
2. Build and Bundle Optimization (CRITICAL)
3. Component and Reactivity Optimization (HIGH)
4. Accessibility Best Practices (HIGH)
5. Service and State Management (MEDIUM-HIGH)
6. Template Optimization (MEDIUM)
7. Performance Optimization (MEDIUM)
8. Testing Best Practices (MEDIUM)
9. Tooling and Configuration (MEDIUM)
10. Advanced Patterns (MEDIUM-HIGH)

How to Use

Each entry in the Quick Reference links to its rule in references/. Read the rules that apply to the task before writing or reviewing code, rather than loading them all.

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Links to the official documentation it is based on

Accessibility with OSS Tools

Ember has excellent accessibility support through community addons:

  • ember-a11y-testing - Automated accessibility testing in your test suite
  • ember-a11y-refocus - Route announcements and focus management
  • ember-focus-trap - Focus trapping for modals and dialogs
  • ember-page-title - Accessible page title management
  • Platform-native validation - Use browser's Constraint Validation API for accessible form validation

These tools, combined with native web platform features, provide comprehensive a11y support with minimal configuration.

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Comments

Markdown supported