ember
БесплатноБез исполняемых скриптовНе проверенEmber.js is an opinionated JavaScript framework for large single-page web apps, built on convention over configuration: Glimmer components, tracked state…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Ember.js — Convention-Over-Configuration Frontend Framework
Overview
Ember is a batteries-included framework for ambitious web applications: file layout and naming drive behaviour, so teams share one structure. New apps (ember-cli 7.x, Ember 7.x at the time of writing, with a major release roughly every 18 months and a minor every six weeks) use:
- Vite as the build tool (
npm startrunsvite,npm run buildrunsvite build); the older ember-cli/Broccoli build withember serveis the legacy path. - Template-tag components (
.gjs/.gts): the<template>block sits in the JavaScript or TypeScript file. Separate.hbsfiles still work in older apps. - Ember Data now ships as WarpDrive (
@warp-drive/*packages; models import from@warp-drive/legacy/model), with the store inapp/services/store.ts. - Octane idioms only: Glimmer components,
@tracked,@action,{{on}}modifiers,this.args. Classic components,this.get(),mutand computed properties are legacy.
Instructions
Create and run an app
npm install -g ember-cli # or: npx ember-cli new ...
ember new todo-app --lang en --typescript --strict
cd todo-app
npm start # Vite dev server on http://localhost:4200
npm test # builds in development mode and runs the QUnit suite via testem
npm run build # production build into dist/
npm run lint:types # type-check .gts files (ember-tsc)
--strict (template-tag format) is what the official quick start uses; drop --typescript for plain JavaScript. Generators: ember generate component todo-list, ember generate route todos, ember generate service session. In a TypeScript app ember generate model may still emit a .js file with untyped fields; rename it to .ts and add declare.
Components (template tag)
// app/components/todo-list.gts
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';
import { on } from '@ember/modifier';
import { service } from '@ember/service';
import type Store from 'todo-app/services/store';
import type Todo from 'todo-app/models/todo';
interface Signature {
Args: { title: string };
}
export default class TodoList extends Component<Signature> {
@service declare store: Store;
@tracked newText = '';
get todos() {
return this.store.peekAll('todo') as Todo[];
}
get remaining() {
return this.todos.filter((t) => !t.completed).length;
}
@action updateText(event: Event) {
this.newText = (event.target as HTMLInputElement).value;
}
@action async addTodo(event: SubmitEvent) {
event.preventDefault();
if (!this.newText.trim()) return;
const todo = this.store.createRecord('todo', { text: this.newText, completed: false }) as Todo;
await todo.save();
this.newText = '';
}
<template>
<h2>{{@title}} ({{this.remaining}} left)</h2>
<form {{on "submit" this.addTodo}}>
<input value={{this.newText}} {{on "input" this.updateText}} placeholder="Add todo" />
<button type="submit">Add</button>
</form>
<ul>
{{#each this.todos as |todo|}}<li>{{todo.text}}</li>{{/each}}
</ul>
</template>
}
In .gjs/.gts files every component, helper and modifier used in the template must be imported (on from @ember/modifier, fn from @ember/helper, other components by path). Built-ins such as {{#if}}, {{#each}} and {{yield}} need no import. A form submit handler must call event.preventDefault() itself.
Model, route and router
// app/models/todo.ts
import Model, { attr } from '@warp-drive/legacy/model';
export default class Todo extends Model {
@attr('string') declare text: string;
@attr('boolean') declare completed: boolean;
}
// app/routes/todos.ts
import Route from '@ember/routing/route';
import { service } from '@ember/service';
import type Store from 'todo-app/services/store';
export default class TodosRoute extends Route {
@service declare store: Store;
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');
});
});
// app/templates/todos.gts
import TodoList from 'todo-app/components/todo-list';
<template><TodoList @title="Sprint 42" /></template>
The route's model() result is available as @model in the route template; pass it down as arguments. The store needs a data source for findAll/save: a legacy adapter in app/adapters/application.ts or request handlers configured in app/services/store.ts. Check the Ember Data (WarpDrive) guide for the setup that fits your API.
Examples
Example 1: Add a route with a nested page
User: "Add a /users/:id/settings page to my Ember app."
Run `ember generat
Установить ember в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ember?
Ember.js is an opinionated JavaScript framework for large single-page web apps, built on convention over configuration: Glimmer components, tracked state, nested routing, services, Ember Data (WarpDrive) and the ember-cli build tool. Use when someone asks to "build an Ember app", "create an Ember component or route", "upgrade Ember", "use Ember Data", or "convert Ember templates to .gjs/.gts".
Как установить скилл ember?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ember запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic