modern-javascript-patterns
하는 일
이 안내서는 최신 버전의 JavaScript(ES6 이상)를 사용해 더 깔끔하고 빠르며 이해하기 쉬운 코드를 쓰는 방법을 설명합니다. 'async/await'와 '구조 분해 할당' 같은 기능을 다룹니다.
사용하는 경우
- ✓오래된 JavaScript 코드가 있고 이를 업데이트하고 싶을 때.
- ✓더 체계적이고 읽기 쉬운 코드를 쓰고 싶을 때.
- ✓인터넷에서 데이터를 가져오는 것처럼 시간이 오래 걸리는 작업을 처리해야 할 때.
스킬 링크
https://github.com/wshobson/agents/blob/main/plugins/javascript-typescript/skills/modern-javascript-patterns/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 오래된 JavaScript 코드를 최신 기능을 쓰도록 어떻게 업데이트할 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 안내서의 모범 사례와 예시를 사용해 코드를 다시 쓰는 방법을 보여줍니다. 새로운 JavaScript 기능을 써서 코드를 더 효율적이고 읽기 쉽게 만드는 데 중점을 둡니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Modern JavaScript Patterns
Comprehensive guide for mastering modern JavaScript (ES6+) features, functional programming patterns, and best practices for writing clean, maintainable, and performant code.
When to Use This Skill
- Refactoring legacy JavaScript to modern syntax
- Implementing functional programming patterns
- Optimizing JavaScript performance
- Writing maintainable and readable code
- Working with asynchronous operations
- Building modern web applications
- Migrating from callbacks to Promises/async-await
- Implementing data transformation pipelines
Detailed patterns and worked examples
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Best Practices
- Use const by default: Only use let when reassignment is needed
- Prefer arrow functions: Especially for callbacks
- Use template literals: Instead of string concatenation
- Destructure objects and arrays: For cleaner code
- Use async/await: Instead of Promise chains
- Avoid mutating data: Use spread operator and array methods
- Use optional chaining: Prevent "Cannot read property of undefined"
- Use nullish coalescing: For default values
- Prefer array methods: Over traditional loops
- Use modules: For better code organization
- Write pure functions: Easier to test and reason about
- Use meaningful variable names: Self-documenting code
- Keep functions small: Single responsibility principle
- Handle errors properly: Use try/catch with async/await
- Use strict mode:
'use strict'for better error catching
For common pitfalls (this binding, promise anti-patterns, memory leaks), see references/advanced-patterns.md.
자주 묻는 질문
'ES6+'란 무엇인가요?
JavaScript 언어의 최신 버전들입니다. 프로그래머의 작업을 쉽게 만드는 많은 개선과 새 기능을 담고 있습니다.
'async/await'란 무엇인가요?
인터넷에서 정보를 내려받는 것처럼 시간이 걸리는 작업을, 프로그램의 나머지가 멈추지 않도록 처리하는 더 간단한 방법입니다.
'코드 리팩터링'은 무슨 뜻인가요?
동작은 바꾸지 않고 기존 코드를 더 좋게 다시 쓰는 것입니다. 가구를 옮기지 않고 집을 정리하는 것과 비슷합니다.
상세 정보
작성자의 원본 설명
Master ES6+ features including async/await, destructuring, spread operators, arrow functions, promises, modules, iterators, generators, and functional programming patterns for writing clean, efficient JavaScript code. Use when refactoring legacy code, implementing modern patterns, or optimizing JavaScript applications.
repo: wshobson/agents
인기도
- GitHub 스타
- 41k
- 순위
- #6713
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
screen-reader-testing
41k에이전트가 스크린 리더로 웹사이트를 테스트해 접근성을 확인하도록 돕습니다.
wcag-audit-patterns
41k에이전트가 WCAG 지침에 따라 웹사이트의 접근성을 감사하고 문제를 고치도록 돕습니다.
multi-reviewer-patterns
41k에이전트가 병렬 코드 리뷰를 조율하고, 중복된 발견 사항을 정리하며, 보고서를 통합하도록 돕습니다.
parallel-debugging
41k에이전트가 병렬 조사와 근본 원인 분석으로 복잡한 문제를 디버그하도록 돕습니다.