add-builtin-module

Guide adding built-in JavaScript modules to mikrojs with source setup and build integration.

11|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/mikrojs/mikrojs --skill add-builtin-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-builtin-module
Source: https://github.com/mikrojs/mikrojs/tree/main/.agents/skills/add-builtin-module
Command: npx skills add https://github.com/mikrojs/mikrojs --skill add-builtin-module

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of integrating new built-in JavaScript modules into mikrojs, enabling developers to extend runtime capabilities efficiently.

Core Features & Use Cases

  • Module creation: Guide to setting up TypeScript sources, native C modules, and bytecode generation.
  • Integration: Assists in updating CMakeLists.txt and header files for seamless loading.
  • Use Case: A developer wants to add a new mikrojs/xyz module; this Skill provides step-by-step instructions from source creation to final verification.

Quick Start

Use the add-builtin-module skill to learn how to create and register a new mikrojs JavaScript module in your firmware project.

Frequently Asked Questions about add-builtin-module

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a custom JavaScript module to mikrojs firmware?

To add a custom JavaScript module to mikrojs, you need to set up TypeScript sources or native C modules, generate the required bytecode, and update your CMakeLists.txt and header files for seamless loading. This ensures reliable integration within firmware builds.

What is the process for integrating native C modules into mikrojs?

Integrating native C modules into mikrojs involves setting up the C source files, updating the build configuration in CMakeLists.txt, and modifying header files. This allows the firmware to properly load and execute the newly added native module.

Do I need to update CMakeLists.txt when creating a new mikrojs built-in module?

Yes, updating CMakeLists.txt is required when creating a new mikrojs built-in module. The build integration step ensures the build system recognizes and compiles the new TypeScript sources or native C modules for the firmware.

Can I use TypeScript sources to build JavaScript modules in mikrojs?

Yes, you can use TypeScript sources to build JavaScript modules in mikrojs. The module creation process guides you through setting up the TypeScript files and generating the necessary bytecode for deployment within the firmware.

What safety checks are needed when extending mikrojs with new built-in modules?

Extending mikrojs with new built-in modules requires safety checks to ensure reliable integration and deployment within firmware builds. These checks verify that the source setup, build integration, and bytecode generation are correctly configured.