build-nitro-modules

Scaffold Nitro Modules and generate native code from TypeScript specs.

2|Updated Jun 5, 2024
One-click install
npx skills add https://github.com/Marshanda14816/agent-skills --skill build-nitro-modules-marshanda14816
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-nitro-modules
Source: https://github.com/Marshanda14816/agent-skills/tree/main/skills/build-nitro-modules
Command: npx skills add https://github.com/Marshanda14816/agent-skills --skill build-nitro-modules-marshanda14816

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of creating end-to-end Nitro Modules for React Native, including monorepo scaffolding, HybridObject TypeScript specs, native boilerplate in C++/Swift/Kotlin, example app wiring, and npm-publish preparation.

Core Features & Use Cases

  • Monorepo scaffold for Nitro Modules with Nitrogen
  • HybridObject TypeScript spec generation and export
  • Platform native codegen and implementation for C++, Swift, and Kotlin
  • Example app wiring and publish preparation
  • Guardrails to avoid editing generated glue code and to re-run nitrogen when specs change

Quick Start

Scaffold the library with Nitrogen, write the .nitro.ts spec, configure nitro.json, and run nitrogen from the package root to generate and verify the native glue code.

Frequently Asked Questions about build-nitro-modules

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

FAQPage Schema
How do I scaffold a React Native Nitro Module end-to-end?

To scaffold a Nitro Module, generate the monorepo library, write a .nitro.ts spec, configure nitro.json, and run nitrogen from the package root to generate native glue code. This automates TypeScript specs and platform boilerplate creation.

What is a HybridObject spec in React Native Nitro Modules?

A HybridObject spec is a TypeScript definition file (.nitro.ts) used to declare the interface for a Nitro Module. It serves as the source for nitrogen to generate C++, Swift, and Kotlin platform boilerplate automatically.

Can I generate C++, Swift, and Kotlin boilerplate for React Native modules?

Yes, you can generate C++, Swift, and Kotlin boilerplate by writing a .nitro.ts spec and running nitrogen. This code generation produces the platform-specific native code required to implement the HybridObject.

Do I need to manually edit generated Nitro Module glue code?

No, you should not manually edit generated glue code. Guardrails are in place to prevent editing; instead, modify the .nitro.ts spec and re-run nitrogen from the package root to regenerate the native glue code safely.

How do I prepare a React Native Nitro Module library for npm publish?

To prepare a Nitro Module library for npm publish, scaffold the monorepo using Nitrogen, wire the example app, and complete the publish preparation steps generated alongside the TypeScript specs and native boilerplate.