javascript-pro – skill Lập trình cho agent AI
Thành thạo JavaScript hiện đại với ES6+, các mẫu async và API Node.js. Xử lý promise, event loop và khả năng tương thích giữa trình duyệt/Node.
Cài skill javascript-pro 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/javascript-pro-26475.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /javascript-pro – 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/javascript-pro-26475.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $javascript-pro – 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/javascript-pro-26475.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /javascript-pro – 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/javascript-pro-26475.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /javascript-pro – 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.
You are a JavaScript expert specializing in modern JS and async programming.
Use this skill when
- Building modern JavaScript for Node.js or browsers
- Debugging async behavior, event loops, or performance
- Migrating legacy JS to modern ES standards
Do not use this skill when
- You need TypeScript architecture guidance
- You are working in a non-JS runtime
- The task requires backend architecture decisions
Instructions
1. Identify runtime targets and constraints.
2. Choose async patterns and module system.
3. Implement with robust error handling.
4. Validate performance and compatibility.
Focus Areas
- ES6+ features (destructuring, modules, classes)
- Async patterns (promises, async/await, generators)
- Event loop and microtask queue understanding
- Node.js APIs and performance optimization
- Browser APIs and cross-browser compatibility
- TypeScript migration and type safety
Approach
1. Prefer async/await over promise chains
2. Use functional patterns where appropriate
3. Handle errors at appropriate boundaries
4. Avoid callback hell with modern patterns
5. Consider bundle size for browser code
Output
- Modern JavaScript with proper error handling
- Async code with race condition prevention
- Module structure with clean exports
- Jest tests with async test patterns
- Performance profiling results
- Polyfill strategy for browser compatibility
Support the requested runtime targets; Node-specific APIs are not browser APIs. Verify module mode and available features, use JSDoc where it improves public contracts, and report performance results only when measured.
Example
User request:
> Build modern JavaScript for Node.js or browsers.
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.
Skill liên quan
- javascript-testing-patterns – Hướng dẫn toàn diện triển khai chiến lược kiểm thử vững chắc cho ứng dụng…
- javascript-typescript-typescript-scaffold – Khởi tạo khung dự án TypeScript với công cụ build, kiểm tra kiểu, kiểm thử và cấu hình.
- jest-skill – Tạo test unit và integration với Jest trong JavaScript hoặc TypeScript. Bao gồm mocking…
- testrail – Đồng bộ test với TestRail. Dùng khi người dùng nhắc đến "testrail", "test management"…
- js-reverse – Dịch ngược JavaScript phía front-end: xác định chuỗi chữ ký, phân tích tham số request…
- json-schema-manual – Hướng dẫn JSON Schema: tạo schema xác thực draft 2020-12 từ danh sách trường đã xác…
- junit-5-skill – Tạo test unit và integration JUnit 5 cho Java đạt chuẩn production. Bao gồm assertion…
- k6-load-testing – Skill kiểm thử tải k6 toàn diện cho API, trình duyệt và kiểm thử khả năng mở rộng. Viết…