ember
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ember":https://skillpi.com/zh/skills/deepskill-e85a4662365447fc7f4c51d60bcbf90f5ba56a068a3d17cf32bf05464bc7553c。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Ember.js 专家:面向雄心勃勃 Web 应用的约定优于配置前端框架。帮助开发者利用 Ember 的约定、Glimmer 组件、跟踪属性、Ember Data、嵌套路由布局、服务和 ember-cli 构建大型单页应用(SPA),提供类似 Rails 的高效生产力。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
Frontmatter
name: ember
description: >-
You are an expert in Ember.js, the opinionated frontend framework for
ambitious web applications. You help developers build large-scale SPAs with
Ember's convention-over-configuration approach, Glimmer components, tracked
properties, Ember Data for data management, routing with nested layouts,
services for shared state, and ember-cli for scaffolding — providing
Rails-like productivity for frontend development.
license: Apache-2.0
compatibility: ''
metadata:
author: terminal-skills
version: 1.0.0
category: Frontend Development
tags:
- javascript
- framework
- convention
- spa
- typescript
- productivityEmber.js — Convention-Over-Configuration Frontend Framework
You are an expert in Ember.js, the opinionated frontend framework for ambitious web applications. You help developers build large-scale SPAs with Ember's convention-over-configuration approach, Glimmer components, tracked properties, Ember Data for data management, routing with nested layouts, services for shared state, and ember-cli for scaffolding — providing Rails-like productivity for frontend development.
Core Capabilities
Components (Glimmer)
// app/components/todo-list.ts
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { service } from "@ember/service";
interface TodoListArgs {
title: string;
}
export default class TodoList extends Component<TodoListArgs> {
@service declare store: any;
@tracked newTodoText = "";
@tracked filter: "all" | "active" | "done" = "all";
get filteredTodos() {
const todos = this.store.peekAll("todo");
switch (this.filter) {
case "active": return todos.filter(t => !t.completed);
case "done": return todos.filter(t => t.completed);
default: return todos;
}
}
get remaining() {
return this.store.peekAll("todo").filter(t => !t.completed).length;
}
@action async addTodo() {
if (!this.newTodoText.trim()) return;
const todo = this.store.createRecord("todo", {
text: this.newTodoText,
completed: false,
});
await todo.save();
this.newTodoText = "";
}
@action async toggleTodo(todo: any) {
todo.completed = !todo.completed;
await todo.save();
}
@action setFilter(filter: "all" | "active" | "done") {
this.filter = filter;
}
}
{{! app/components/todo-list.hbs }}
<div class="todo-list">
<h2>{{@title}} ({{this.remaining}} remaining)</h2>
<form {{on "submit" this.addTodo}}>
<input value={{this.newTodoText}}
{{on "input" (fn (mut this.newTodoText) (get event "target.value"))}}
placeholder="Add todo..." />
<button type="submit">Add</button>
</form>
<div class="filters">
{{#each (array "all" "active" "done") as |f|}}
<button {{on "click" (fn this.setFilter f)}}
class={{if (eq this.filter f) "active"}}>
{{f}}
</button>
{{/each}}
</div>
<ul>
{{#each this.filteredTodos as |todo|}}
<li {{on "click" (fn this.toggleTodo todo)}}
class={{if todo.completed "done"}}>
{{todo.text}}
</li>
{{/each}}
</ul>
</div>
Routes
// app/routes/todos.ts
import Route from "@ember/routing/route";
import { service } from "@ember/service";
export default class TodosRoute extends Route {
@service declare store: any;
async model() {
return this.store.findAll("todo");
}
}
// app/router.ts
Router.map(function () {
this.route("todos");
this.route("user", { path: "/users/:user_id" }, function () {
this.route("posts");
this.route("settings");
});
});
Installation
npm install -g ember-cli
ember new my-app --lang en --typescript
cd my-app && ember serve
ember generate component todo-list
ember generate route todos
ember generate model todo
Best Practices
- Tracked properties — Use
@trackedfor reactive state; Ember auto-rerenders when tracked properties change - Convention over config — Follow Ember's file naming/structure conventions; reduces boilerplate dramatically
- Ember Data — Use for API data management; handles caching, relationships, dirty tracking out of the box
- Services — Use services for shared state (auth, notifications, feature flags); injected via
@service - Route model hook — Load data in
model()hook; template receives it automatically, loading states handled - Glimmer components — Use modern Glimmer syntax (no
this.get()); lighter, faster than classic components - ember-cli generators — Use
ember generatefor scaffolding; ensures consistent file structure - Testing built-in — Ember ships with test framework; unit, integration, and acceptance tests out of the box
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供专业的前端开发框架指导,具有明确实用价值
- 覆盖 Ember.js 核心功能模块,满足开发者实际需求
亮点
- 触发词精准完整,覆盖 Ember.js 相关技术关键词
- description 清晰界定 Skill 能力边界
亮点
- 文档结构清晰,包含完整代码示例和最佳实践
- frontmatter 完整,符合 Skill 规范要求
亮点
- 代码示例语法正确,参数使用合理
- 安装命令准确,覆盖主要使用场景
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
保存或修改文件
先确认输出目录和同名文件是否会被覆盖;重要文件保留备份,优先写入新的输出目录。
主文档提及 · 第 68, 74 行 -
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 145 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。