angular/angular-new-app
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.
npx skills add https://github.com/angular/skills --skill 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:
*nix systems which ngwhere ng, if powershell gcm ngIf 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.
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 itnpx ng build to check for errors and repair them.npx ng generate component <component-name>npx ng generate service <service-name>npx ng generate pipe <pipe-name>npx ng generate directive <directive-name>npx ng generate interface <interface-name>npx ng generate guard <guard-name>npx ng generate interceptor <interceptor-name>npx ng generate resolver <resolver-name>npx ng generate enum <enum-name>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.
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.
Take angular/angular-new-app from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npm, npx.
Without those the skill loads but fails at the first command.