janpereira-dev/ngautopilot/list-rendering-optimization
Claude Code and agent skill by janpereira-dev/ngautopilot
- community
Checking that the SKILL.md file is still in the repository.
Optimizes Angular list rendering by using stable identity tracking with trackBy for legacy templates or @for track for modern Angular.
Install
npx vskill@latest install janpereira-dev/ngautopilot/list-rendering-optimizationSKILL.md
The same SKILL.md was published earlier as janpereira-dev/ngautopilot/list-rendering-optimization.
Angular List Rendering Optimization
Purpose
Use this skill to avoid unnecessary DOM recreation in Angular lists by choosing the correct identity tracking pattern for the detected Angular version.
Compatibility
Use the compatible variant:
- Angular 2-16: use
*ngForwithtrackBy. - Angular 17-19: prefer
@for (...; track item.id)for new code, while keeping*ngFor + trackByas a valid fallback. - Angular 20+: avoid introducing new
NgForusage; prefer@forfor new code.
When to Use
Use this skill when:
- A table, grid, select, search result, feed, or list renders many items.
- The list is refreshed from an API or state store.
- Rows are inserted, deleted, filtered, sorted, or paginated.
- Focus, expanded rows, animations, or child component state are lost after refresh.
- The user reports visible re-rendering or scroll lag.
Do
For Angular 2-16 or legacy templates, use trackBy:
For Angular 17+ new templates, use @for with track:
For very large lists, evaluate virtual scrolling after identity tracking is correct.
Do Not
Avoid missing identity tracking:
Avoid unstable keys:
Avoid index tracking for lists that reorder, filter, insert, or delete in the middle.
Review Checklist
- [ ] The Angular version is checked before choosing
*ngForor@for. - [ ] The list has stable identity tracking.
- [ ] The key is unique within the rendered collection.
- [ ] Index tracking is limited to static lists.
- [ ] The template does not transform the list on every render.
- [ ] Virtual scroll is considered only for genuinely large rendered lists.
- [ ] Backend pagination is considered when frontend rendering is not the only bottleneck.
Expected Output
- Detect whether the project uses legacy or modern Angular templates.
- Add
trackByor@for trackusing a stable identifier. - Avoid changing list behavior beyond identity tracking.
- Mention virtual scroll only when list size justifies it.
- Explain fallback or migration path for older Angular versions.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/angular/performance/list-rendering-optimization/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 1
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/janpereira-dev/ngautopilot/list-rendering-optimization)