重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
ember-best-practices by nullvoxpopuli/agent-skills
npx skills add https://github.com/nullvoxpopuli/agent-skills --skill ember-best-practices适用于 Ember.js 应用程序的全面性能优化和可访问性指南。包含 10 个类别下的 58 条规则,按影响优先级排序,以指导自动化重构和代码生成。
在以下情况下参考这些指南:
| 优先级 | 类别 | 影响 | 前缀 |
|---|---|---|---|
| 1 | 路由加载与数据获取 | 关键 | route- |
| 2 | 构建与打包优化 | 关键 | bundle- |
| 3 | 组件与响应式 | 高 | , |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
component-exports-| 4 | 可访问性最佳实践 | 高 | a11y- |
| 5 | 服务与状态管理 | 中高 | service- |
| 6 | 模板优化 | 中 | template-, helper- |
| 7 | 性能优化 | 中 | performance- |
| 8 | 测试最佳实践 | 中 | testing- |
| 9 | 工具与配置 | 中 | vscode- |
| 10 | 高级模式 | 中高 | advanced- |
route-parallel-model - 使用 RSVP.hash() 进行并行数据加载route-loading-substates - 实现加载子状态以提升用户体验route-lazy-routes - 使用基于路由的代码分割(配合 Embroider)route-templates - 使用路由模板及同位置语法route-model-caching - 实现智能路由模型缓存bundle-direct-imports - 直接导入,避免整个命名空间bundle-embroider-static - 启用 Embroider 静态模式以进行摇树优化bundle-lazy-dependencies - 延迟加载重量级依赖component-use-glimmer - 使用 Glimmer 组件而非经典组件component-cached-getters - 使用 @cached 处理昂贵计算component-minimal-tracking - 仅追踪影响渲染的属性component-tracked-toolbox - 使用 tracked-built-ins 处理复杂状态component-composition-patterns - 使用 yield 块和上下文组件component-reactive-chains - 使用依赖的 getter 构建响应式链component-class-fields - 使用类字段进行组件组合component-controlled-forms - 实现受控表单模式component-on-modifier - 使用 {{on}} 修饰符处理事件component-args-validation - 验证组件参数component-memory-leaks - 防止组件内存泄漏component-strict-mode - 使用严格模式和仅模板组件component-avoid-classes-in-examples - 避免在组件示例中使用不必要的类component-avoid-constructors - 避免在 Glimmer 组件中使用构造函数component-avoid-lifecycle-hooks - 避免使用旧版生命周期钩子component-file-conventions - 遵循正确的文件命名约定exports-named-only - 仅使用命名导出a11y-automated-testing - 使用 ember-a11y-testing 进行自动化检查a11y-semantic-html - 使用语义化 HTML 和正确的 ARIA 属性a11y-keyboard-navigation - 确保完整的键盘导航支持a11y-form-labels - 将标签与输入关联,并播报错误a11y-route-announcements - 向屏幕阅读器播报路由切换service-cache-responses - 在服务中缓存 API 响应service-shared-state - 使用服务管理共享状态service-ember-data-optimization - 优化 WarpDrive 查询service-owner-linkage - 管理服务所有者和链接模式service-data-requesting - 实现健壮的数据请求模式template-let-helper - 使用 {{#let}} 避免重复计算template-each-key - 使用带 @key 的 {{#each}} 以实现高效列表更新template-avoid-computation - 将昂贵计算移至缓存的 getter 中template-helper-imports - 在模板中直接导入助手template-conditional-rendering - 优化条件渲染template-fn-helper - 使用 {{fn}} 助手进行部分应用template-only-component-functions - 使用仅模板组件helper-composition - 组合助手以实现可重用逻辑helper-builtin-functions - 有效使用内置助手helper-plain-functions - 将助手编写为纯函数performance-on-modifier-vs-handlers - 使用 {{on}} 修饰符而非事件处理器属性testing-modern-patterns - 使用现代测试模式testing-qunit-dom-assertions - 使用 qunit-dom 进行更好的测试断言testing-test-waiters - 使用 @ember/test-waiters 进行异步测试testing-render-patterns - 为组件使用正确的渲染模式testing-msw-setup - 使用 MSW 模拟 API 请求testing-library-dom-abstraction - 使用 Testing Library 模式vscode-setup-recommended - VS Code 扩展和 MCP 服务器设置advanced-modifiers - 使用修饰符处理 DOM 副作用advanced-helpers - 将可重用逻辑提取到助手中advanced-tracked-built-ins - 使用来自 @ember/reactive/collections 的响应式集合advanced-concurrency - 使用 ember-concurrency 进行任务管理advanced-data-loading-with-ember-concurrency - 使用 ember-concurrency 的数据加载模式阅读各个规则文件以获取详细解释和代码示例:
rules/route-parallel-model.md
rules/bundle-embroider-static.md
rules/a11y-automated-testing.md
每个规则文件包含:
Ember 通过社区插件提供了出色的可访问性支持:
这些工具结合原生 Web 平台功能,以最少的配置提供了全面的 a11y 支持。
查看包含所有规则详情的完整指南:AGENTS.md
每周安装量
62
代码仓库
GitHub 星标数
5
首次出现
2026年2月3日
安全审计
安装于
codex58
opencode57
github-copilot56
gemini-cli54
amp53
kimi-cli53
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.
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-class-fields - Use class fields for component compositioncomponent-controlled-forms - Implement controlled form patternscomponent-on-modifier - Use {{on}} modifier for event handlinga11y-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 effectivelyperformance-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 patternsvscode-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.
For the complete guide with all rules expanded: AGENTS.md
Weekly Installs
62
Repository
GitHub Stars
5
First Seen
Feb 3, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex58
opencode57
github-copilot56
gemini-cli54
amp53
kimi-cli53
Vercel React 最佳实践指南 | Next.js 性能优化与代码规范
10,600 周安装
Sentry Cocoa SDK 安装与配置指南:iOS/macOS/tvOS 应用错误监控与性能分析
395 周安装
视频营销策略与脚本创作指南:短视频长视频优化、吸引钩子技巧、平台SEO
395 周安装
Pyrefly 类型覆盖指南:Python 代码类型检查与注解优化教程
411 周安装
PyTorch AOTI 调试指南:解决 AOTInductor 常见错误与 CUDA 内存访问问题
413 周安装
VSCode Agent Sessions 窗口开发指南:架构、布局与AI自定义规范
480 周安装
合规审查工具 - 自动检查业务计划、产品功能、营销活动的法律合规性 | GDPR/CCPA/HIPAA
537 周安装
component-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-only - Use named exports onlyhelper-plain-functions - Write helpers as plain functions