Selects compatible lazy loading patterns for Angular apps: route-level, standalone components, feature modules, and deferrable views. Reduces initial bundle size and improves load time.
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 initial load cost by loading Angular features, routes, components, and non-critical UI only when needed. If the issue is shared-module bloat or eager imports rather than routing, pair this with the relevant architecture or bundle-control skill instead of forcing route changes.
Use the compatible variant:
loadChildren.loadComponent only when the project supports standalone APIs.@defer for non-critical visual content when dependencies can actually be deferred.Use this skill when:
Use route-level lazy loading for feature routes:
{
path: 'admin',
loadChildren: () =>
import('./admin/admin.routes').then((module) => module.ADMIN_ROUTES),
}
Use standalone component lazy loading when supported:
{
path: 'detail',
loadComponent: () =>
import('./detail/detail.component').then((module) => module.DetailComponent),
}
Use @defer for non-critical visual content in Angular 17+:
@defer (on viewport) {
<app-heavy-widget />
} @placeholder {
<app-heavy-widget-skeleton />
}
Separate critical initial content from demand-loaded, deferred, and preloaded content. Prefer route boundaries first, then component-level lazy loading, then visual deferral only when it actually reduces startup cost.
Avoid eager feature imports:
import { AdminModule } from "./admin/admin.module";
Avoid placing large feature dependencies in a global shared module. Avoid using lazy loading as a substitute for poor feature boundaries or duplicated imports that should be fixed at the module or route layer.
Avoid using @defer for content that must be visible immediately on initial render unless layout stability and user experience are handled.
Avoid assuming a component inside @defer is actually split if it is also referenced outside the defer block.
loadChildren is used for feature boundaries when appropriate.loadComponent is used only when standalone support fits the project.@defer is used only when Angular version and dependency constraints support it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ngautopilot-angular:angular--performance--lazy-loading-strategyfrom 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