Detects and refactors expensive, impure, or repeated logic in Angular templates into precomputed state, view models, pure pipes, or computed signals. Use when templates call methods, filter/map/sort arrays, or have rendering lag.
Ships in ngautopilot-angular. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to reduce repeated work in Angular templates by moving costly or impure logic into the component, a view model, a pure pipe, or a computed signal.
Use the compatible variant:
computed when the project already uses signals.Do not treat every function call in a template as a defect. Focus on functions that are expensive, impure, allocate objects, transform collections, or run inside large loops. If a template method is trivial and stable, document it rather than refactoring it out.
Use this skill when:
*ngIf, *ngFor, @if, or @for.Precalculate simple component state:
readonly total = this.calculateTotal(this.items);
{{ total }}
Use computed signals when supported:
readonly total = computed(() =>
this.items().reduce((sum, item) => sum + item.price, 0),
);
{{ total() }}
Use a pure pipe for reusable deterministic view transformations:
{{ items | totalPrice }}
Avoid expensive template calls:
{{ computeTotal(items) }}
<div *ngIf="checkUserPermissions(user)">...</div>
Avoid collection work in templates:
<app-list [items]="items.filter(isVisible).map(toViewModel)" />
Avoid side effects from template methods.
Avoid putting filters, sorts, permission checks, or object creation directly into repeated bindings when the result can be derived once.
When the project uses signals, prefer computed for local derived state; otherwise keep the derivation in the component, a facade, or a pure pipe.
computed is used only when Angular signals are available and appropriate.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ngautopilot-angular:angular--performance--template-logic-optimizationfrom ngautopilot-angular
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-angular350 skills in this plugin
/angular--ai--angular-v22-agent-skills-integrationAngular v22 Agent Skills IntegrationUse official Angular Agent Skills as reference material without copying them blindly or replacing NgAutoPilot routing. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-ai-tutor-safe-usageAngular v22 AI Tutor Safe UsageUse AI tutor workflows to teach Angular concepts without allowing unsafe code or secret exposure. For Angular 22 projects and 21-to-22 upgrade planning.
Other plugins' skills for the same job
/angular--ai--angular-v22-angular-mcp-agent-workflowAngular v22 Angular MCP Agent WorkflowReview the workspace boundary, permissions, and runtime evidence of an Angular MCP integration. For Angular 22 projects and 21-to-22 upgrade planning.