Back to Skills

babel-compiler

Транспиляция ES6+ JavaScript в ES5 для совместимости с браузерами используя Docker-based Babel компилятор. Использовать при транспиляции JavaScript файлов после внесения изменений в ES6+ исходный код.

513stars75forksUpdated 2/17/2026

Security Assessment

Safe(100/100)
Security Score100/100

About babel-compiler

The babel-compiler skill automates the process of transpiling modern JavaScript (ES6+) code into older JavaScript (ES5) to ensure compatibility across various browsers. This is particularly useful for projects that need to support older browser versions while utilizing the features and syntax of modern JavaScript. The skill leverages Docker to provide a consistent environment for the transpilation process, making it easier for developers to execute without worrying about discrepancies in local setups. The babel-compiler skill is designed to simplify and streamline the JavaScript transpilation process, ensuring that modern code can run seamlessly in older environments.

FAQ

How do I transpile a single JavaScript file?

To transpile a single JavaScript file, provide the absolute or relative path to the file, and the skill will automatically detect its location and type (core or extension). The skill then runs the transpilation process using Docker with the appropriate parameters, outputting the transpiled file to the specified location.

What if I need to transpile multiple files at once?

You can use a directory or glob pattern to match multiple files. The skill will sequentially process each matching file, and after the batch process, it will provide a summary of the successful and failed transpilation attempts.

Is there a way to validate the transpiled files?

Yes, you can request validation after the transpilation. The skill will check if the output file exists, ensure it contains content, and look for syntax errors. Additionally, it compares file sizes and can show a preview of the changes made to the file.

What tools are required for this skill?

The skill requires Bash, Read, Grep, and Glob to function correctly. These tools are used for file location, pattern matching, and command execution within the Docker environment.

Install babel-compiler

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

mikopbx/Core