Prevents Angular performance issues by moving expensive template method calls into precomputed state, view models, pure pipes, or computed signals.
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 computation during Angular change detection by moving expensive template method calls into precomputed state, view models, pure pipes, or computed signals.
This skill overlaps with template-logic-optimization; keep avoid-template-functions as the concrete detector for method calls in HTML and let the other skill cover broader expression-heavy templates.
Use this skill when:
*ngFor or @for.Prefer precomputed view models:
readonly itemsViewModel = this.items.map((item) => ({
...item,
displayLabel: `${item.code} - ${item.name}`,
}));
@for (item of itemsViewModel; track item.id) {
<span>{{ item.displayLabel }}</span>
}
Prefer computed signals for signal-based state:
readonly visibleItems = computed(() =>
this.items().filter((item) => item.enabled),
);
Prefer pure pipes for reusable, deterministic transformations:
<span>{{ item | itemLabel }}</span>
Keep trivial property reads in the template:
<span>{{ item.name }}</span>
Avoid expensive method calls in templates:
<span>{{ calculateTotal(order) }}</span>
Avoid repeated work inside loops:
<li *ngFor="let item of items">{{ buildDisplayLabel(item) }}</li>
Avoid methods that allocate new arrays or objects during change detection:
<app-list [items]="getFilteredItems()" />
Avoid using template calls as an escape hatch for derivation that belongs in component state, a facade, a selector, or a pure pipe.
computed when appropriate.template-logic-optimization when the issue is not specifically a method call.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ngautopilot-angular:angular--performance--avoid-template-functionsfrom 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.
/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.
Other plugins' skills for the same job