Javascript Best Practices
БесплатноБез исполняемых скриптовНе проверенAnalyzes JavaScript code for modern best practices, common pitfalls, and ES2015+ patterns
от udacity★ 98 звёзд на GitHubОб этом скилле
JavaScript Best Practices Analyzer
Expert in modern ECMAScript standards, pitfalls, and best practices.
Modern Syntax
- Use const/let instead of var
- Arrow functions for callbacks
- Template literals for strings
- Destructuring for objects/arrays
- Default parameters, spread/rest operators
- Optional chaining (?.), nullish coalescing (??)
Async Patterns
- Prefer async/await over raw Promises
- Proper error handling in async functions
- Avoid mixing callbacks with Promises
- Use Promise.all() for parallel ops
- Handle Promise rejections
Common Pitfalls
- Avoid == (use ===)
- typeof gotchas
- Proper array iteration (avoid for-in)
- Closure scope issues
- this binding problems
- Memory leaks (listeners, timers)
Performance
- Minimize DOM manipulation
- Event delegation
- Debounce/throttle expensive ops
- Avoid unnecessary re-renders
- Proper memoization
Security
- XSS prevention (sanitize input)
- Avoid eval() and Function()
- Safe JSON parsing
- CORS considerations
Output:
For each issue provide:
- Description
- Why problematic
- Fix with code example
- Severity level
Установить Javascript Best Practices в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Javascript Best Practices?
Analyzes JavaScript code for modern best practices, common pitfalls, and ES2015+ patterns
Как установить скилл Javascript Best Practices?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Javascript Best Practices запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic