Token导航 LogoToken导航TokenDH.com
开发规范操作浏览器github未标认证来源可访问许可证需确认审计通过

ember-best-practices余烬最佳实践

Agent Skill

ember-best-practices 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,872

周安装

75

GitHub Stars

11

下载量

606
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ember-best-practices(余烬最佳实践)
来源仓库:https://github.com/nullvoxpopuli/agent-skills
仓库路径:skills/ember-best-practices
安装命令:
npx skills add https://github.com/nullvoxpopuli/agent-skills --skill ember-best-practices
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nullvoxpopuli/agent-skills --skill ember-best-practices

简介

ember-best-practices 用于记录任务执行中的错误、纠正和经验缺口。

  • 适合让 Agent 持续沉淀问题、修正和最佳实践。
  • 通过 npx skills add 命令安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件读写操作。
  • 可结合来源仓库进一步核验功能细节和使用限制。

SKILL.md

Ember.js Best Practices

Comprehensive performance optimization and accessibility guide for Ember.js applications. Contains 58 rules across 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)

  • route-parallel-model - Use RSVP.hash() for parallel data loading
  • route-loading-substates - Implement loading substates for better UX
  • route-lazy-routes - Use route-based code splitting with Embroider
  • route-templates - Use route templates with co-located syntax
  • route-model-caching - Implement smart route model caching

2. Build and Bundle Optimization (CRITICAL)

  • bundle-direct-imports - Import directly, avoid entire namespaces
  • bundle-embroider-static - Enable Embroider static mode for tree-shaking
  • bundle-lazy-dependencies - Lazy load heavy dependencies

3. Component and Reactivity Optimization (HIGH)

  • component-use-glimmer - Use Glimmer components over classic components
  • component-cached-getters - Use @cached for expensive computations
  • component-minimal-tracking - Only track properties that affect rendering
  • component-tracked-toolbox - Use tracked-built-ins for complex state
  • component-composition-patterns - Use yield blocks and contextual components
  • component-reactive-chains - Build reactive chains with dependent getters
  • component-class-fields - Use class fields for component composition
  • component-controlled-forms - Implement controlled form patterns
  • component-on-modifier - Use {{on}} modifier for event handling
  • component-args-validation - Validate component arguments
  • component-memory-leaks - Prevent memory leaks in components
  • component-strict-mode - Use strict mode and template-only components
  • component-avoid-classes-in-examples - Avoid unnecessary classes in component examples
  • component-avoid-constructors - Avoid constructors in Glimmer components
  • component-avoid-lifecycle-hooks - Avoid legacy lifecycle hooks
  • component-file-conventions - Follow proper file naming conventions
  • exports-named-only - Use named exports only

4. Accessibility Best Practices (HIGH)

  • a11y-automated-testing - Use ember-a11y-testing for automated checks
  • a11y-semantic-html - Use semantic HTML and proper ARIA attributes
  • a11y-keyboard-navigation - Ensure full keyboard navigation support
  • a11y-form-labels - Associate labels with inputs, announce errors
  • a11y-route-announcements - Announce route transitions to screen readers

5. Service and State Management (MEDIUM-HIGH)

  • service-cache-responses - Cache API responses in services
  • service-shared-state - Use services for shared state
  • service-ember-data-optimization - Optimize WarpDrive queries
  • service-owner-linkage - Manage service owner and linkage patterns
  • service-data-requesting - Implement robust data requesting patterns

6. Template Optimization (MEDIUM)

  • template-let-helper - Use {{#let}} to avoid recomputation
  • template-each-key - Use {{#each}} with @key for efficient list updates
  • template-avoid-computation - Move expensive work to cached getters
  • template-helper-imports - Import helpers directly in templates
  • template-conditional-rendering - Optimize conditional rendering
  • template-fn-helper - Use {{fn}} helper for partial application
  • template-only-component-functions - Use template-only components
  • helper-composition - Compose helpers for reusable logic
  • helper-builtin-functions - Use built-in helpers effectively
  • helper-plain-functions - Write helpers as plain functions

7. Performance Optimization (MEDIUM)

  • performance-on-modifier-vs-handlers - Use {{on}} modifier instead of event handler properties

8. Testing Best Practices (MEDIUM)

  • testing-modern-patterns - Use modern testing patterns
  • testing-qunit-dom-assertions - Use qunit-dom for better test assertions
  • testing-test-waiters - Use @ember/test-waiters for async testing
  • testing-render-patterns - Use correct render patterns for components
  • testing-msw-setup - Mock API requests with MSW
  • testing-library-dom-abstraction - Use Testing Library patterns

9. Tooling and Configuration (MEDIUM)

  • vscode-setup-recommended - VS Code extensions and MCP server setup

10. Advanced Patterns (MEDIUM-HIGH)

  • advanced-modifiers - Use modifiers for DOM side effects
  • advanced-helpers - Extract reusable logic into helpers
  • advanced-tracked-built-ins - Use reactive collections from @ember/reactive/collections
  • advanced-concurrency - Use ember-concurrency for task management
  • advanced-data-loading-with-ember-concurrency - Data loading patterns with ember-concurrency

How to Use

Read 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:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references

Accessibility with OSS Tools

Ember has excellent accessibility support through community addons:

  • ember-a11y-testing - Automated accessibility testing in your test suite
  • ember-a11y - 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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.39%
按下载量换算202

Claude

31.13%
按下载量换算189

Cursor

18.12%
按下载量换算110

Gemini CLI

8.16%
按下载量换算49

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills