angular
БесплатноБез исполняемых скриптовНе проверенAngular is Google's TypeScript framework for building single-page web applications with components, signals, dependency injection, routing, forms, an HTTP…
Об этом скилле
Angular
Overview
Angular is an opinionated, full-featured frontend framework: TypeScript, components with templates, dependency injection, signals and RxJS for reactivity, a router, forms, an HTTP client, and the ng CLI. This skill targets Angular 22 (CLI 22.2.4, October 2026), whose new projects are standalone, OnPush by default and zoneless, use Vitest for unit tests, and TypeScript 6. Apps from v17 to v21 differ mostly in file naming and defaults; see the guidelines.
Instructions
Create and run a project. Node must satisfy the range in compatibility, otherwise the CLI prints the required versions and exits.
npm create @angular@latest ticket-desk -- --routing --style=scss --defaults
cd ticket-desk
npx ng serve # dev server on http://localhost:4200
npx ng build # production build into dist/ticket-desk/browser
npx ng test # unit tests with the Vitest runner
npx ng generate component articles/article-list
Layout used by the examples below. Generated files have no .component suffix and classes have no Component suffix (app.ts exports App):
src/app/
├── app.ts, app.html, app.config.ts, app.routes.ts
├── articles/ article.model.ts, article.service.ts, article-list/article-list.ts, article-form/article-form.ts
└── auth/ auth.service.ts, auth.guard.ts, auth.interceptor.ts
Rules for current Angular code:
- Components are standalone by default: do not write
standalone: trueor add NgModules. Import only what the template uses (RouterLink,ReactiveFormsModule);CommonModuleis unnecessary because@if,@forand@switchare built into templates. - Change detection is OnPush by default and new apps run without zone.js. A plain field assigned inside a
subscribecallback does not update the view. Keep state insignal(), derive it withcomputed(), and convert Observables withtoSignal()from@angular/core/rxjs-interop. - Use
inject()for dependencies,@Injectable({ providedIn: 'root' })for services, and functional guards (CanActivateFn) and interceptors (HttpInterceptorFn). HttpClientis not provided by default: addprovideHttpClient(withFetch(), withInterceptors([...]))toapp.config.ts.- Lazy-load routes with
loadComponent: () => import('./x').then((m) => m.X). - Template control flow:
@for (item of items(); track item.id) { ... } @empty { ... }(trackis required),@if (...) { ... } @else { ... }.
Examples
Example 1: Searchable article list with signals
User request: "Show articles from /api/articles with a live search box"
import { Component, computed, inject, signal } from '@angular/core';
import { toSignal } from '@angular/core/rxjs-interop';
import { RouterLink } from '@angular/router';
import { ArticleService } from '../article.service';
@Component({
selector: 'app-article-list',
imports: [RouterLink],
template: `
<input #q (input)="search.set(q.value)" placeholder="Search articles" />
<p>{{ filtered().length }} articles found</p>
@for (article of filtered(); track article.id) {
<article>
<h2><a [routerLink]="['/articles', article.slug]">{{ article.title }}</a></h2>
<p>{{ article.excerpt }}</p>
</article>
} @empty {
<p>No articles found.</p>
}
`,
})
export class ArticleList {
private readonly articleService = inject(ArticleService);
protected readonly articles = toSignal(this.articleService.getAll(), { initialValue: [] });
protected readonly search = signal('');
protected readonly filtered = computed(() => {
const term = this.search().toLowerCase();
return this.articles().filter((a) => a.title.toLowerCase().includes(term));
});
}
The service and model it relies on:
import { Injectable, inject } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { Article } from './article.model';
@Injectable({ providedIn: 'root' })
export class ArticleService {
private readonly http = inject(HttpClient);
private readonly baseUrl = '/api/articles';
getAll(): Observable<Article[]> {
return this.http.get<Article[]>(this.baseUrl);
}
create(article: Pick<Article, 'title' | 'excerpt'>): Observable<Article> {
return this.http.post<Article>(this.baseUrl, article);
}
}
Result: ng build compiles it; the list renders from filtered(), and typing in the box updates the count and the rows with no manual change detection.
Example 2: Protected route, token interceptor and reactive form
User request: "Only logged-in users may open the new-article form, and every request should carry the bearer token"
import { Routes } from '@angular/router';
import { authGuard } from './auth/auth.guard';
export const routes: Routes = [
{ path: '', pathMatch: 'full', redirectTo: 'articles' },
{
path:
Установить angular в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл angular?
Angular is Google's TypeScript framework for building single-page web applications with components, signals, dependency injection, routing, forms, an HTTP client and the ng CLI. Use when the user wants to create an Angular app, write standalone components, use signals, set up lazy routes, guards, interceptors or reactive forms, or upgrade an older Angular project. Trigger words: angular, ng new, ng serve, standalone component, signals, rxjs.
Как установить скилл angular?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл angular запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic