返回 Skill 列表
extension
分类: 开发与工程无需 API Key

claude-dev-toolkit

当用户想要创建Angular应用程序、生成Angular组件/服务/模块或自动化Angular开发工作流时,请使用此技能。处理带有路由和守卫的完整Angular应用程序的脚手架搭建,生成单独的Angular工件,设置项目结构,并按照Angular最佳实践初始化git仓库。

person作者: jakexiaohubgithub

Claude Dev Toolkit - Angular Development

This skill provides automated workflows for Angular development tasks.

Capabilities

1. Angular Application Scaffolding

When the user requests an Angular app, create a well-structured Angular application with:

  • Routing configuration
  • Authentication guards
  • Service structure
  • Component architecture
  • Core and Shared modules
  • Best practices for folder organization

Command to execute:

ng new {app-name} --routing --style=scss
cd {app-name}
ng generate guard auth/guards/auth
ng generate service auth/services/auth
ng generate module core
ng generate module shared
ng generate component core/components/layout

Create folder structure:

  • src/app/core/ - Core functionality (singletons, guards, interceptors)
  • src/app/shared/ - Shared components, directives, pipes
  • src/app/features/ - Feature modules
  • src/app/auth/ - Authentication logic

After generation, create a README explaining the structure.

2. Angular Component Generation

Generate Angular components with proper structure:

ng generate component {path}/{component-name}

Include component, template, styles, and spec file. Use proper naming conventions.

3. Angular Service Generation

Generate Angular services:

ng generate service {path}/{service-name}

Follow singleton pattern for core services, place in appropriate module.

4. Angular Module Generation

Generate feature modules with routing:

ng generate module {module-name} --routing

5. Git Repository Initialization

Initialize a git repo with Angular-specific best practices:

  • Create .gitignore for Angular/Node.js projects
  • Initialize git
  • Create initial commit
  • Create a basic README with Angular commands
  • Include common Angular build artifacts in .gitignore

6. Angular Guards & Interceptors

Generate guards and HTTP interceptors:

ng generate guard {path}/{guard-name}
ng generate interceptor {path}/{interceptor-name}

Usage Guidelines

  1. Always verify prerequisites - Check if Angular CLI is installed (ng version)
  2. Ask for confirmation - Before creating files/folders, confirm names and locations
  3. Follow Angular style guide - Use Angular naming conventions and best practices
  4. Provide next steps - After generating, tell user how to use/integrate the code
  5. Document everything - Create README files and code comments

Example Interactions

User: "Create an Angular app called my-dashboard" → Use capability #1, verify ng is installed, create app with routing and guards

User: "Generate a user service" → Use capability #3, create service in appropriate location

User: "Add an auth guard" → Use capability #6, generate guard with authentication logic template

User: "Create a products feature module" → Use capability #4, generate module with routing