
Angular Best Practices Primeng
- 684 installs
- 37 repo stars
- Updated March 28, 2026
- alfredoperez/angular-best-practices
angular-best-practices-primeng is a Claude Code skill at version 1.2.0 that enforces PrimeNG-specific performance, tree-shaking import, and Aura/Lara theming rules while building Angular UIs.
About
angular-best-practices-primeng is an Angular frontend skill at version 1.2.0 that applies PrimeNG-specific best practices for component imports, table performance, and theming. The skill covers tree-shaking-friendly PrimeNG imports, lazy-loaded table patterns, and the Aura/Lara theme system with design tokens—activating on primeng component work in .ts, .component.ts, and .html files. Developers reach for it alongside the core angular-best-practices skill when building Angular apps with PrimeNG instead of Angular Material or Spartan UI. MIT-licensed guidance prevents bundle bloat and theming mistakes common in PrimeNG adoption.
- Enforces tree-shaking of PrimeNG standalone component imports
- Requires lazy loading and virtual scrolling on PrimeNG tables
- Guides correct setup of Aura and Lara themes with design tokens
- Activates automatically on *.ts, *.component.ts and *.html files
- Must be installed alongside angular-best-practices for full coverage
Angular Best Practices Primeng by the numbers
- 684 all-time installs (skills.sh)
- Ranked #508 of 2,245 Frontend Development skills by installs in the Skillselion catalog
- Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/alfredoperez/angular-best-practices --skill angular-best-practices-primengAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 684 |
|---|---|
| repo stars | ★ 37 |
| Last updated | March 28, 2026 |
| Repository | alfredoperez/angular-best-practices ↗ |
What are PrimeNG best practices for Angular apps?
Enforce PrimeNG-specific performance, import, and theming rules while building Angular UIs.
Who is it for?
Angular developers using PrimeNG who need enforced import, table performance, and Aura/Lara theming conventions during UI development.
Skip if: Angular Material or Spartan UI projects, non-Angular frameworks, or backend-only tasks with no PrimeNG component usage.
When should I use this skill?
The user works with primeng components, Angular tables, or Aura/Lara theming in .ts and .html Angular files.
What you get
Optimized PrimeNG imports, lazy-loaded table configurations, and Aura/Lara theme token setup in Angular components.
- Optimized PrimeNG imports
- Lazy table configuration
- Theme token setup
By the numbers
- Skill version 1.2.0 with MIT license for PrimeNG Angular guidance
- Activates on globs for **/*.ts, **/*.component.ts, and **/*.html files
Files
Angular PrimeNG Best Practices
PrimeNG rules for component imports, table performance, and theming. Use with the core angular-best-practices skill for comprehensive Angular coverage.
Links
When to Apply
- Importing PrimeNG standalone components
- Configuring tables with server-side pagination or virtual scrolling
- Setting up Aura/Lara themes with design tokens
Rules
| Rule | Impact | Description |
|---|---|---|
| Tree-Shake PrimeNG Imports | MEDIUM | Standalone component imports for smaller bundles |
| Use PrimeNG Table with Lazy Loading | HIGH | Server-side pagination for large datasets |
| Use PrimeNG Theme System | MEDIUM | Design tokens via providePrimeNG instead of CSS overrides |
Install
Install from skills.sh/alfredoperez/angular-best-practices:
- Core skill: angular-best-practices
- This add-on: angular-best-practices-primeng
Angular Primeng Best Practices
Use with the core angular-best-practices skill.---
1. PrimeNG
Impact: MEDIUM (UI components)
1.1 Tree-Shake PrimeNG Imports
Impact: MEDIUM (Reduces bundle size)
Import PrimeNG components individually using standalone component imports. Avoid importing entire PrimeNG modules. Use the standalone API available since PrimeNG v17+.
Incorrect:
// Importing full module pulls in all components
import { ButtonModule } from 'primeng/button';
@NgModule({ imports: [ButtonModule, TableModule, DialogModule] })Correct:
@Component({
imports: [Button, Select], // Standalone components — only what's needed
})1.2 Use PrimeNG Table with Lazy Loading
Impact: HIGH (Handles 100k+ rows efficiently)
Use [lazy]="true" with (onLazyLoad) for server-side pagination, sorting, and filtering. For large client-side datasets, enable [virtualScroll]="true" with [virtualScrollItemSize].
Incorrect:
<!-- Loads all 10,000 rows into DOM -->
<p-table [value]="allData"></p-table>Correct:
<p-table [value]="data" [lazy]="true" [totalRecords]="total"
(onLazyLoad)="load($event)" [paginator]="true" [rows]="20">
</p-table>1.3 Use PrimeNG Theme System
Impact: MEDIUM (Consistent design with design tokens)
Use PrimeNG's styled mode with Aura or Lara presets. Customize via design tokens in providePrimeNG() instead of overriding CSS classes. Use dt() function for accessing tokens in custom styles.
Incorrect:
.p-button { background: #1976d2 !important; } /* Breaks theming */Correct:
providePrimeNG({
theme: { preset: Aura, options: { darkModeSelector: '.dark' } }
})---
Related skills
How it compares
Use angular-best-practices-primeng specifically for PrimeNG imports and theming; use core angular-best-practices for general Angular patterns.
FAQ
Does angular-best-practices-primeng replace angular-best-practices?
angular-best-practices-primeng complements the core angular-best-practices skill for PrimeNG-specific rules. Install both for full Angular coverage; use the PrimeNG skill only when working with primeng components, not Angular Material.
Which PrimeNG themes does the skill cover?
angular-best-practices-primeng covers the Aura and Lara theme systems with design tokens at version 1.2.0, including import patterns and component-level theming conventions for Angular apps.