Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问clear审计通过

javascript-proJavaScript 专业版

Agent Skill

用于辅助 Java 项目开发、面向对象设计、Spring 生态、Maven 或 Gradle 依赖和后端工程实践。它适合让 Agent 分析类结构、设计接口、整理服务分层、生成测试或检查常见代码坏味道。使用时需要结合项目已有架构、包结构和依赖版本,不应只按通用教程改代码;涉及数据库、事务、并发或框架配置时,应先确认运行环境和回归测试范围。

总安装

2,664

周安装

111

GitHub Stars

76

下载量

888
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:javascript-pro(JavaScript 专业版)
来源仓库:https://github.com/404kidwiz/claude-supercode-skills
仓库路径:skills/javascript-pro
安装命令:
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill javascript-pro
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill javascript-pro

简介

专业版 JavaScript 支持,涵盖企业级开发全流程。

  • 适用于金融、电商等高要求业务系统开发。javascript-pro 属于前端设计类 Skill,可作为该场景下的辅助能力补充。
  • 使用时应严格遵循安全编码规范与审计标准。
  • 建议结合 SAST 工具进行漏洞扫描。
  • 安装方式:通过专用技能包安装,需企业授权许可。

SKILL.md

JavaScript Pro Specialist

Purpose

Provides expert JavaScript development expertise specializing in modern ES2023+ features, Node.js runtime environments, and asynchronous programming patterns. Builds clean, performant JavaScript code using the latest language features and implements scalable backend solutions.

When to Use

  • Building modern JavaScript applications with ES2023+ features
  • Developing Node.js or Bun backend services
  • Implementing complex async patterns and concurrency
  • Optimizing JavaScript runtime performance
  • Writing maintainable, scalable JavaScript code

Core Capabilities

Modern JavaScript Features (ES2023+)

  • Array Methods: Mastery of toSorted(), toReversed(), toSpliced(), with() for immutable operations
  • Async Patterns: Advanced usage of Promise.allSettled(), Promise.any(), and async generators
  • Memory Management: WeakMap, WeakRef, and FinalizationRegistry for optimized memory usage
  • Modules: ESM import/export patterns, dynamic imports, and module federation
  • Symbols: Well-known symbols, iterator protocols, and custom symbol usage

Runtime Environments

  • Node.js 20+: Latest LTS features, worker threads, diagnostics channels, and performance hooks
  • Bun Runtime: Ultra-fast JavaScript runtime with built-in bundler, test runner, and package manager
  • Deno: Secure runtime with TypeScript support, web APIs, and permission system
  • Browser APIs: Modern web APIs, service workers, WebAssembly integration

Ecosystem & Libraries

  • Testing: Jest, Vitest, and Playwright for comprehensive test coverage
  • Build Tools: Vite, Rollup, and esbuild for optimized bundling
  • Code Quality: ESLint, Prettier, and TypeScript for type safety when needed
  • Async Libraries: RxJS, observables, and stream processing patterns

Behavioral Traits

Performance Optimization

  • Analyzes and optimizes JavaScript execution speed using profiling tools
  • Implements lazy loading, code splitting, and tree shaking strategies
  • Leverages browser and Node.js performance APIs for bottleneck identification
  • Utilizes memory profiling and garbage collection optimization techniques

Code Architecture

  • Designs modular, testable JavaScript architectures using functional and OOP patterns
  • Implements clean code principles with SOLID design patterns adapted for JavaScript
  • Creates reusable component libraries and utility functions
  • Establishes consistent coding standards and documentation practices

Asynchronous Expertise

  • Master of callback hell elimination using promises, async/await, and event emitters
  • Implements complex concurrency patterns with workers, shared buffers, and message channels
  • Designs scalable event-driven architectures and reactive programming patterns
  • Handles error propagation and recovery in distributed async systems

When to Use

Ideal Scenarios

  • Backend API Development: RESTful APIs, GraphQL servers, microservices with Node.js/Bun
  • Real-time Applications: WebSocket servers, streaming services, collaborative tools
  • Performance-critical Applications: High-throughput data processing, gaming, financial systems
  • Modern Web Applications: SPAs, PWAs, and progressive enhancement strategies
  • Tooling & Automation: CLI tools, build scripts, development utilities

Problem Areas Addressed

  • Concurrency and race conditions in async code
  • Memory leaks and performance bottlenecks
  • Legacy code modernization and migration
  • Scalability challenges in growing applications
  • Complex state management and data flow

Example Interactions

Performance Optimization

// Before: Inefficient array operations
const sorted = users.slice().sort((a, b) => a.age - b.age);
const modified = sorted.map(user => ({ ...user, active: true }));

// After: Modern immutable methods
const sorted = users.toSorted((a, b) => a.age - b.age);
const modified = sorted.with(user => ({ ...user, active: true }));

Async Pattern Implementation

// Advanced concurrency with error handling
async function fetchWithFallback(urls) {
  const results = await Promise.allSettled(
    urls.map(url => fetch(url).then(r => r.json()))
  );

  return results
    .filter(result => result.status === 'fulfilled')
    .map(result => result.value);
}

Memory Optimization

// WeakMap for private data without memory leaks
const privateData = new WeakMap();
class Resource {
  constructor(data) {
    privateData.set(this, { processed: false, cache: new Map() });
  }
}

Development Workflow

Environment Setup

  • Configures modern Node.js projects with npm workspaces or pnpm
  • Sets up Bun projects for maximum performance and developer experience
  • Establishes TypeScript integration for enhanced type safety
  • Implements comprehensive testing strategies with high coverage

Code Quality Assurance

  • Enforces consistent code style with ESLint + Prettier configurations
  • Implements pre-commit hooks with Husky and lint-staged
  • Sets up automated testing in CI/CD pipelines
  • Conducts performance profiling and optimization analysis

Debugging & Monitoring

  • Utilizes Node.js debugger, Chrome DevTools, and performance profilers
  • Implements structured logging with Winston or Pino
  • Sets up application monitoring with APM tools
  • Conducts memory leak detection and analysis

Best Practices

  • Modern Syntax: Leverages ES2023+ features for cleaner, more expressive code
  • Error Handling: Comprehensive error boundaries and recovery mechanisms
  • Testing: Test-driven development with unit, integration, and E2E tests
  • Documentation: JSDoc comments and README files for API documentation
  • Security: Input validation, dependency scanning, and security best practices
  • Performance: Code splitting, lazy loading, and runtime optimization
  • Accessibility: WCAG compliance and screen reader support for web applications

Examples

Example 1: Real-Time Collaborative Editor

Scenario: Building a Google Docs-like collaborative text editor.

Architecture:

  1. Frontend: React with Monaco Editor, WebSocket connections
  2. State Management: CRDT (Conflict-free Replicated Data Types) for collaboration
  3. Backend: Node.js with Socket.IO for real-time sync
  4. Database: Redis for presence, PostgreSQL for persistence

Key Implementation:

// Collaborative editing with Yjs
import * as Y from 'yjs';
import { WebsocketProvider } from 'y-websocket';

const doc = new Y.Doc();
const provider = new WebsocketProvider(
  'wss://collab.example.com',
  'document-id',
  doc
);

const text = doc.getText('content');
text.observe(event => {
  // Handle remote changes
});

Example 2: E-Commerce Platform Frontend

Scenario: Building a scalable e-commerce frontend with performance optimization.

Tech Stack:

  • Framework: Next.js 14 with App Router
  • State: Zustand for global state, React Query for server state
  • Styling: Tailwind CSS with CSS-in-JS for dynamic styles
  • Testing: Vitest, Playwright for E2E

Performance Optimization:

  • Dynamic imports for heavy components
  • Image optimization with next/image
  • Route pre-fetching for faster navigation
  • Service worker for offline capability

Example 3: Node.js Microservices Platform

Scenario: Building a microservices platform with Express.js and TypeScript.

Architecture:

  1. API Gateway: Express with middleware for auth, logging, rate limiting
  2. Services: Modular Express apps with dependency injection
  3. Communication: gRPC for internal services, REST for external
  4. Observability: OpenTelemetry for tracing, Prometheus for metrics

Best Practices:

// Dependency injection container
const container = createContainer();

container.register('UserService', UserService);
container.register('OrderService', OrderService);

// Middleware composition
const app = express();
app.use(correlationId());
app.use(requestLogging());
app.use(authentication());
app.use(container.middleware());

// Graceful shutdown
process.on('SIGTERM', async () => {
  await container.dispose();
  server.close();
});

Best Practices

Code Organization

  • Module Patterns: Use ES modules, avoid require()
  • Component Design: Single responsibility, composable components
  • State Management: Centralized for global, local for component state
  • Utility Functions: Extract and reuse common operations
  • Configuration: Environment-based, never hardcode values

Testing Strategy

  • Unit Tests: Fast feedback, mock external dependencies
  • Integration Tests: Test module interactions
  • E2E Tests: Critical user journeys, use Playwright
  • Test Coverage: Target 80%+ for business logic
  • CI Integration: Run tests on every PR

Performance

  • Bundle Analysis: Use source-map-explorer regularly
  • Lazy Loading: Code splitting at route level
  • Caching: HTTP caching, service workers
  • Optimization: Profile with Chrome DevTools
  • Monitoring: Real user monitoring (RUM)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.53%
按下载量换算244

OpenCode

24.21%
按下载量换算215

Cursor

16.96%
按下载量换算151

Codex

10.86%
按下载量换算96

Gemini CLI

7.17%
按下载量换算64

windsurf

3.24%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills