Đi tới nội dung chính
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn và đang được hiển thị bằng tiếng Anh.

JavaScript Best Practices

Skill Đã xác minh
95

JavaScript performance optimization guidelines. Use when writing, reviewing, or refactoring JavaScript/TypeScript code to ensure optimal performance patterns. Triggers on tasks involving loops, data structures, DOM manipulation, or general JS optimization.

Tóm tắt từ AI

This skill offers detailed rules and code examples for improving JavaScript and TypeScript performance, covering areas like loop optimization, data structures, DOM manipulation, and caching. It includes practical advice for writing more efficient and maintainable code.

Versioning

  • warning:Release ManagementNo version information (manifest version, GitHub releases, CHANGELOG) is present in the repository, and installation instructions reference 'HEAD'.

Cài đặt

npx skills add sergiodxa/agent-skills

Chạy Vercel skills CLI (skills.sh) qua npx — yêu cầu Node.js trên máy và ít nhất một agent tương thích skills đã được cài (Claude Code, Cursor, Codex, …). Giả định repo tuân theo định dạng agentskills.io.

3 months ago
83 stars
MIT
Cập nhật about 22 hours ago
Xem mã nguồn

Tiện ích tương tự

Async Best Practices

95

Async/await and Promise optimization guidelines. Use when writing, reviewing, or refactoring asynchronous code to eliminate waterfalls and maximize parallelism. Triggers on tasks involving data fetching, loaders, actions, or Promise handling.

Skill
sergiodxa

ESLint Plugin React Hooks

99

ESLint rules for React Hooks

Skill
facebook

React PWA

98

Extension from jwynia/agent-skills

Skill
jwynia

React Router Best Practices

98

React Router performance and architecture patterns. Use when writing loaders, actions, forms, routes, or working with React Router data fetching. Triggers on tasks involving React Router routes, data loading, form handling, or route organization.

Skill
sergiodxa

Node.js Best Practices

95

Provides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, testing, performance, caching, logging, and more. Use when setting up Node.js projects with native TypeScript support, configuring type stripping (--experimental-strip-types), writing Node 22+ TypeScript without a build step, or when the user mentions 'native TypeScript in Node', 'strip types', 'Node 22 TypeScript', '.ts files without compilation', 'ts-node alternative', or needs guidance on error handling, graceful shutdown, flaky tests, profiling, or environment configuration in Node.js. Helps configure tsconfig.json for type stripping, set up package.json scripts, handle module resolution and import extensions, and apply robust patterns across the full Node.js stack.

Skill
mcollina

Audit Speed

95

Deep Core Web Vitals and page speed audit. Use when the user asks about page speed, Core Web Vitals, LCP, CLS, INP, FCP, TTFB, Lighthouse scores, why a page is slow, performance optimization, or resource size analysis. For broader technical SEO issues, see diagnose-seo.

Skill
calm-north