/boxel-skills:ember-best-practicesfrom boxel-skills
Ember.js performance optimization and accessibility guidelines. This skill should be used when writing, reviewing, or refactoring Ember.js code to ensure optimal performance patterns and accessibility. Triggers on tasks involving Ember components, routes, data fetching, bundle optimization, or accessibility improvements.
Ships in boxel-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Comprehensive performance optimization and accessibility guide for Ember.js applications. Contains 60 rules across 10 categories, prioritized by impact to guide automated refactoring and code generation.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Route Loading and Data Fetching | CRITICAL | route- |
| 2 | Build and Bundle Optimization | CRITICAL | bundle- |
| 3 | Component and Reactivity | HIGH | component-, exports- |
| 4 | Accessibility Best Practices | HIGH | a11y- |
| 5 | Service and State Management | MEDIUM-HIGH | service- |
| 6 | Template Optimization | MEDIUM | template-, helper- |
| 7 | Performance Optimization | MEDIUM | performance- |
| 8 | Testing Best Practices | MEDIUM | testing- |
| 9 | Tooling and Configuration | MEDIUM | vscode- |
| 10 | Advanced Patterns | MEDIUM-HIGH | advanced- |
route-parallel-model - Use RSVP.hash() for parallel data loadingroute-loading-substates - Implement loading substates for better UXroute-lazy-routes - Use route-based code splitting with Embroiderroute-templates - Use route templates with co-located syntaxroute-model-caching - Implement smart route model cachingbundle-direct-imports - Import directly, avoid entire namespacesbundle-embroider-static - Enable Embroider static mode for tree-shakingbundle-lazy-dependencies - Lazy load heavy dependenciescomponent-use-glimmer - Use Glimmer components over classic componentscomponent-cached-getters - Use @cached for expensive computationscomponent-minimal-tracking - Only track properties that affect renderingcomponent-tracked-toolbox - Use tracked-built-ins for complex statecomponent-composition-patterns - Use yield blocks and contextual componentscomponent-reactive-chains - Build reactive chains with dependent getterscomponent-no-writes-during-render - Never write tracked state a render already readcomponent-class-fields - Use class fields for component compositioncomponent-controlled-forms - Implement controlled form patternscomponent-on-modifier - Use {{on}} modifier for event handlingcomponent-args-validation - Validate component argumentscomponent-memory-leaks - Prevent memory leaks in componentscomponent-strict-mode - Use strict mode and template-only componentscomponent-avoid-classes-in-examples - Avoid unnecessary classes in component examplescomponent-avoid-constructors - Avoid constructors in Glimmer componentscomponent-avoid-lifecycle-hooks - Avoid legacy lifecycle hookscomponent-file-conventions - Follow proper file naming conventionsexports-named-with-default-fallback - Prefer named exports, fall back to default for implicit template lookupa11y-automated-testing - Use ember-a11y-testing for automated checksa11y-semantic-html - Use semantic HTML and proper ARIA attributesa11y-keyboard-navigation - Ensure full keyboard navigation supporta11y-form-labels - Associate labels with inputs, announce errorsa11y-route-announcements - Announce route transitions to screen readersservice-cache-responses - Cache API responses in servicesservice-shared-state - Use services for shared stateservice-ember-data-optimization - Optimize WarpDrive queriesservice-owner-linkage - Manage service owner and linkage patternsservice-data-requesting - Implement robust data requesting patternstemplate-let-helper - Use {{#let}} to avoid recomputationtemplate-each-key - Use {{#each}} with @key for efficient list updatestemplate-avoid-computation - Move expensive work to cached getterstemplate-helper-imports - Import helpers directly in templatestemplate-conditional-rendering - Optimize conditional renderingtemplate-fn-helper - Use {{fn}} helper for partial applicationtemplate-only-component-functions - Use template-only componentshelper-composition - Compose helpers for reusable logichelper-builtin-functions - Use built-in helpers effectivelyhelper-plain-functions - Write helpers as plain functionsperformance-on-modifier-vs-handlers - Use {{on}} modifier instead of event handler propertiestesting-modern-patterns - Use modern testing patternstesting-qunit-dom-assertions - Use qunit-dom for better test assertionstesting-test-waiters - Use @ember/test-waiters for async testingtesting-render-patterns - Use correct render patterns for componentstesting-msw-setup - Mock API requests with MSWtesting-library-dom-abstraction - Use Testing Library patternstesting-no-raf-for-state - Avoid requestAnimationFrame for state changesvscode-setup-recommended - VS Code extensions and MCP server setupadvanced-modifiers - Use modifiers for DOM side effectsadvanced-helpers - Extract reusable logic into helpersadvanced-tracked-built-ins - Use reactive collections from @ember/reactive/collectionsadvanced-concurrency - Use ember-concurrency for task managementadvanced-data-loading-with-ember-concurrency - Data loading patterns with ember-concurrencyRead individual rule files for detailed explanations and code examples:
rules/route-parallel-model.md
rules/bundle-embroider-static.md
rules/a11y-automated-testing.md
Each rule file contains:
Ember has excellent accessibility support through community addons:
These tools, combined with native web platform features, provide comprehensive a11y support with minimal configuration.
README.md (opens in a new tab)rules/a11y-automated-testing.md (opens in a new tab)rules/a11y-form-labels.md (opens in a new tab)rules/a11y-keyboard-navigation.md (opens in a new tab)rules/a11y-route-announcements.md (opens in a new tab)rules/a11y-semantic-html.md (opens in a new tab)rules/advanced-concurrency.md (opens in a new tab)rules/advanced-data-loading-with-ember-concurrency.md (opens in a new tab)rules/advanced-helpers.md (opens in a new tab)rules/advanced-modifiers.md (opens in a new tab)rules/advanced-tracked-built-ins.md (opens in a new tab)rules/bundle-direct-imports.md (opens in a new tab)rules/bundle-embroider-static.md (opens in a new tab)rules/bundle-lazy-dependencies.md (opens in a new tab)rules/component-args-validation.md (opens in a new tab)rules/component-avoid-classes-in-examples.md (opens in a new tab)rules/component-avoid-constructors.md (opens in a new tab)rules/component-avoid-lifecycle-hooks.md (opens in a new tab)rules/component-cached-getters.md (opens in a new tab)rules/component-class-fields.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
boxel-skills@cardstack-boxel is listed by cardstack/boxel — review the source before installing
npx claudepluginhub cardstack/boxel --plugin boxel-skills27 skills in this plugin
/api-integrationsUse when a card needs data from, or sends data to, a third-party API — "show my GitHub pull requests in a card", "pull my open issues", "a card that calls the weather API with my key", "integrate with Stripe/Twilio/OpenAI", "how often can this card poll", "build a PR inbox". Takes a card author from "I want data from this vendor" to a working card: classifying the integration (no key, a key the workspace shares, the user's own key, a key that can write), choosing a live card or a scheduled pipeline (and why private data takes the pipeline), declaring the `callApi` operations with labels and credential slots, estimating polling cost, and recipes for GitHub (GraphQL, a GitHub App or a read-only fine-grained token, the PR inbox as a pipeline and as a live card), for a plain API key sent in a header, and for images from an AI vendor called with the user's own key (an automation run's own AI requests carry text only). Activates on "third-party API", "vendor API", "integration", "pipeline", "live card", "On a schedule and when the card is opened", "poll", "GitHub API", "GraphQL", `callApi`, `{{userKey}}`, `{{apiKey}}`, "image generation", "AI vendor key", "automation image"./api-keysUse when a card or the AI assistant needs a user's API key, or a key shared into a workspace — "this card needs my GitHub token", "the forecast operation was refused binding-not-approved", "let the user add their key", "share my key with this workspace", "add a key button". Also "sign in to GitHub from this card", "connect my account", "the operation was refused credential-rejected", "the service rejected my key", "should I register a GitHub App or an OAuth App". Covers getting a key from the user only through Boxel's secure window, with the open-secure-window tool: opening it from a card through `@context.toolContext` or from the assistant, its modes (enter a key, replace the key an operation sends, share a key, connect an account through OAuth, approve a card's requests for scheduled pipelines or also for when the card is opened, review what changed in them), passing only the operation the card is blocked on and letting the window gather the card's other operations into one approval, what the tool answers, the blocked-popup fallback, telling the user to check the address bar, what to do when the service rejects a key (stop polling, offer Try again, and Reconnect, which opens the window to replace the key), OAuth clients and connections (when to use a connection rather than a static key, what the card declares, opening connect mode, `credential-rejected` and its reasons, sharing a client into a workspace, and why GitHub takes a GitHub App), and never asking for a credential in the chat or building a form for one. Also covers asking first with `@context.keyReadiness` — the answers (`ready`, `needs-connect`, `needs-approval`, `needs-reapproval`, `needs-admin`, `needs-sign-in`, `rate-limited`, `over-budget`), what a card shows for each and what the secure window can fix, and treating `undefined` as "not known yet" so prerendered HTML never shows Connect. Also covers a call refused for the key owner's limits (`rate-limited`, `over-budget`, `rate-limit-unavailable`): backing off by `retryAfterSeconds` and saying the limit is reached without naming a budget. Activates on "approve", "Allow", "review changes", `needs-approval`, `needs-reapproval`, `open-secure-window`, `OpenSecureWindowTool`, `keyReadiness`, "secure window", "API key", "enter a key", "replace a key", "share a key", "OAuth", "connect", "Reconnect", "GitHub App", `{{userKey}}`, `{{apiKey}}`, `binding-not-approved`, `interactive-use-not-approved`, `anonymous-use-not-approved`, "On a schedule and when the card is opened", "people who aren't signed in", "anonymous cap", `credential-rejected`, `rate-limited`, `over-budget`.Other plugins' skills for the same job