modern-javascript-patterns – skill Lập trình cho agent AI
Hướng dẫn toàn diện về JavaScript hiện đại (ES6+), các mẫu lập trình hàm và thực hành tốt nhất để viết code sạch, dễ bảo trì và hiệu năng cao.
Cài skill modern-javascript-patterns bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/modern-javascript-patterns-37b21.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /modern-javascript-patterns – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/modern-javascript-patterns-37b21.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $modern-javascript-patterns – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/modern-javascript-patterns-37b21.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /modern-javascript-patterns – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/modern-javascript-patterns-37b21.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /modern-javascript-patterns – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Modern JavaScript Patterns
Comprehensive guide for mastering modern JavaScript (ES6+) features, functional programming patterns, and best practices for writing clean, maintainable, and performant code.
Use this skill when
- 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
Do not use this skill when
- The task is unrelated to modern javascript patterns
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Example boundaries
Code blocks are independent illustrations and can redeclare names; they are not one runnable application. The class example deliberately rejects password operations: private fields and string prefixes are not credential hashing. The highlighting helper escapes interpolated values for HTML text only; keep literal templates trusted and do not reuse it for attributes, URLs or scripts. Fetch resolves on HTTP errors: check response.ok, validate response data, and apply explicit deadlines and cancellation; the retry helper only retries network failures. Pagination needs a page/record cap and repeat-page detection. JSON cloning/memoization loses or rejects non-JSON values and cycles; memoized keys also need bounded storage and receiver/purity rules. A timeout race does not abort network work; propagate an AbortSignal when supported.
Skill liên quan
- monorepo-architect – Chuyên gia kiến trúc monorepo, hệ thống build và quản lý phụ thuộc ở quy mô lớn. Thành…
- monorepo-management – Xây dựng monorepo hiệu quả, dễ mở rộng, cho phép chia sẻ code, công cụ nhất quán và thay…
- monte-carlo-push-ingestion – Rà soát và điều chỉnh các mẫu thu thập metadata kho dữ liệu, lineage và log truy vấn cho…
- moodle-external-api-development – Hướng dẫn tạo API web service bên ngoài tùy chỉnh cho Moodle LMS, theo framework…
- movie-coupon – Lấy mã giảm giá vé xem phim từ các nền tảng như Taopiaopiao và Maoyan. Trả về liên kết…
- muapi-media – Tạo ảnh và video bằng API media bất đồng bộ theo schema của MuAPI, đồng thời bảo vệ key…
- multi-platform-apps-multi-platform – Xây dựng và triển khai cùng một tính năng nhất quán trên web, mobile và desktop, dùng…
- multiplayer – Nguyên tắc phát triển game nhiều người chơi. Kiến trúc, mạng và đồng bộ hóa.