Skills2026年3月29日·1 分钟阅读

Gemini CLI Extension: Angular — Web App Development

Gemini CLI extension for Angular. Component generation, routing, services, reactive forms, and testing patterns.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 17/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
CLI Tool
安装
Stage only
信任
信任等级:Community
入口
Gemini CLI Extension: Angular
安全暂存命令
npx -y tokrepo@latest install 0782cb9b-89c8-4ead-83a4-4ea4fb4dea48 --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

TL;DR
A Gemini CLI extension for Angular: generate components, routing, services, forms, and test patterns.
§01

What it is

This Gemini CLI extension adds Angular-specific development capabilities to the Gemini command-line interface. It generates components, configures routing, creates services, builds reactive forms, and scaffolds testing patterns.

The extension targets Angular developers who want AI-assisted code generation integrated into their terminal workflow. It understands Angular's module system, dependency injection, and template syntax.

The project is actively maintained and suitable for both individual developers and teams looking to integrate it into their existing toolchain. Documentation and community support are available for onboarding.

§02

How it saves time or tokens

Instead of manually creating component files (TypeScript, HTML, CSS, spec), the extension generates complete Angular artifacts with proper module declarations and routing configuration. It understands Angular conventions, so generated code follows the official style guide without manual corrections.

For teams evaluating multiple tools in the same category, the clear documentation and active community reduce the time spent on research and troubleshooting. Getting started takes minutes rather than hours of configuration.

§03

How to use

  1. Install the Gemini CLI and the Angular extension.
  2. Navigate to your Angular project directory.
  3. Use commands like gemini angular component UserProfile to generate components.
  4. The extension creates all required files and updates module declarations automatically.
§04

Example

# Install the Angular extension
gemini extensions install angular-dev

# Generate a standalone component with routing
gemini angular component ProductList --standalone --route products

# Create a reactive form service
gemini angular service CheckoutForm --type reactive-form

# Generate a guard with canActivate
gemini angular guard AuthGuard --implements canActivate

# Scaffold unit tests for a component
gemini angular test ProductList --framework jasmine
§05

Related on TokRepo

§06

Common pitfalls

  • Generating components without specifying standalone mode in Angular 17+ projects. The extension defaults to module-based components unless you pass --standalone.
  • Not reviewing generated test files. AI-generated tests may miss edge cases specific to your business logic. Always add custom assertions.
  • Running the extension outside an Angular project directory. It needs angular.json to detect project structure and configure imports correctly.
  • Applying the skill without reading the documentation first. Each skill has specific prerequisites and configuration requirements that affect the quality of results.
  • Not pinning dependency versions in production. Floating versions can introduce breaking changes. Lock your dependency versions and test upgrades in staging first.

常见问题

Does this extension work with Angular 17+?+

Yes. The extension supports both module-based and standalone component architectures. Use the `--standalone` flag for Angular 17+ projects that use the standalone component model.

Can it generate lazy-loaded routes?+

Yes. When generating a component with routing, the extension creates lazy-loaded route configurations using the loadComponent or loadChildren pattern based on your project structure.

Does it support Angular Material?+

The extension generates components that can use Angular Material. Specify `--material` to include Material module imports and template patterns in generated components.

What testing framework does it use?+

The extension generates tests for both Jasmine (Angular's default) and Jest. Specify the framework with the `--framework` flag. Generated tests include component rendering, dependency injection mocking, and event testing.

Does the extension modify my existing code?+

The extension creates new files and updates module declarations (imports, routing). It does not modify existing component logic. Review generated routing and module changes before committing.

引用来源 (3)
🙏

来源与感谢

Created by Google. Licensed under Apache 2.0. gemini-cli-extensions/angular Part of Gemini CLI — ⭐ 99,400+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产