build-nitro-modules
CommunityBuild and ship React Native Nitro modules
System Documentation
What problem does it solve?
Building cross-platform React Native native modules with Nitrogen involves many manual, error-prone steps: scaffolding a monorepo package, authoring .nitro.ts HybridObject specs, configuring nitro.json autolinking, running the Nitrogen codegen, implementing platform-specific native code (Swift/Kotlin/C++), wiring an example app, and preparing the package for npm publishing. This Skill codifies the full end-to-end workflow, guidance, and common fixes so maintainers can produce reliable, autolinkable Nitro modules without guessing path and configuration details.
Core Features & Use Cases
- Monorepo scaffolding & workspace wiring: Step-by-step guidance to scaffold a package into packages/<name>, add example app, and set root workspaces.
- Spec authoring & codegen: Instructions for writing .nitro.ts HybridObject specs, configuring nitro.json autolinking, and running npx nitrogen to generate native specs.
- Native implementation patterns: Platform-specific implementation best practices and pitfalls for C++, Kotlin, and Swift, plus how to register and include files in build systems.
- Example app & troubleshooting: How to create and wire an example app, fix Metro and Android Gradle paths, align versions, and run the example for validation.
- Publishing readiness: Checklist for package.json files, inclusion of generated native glue code, podspecs, and npm pack verification.
Quick Start
Scaffold a new Nitro module in a monorepo, write the .nitro.ts spec, run Nitrogen to generate native specs, implement the native methods for your chosen platforms, wire an example app, and prepare package metadata for npm publishing.
Dependency Matrix
Required Modules
None requiredComponents
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: build-nitro-modules Download link: https://github.com/riteshshukla04/agent-skills/archive/main.zip#build-nitro-modules Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.