angular-new-app — скилл для Claude Code: создание Angular-приложения
Скилл для быстрого создания нового Angular-приложения с помощью Angular CLI. Проверяет окружение, генерирует проект с нужными флагами и направляет разработку по лучшим практикам Angular.
npx skills add angular/skills --skill angular-new-app -a claude-codeЧто делает angular-new-app
Скилл автоматизирует создание Angular-приложения: проверяет наличие Angular CLI, создаёт проект с помощью npx ng new и подбирает флаги в зависимости от требований (SCSS, роутинг, SSR, префикс селектора). После создания скилл загружает конфигурацию AI, чтобы генерировать код в соответствии с современными практиками Angular.
Внутри скилла инструкции для генерации компонентов, сервисов, пайпов, гардов, интерцепторов и других артефактов через Angular CLI. Есть рекомендация использовать Tailwind — скилл подскажет, как добавить его через npx ng add tailwindcss.
Требует Node.js, npm и доступа в интернет. Перед первым использованием проверяет, установлен ли Angular CLI глобально, и при необходимости предложит установить его с помощью npm install -g @angular/cli.
Какие задачи решает
- создать новый Angular-проект с правильными флагами и конфигурацией
- сгенерировать компоненты, сервисы и другие Angular-артефакты через CLI
- настроить Tailwind CSS в Angular-приложении
- следовать лучшим практикам Angular при разработке
Примеры запросов агенту
- Создай новое Angular-приложение для моего проекта с роутингом и SCSS
- Помоги мне начать Angular-приложение с SSR
- Сгенерируй компонент для этого приложения и добавь Tailwind
Как установить angular-new-app
1Через Skills CLI (Vercel)
npx skills add angular/skills --skill angular-new-app -a claude-code2Вручную: положить файлы
~/.claude/skills/angular-new-app/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/angular-new-app/
1Через Skills CLI (Vercel)
npx skills add angular/skills --skill angular-new-app -a codex2Вручную: положить файлы
.agents/skills/angular-new-app/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add angular/skills --skill angular-new-app -a cursor2Вручную: положить файлы
.cursor/skills/angular-new-app/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install angular/skills angular-new-app2Вручную: положить файлы
.github/skills/angular-new-app/SKILL.md1Через Skills CLI (Vercel)
npx skills add angular/skills --skill angular-new-app -a gemini-cli2Командой платформы
gemini skills install https://github.com/angular/skills --path angular-new-appВручную: положить файлы
.devin/skills/angular-new-app/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add angular/skills --skill angular-new-app -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора2
Весь набор →Похожие
Вопросы о angular-new-app
Как установить angular-new-app в Claude Code?
Выполни команду npx skills add angular/skills --skill angular-new-app -a claude-code, затем открой ~/.claude/skills/angular-new-app/SKILL.md.
Что делает angular-new-app?
Скилл создаёт новое Angular-приложение, проверив окружение, и помогает генерировать компоненты, сервисы и другие элементы кода согласно лучшим практикам Angular.
Какие требования для работы angular-new-app?
Нужны Node.js, npm и интернет. Angular CLI проверится автоматически; если его нет, скилл предложит установить глобально.
Исходный текст
SKILL.md · MIT
--- name: angular-new-app description: Creates a new Angular app using the Angular CLI. This skill should be used whenever a user wants to create a new Angular application and contains important guidelines for how to effectively create a modern Angular application. license: MIT compatibility: Requires node, npm, and access to the internet metadata: author: Angular Team @ Google version: '1.0' --- # Angular New App You are an expert in TypeScript, Angular, and scalable web application development. You write functional, maintainable, performant, and accessible code following Angular and TypeScript best practices. You have access to tools to create new Angular apps. When creating a new Angular application for a user, always follow the following steps: 1. **Check for the Angular CLI**: Confirm that the Angular CLI is present before continuing. Here are some ways to confirm: - on `*nix` systems `which ng` - on Windows systems `where ng`, if powershell `gcm ng` If it is present, skip to step 2, if not, ask the user if they'd like to install it globally for the user with the following command: `npm install -g @angular/cli` _IMPORTANT_: There are best practices available for building outstanding Angular applications via the MCP server that is bundled with the Angular CLI. Available through `ng mcp` and the `get_best_practices`. 2. **Create the new application**: To create the application either suggest a name based on the user prompt or ask the user the name of the application. Create the application with the following command: `npx ng new <app-name> [list of flags based on the description of the app] --interactive=false --ai-config=[agents, claude, copilot, cursor, gemini, jetbrains, none, windsurf]` _Important_: Prefer agent for `--ai-config`, or use the option that best suits the environment, for example if the user is using Gemini, use `--ai-config=gemini`. Load the contents of that AI configuration into memory so that you can refer to it when generating code for the user. This will help you generate code that is consistent with modern Angular best practices. Consider these commonly useful flags based on the user's requirements: - `--style=scss|css|less` — stylesheet format - `--routing` — add routing module - `--ssr` — enable server-side rendering - `--prefix=<prefix>` — component selector prefix - `--skip-tests` — only if the user explicitly requests it 3. Do not start the app until you've built some features, ask the user if they want to start the app. You can always run `npx ng build` to check for errors and repair them. 4. Remember the following guidelines for continuing to generate Angular application code: - To generate components, use the Angular CLI `npx ng generate component <component-name>` - To generate services, use the Angular CLI `npx ng generate service <service-name>` - To generate pipes, use the Angular CLI `npx ng generate pipe <pipe-name>` - To generate directives, use the Angular CLI `npx ng generate directive <directive-name>` - To generate interfaces, use the Angular CLI `npx ng generate interface <interface-name>` - To generate guards, use the Angular CLI `npx ng generate guard <guard-name>` - To generate interceptors, use the Angular CLI `npx ng generate interceptor <interceptor-name>` - To generate resolvers, use the Angular CLI `npx ng generate resolver <resolver-name>` - To generate enums, use the Angular CLI `npx ng generate enum <enum-name>` - To generate classes, use the Angular CLI `npx ng generate class <class-name>` _IMPORTANT_: Take note of the path returned from running the generate commands so that you know exactly where the new files are. Use the Angular CLI to generate the code, then augment the code to meet the needs of the application. 5. To add tailwind, run `npx ng add tailwindcss`. After that, you do not have to do anything else, you can start using tailwind classes in your Angular application. Follow the best practices for tailwind v4 here, learn more if needed: https://tailwindcss.com/docs/upgrade-guide. _IMPORTANT_: There are best practices available for building outstanding Angular applications via the MCP server that is bundled with the Angular CLI. Available through `npx ng mcp` and the `get_best_practices`.
© Angular Team @ Google · MIT · angular/skills