rugo-native-module-writer

Create native Rugo modules with directory layouts and API design patterns.

24|1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/rubiojr/rugo --skill rugo-native-module-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rugo-native-module-writer
Source: https://github.com/rubiojr/rugo/tree/main/extras/claude/skills/rugo-native-module-writer
Command: npx skills add https://github.com/rubiojr/rugo --skill rugo-native-module-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers create and structure reusable native modules for the Rugo programming language, simplifying the organization and consumption of library code.

Core Features & Use Cases

  • Module Structuring: Provides guidance on organizing Rugo code into flat or nested directory layouts for libraries.
  • API Design: Demonstrates idiomatic patterns for defining module APIs using structs, hash-objects, and record patterns.
  • Dependency Management: Explains how require and with statements resolve modules and handle cross-module dependencies.
  • Use Case: You are building a complex Rugo application and need to create a shared library for database interactions. This Skill will guide you on how to structure your database code into modules, define a clean API, and manage dependencies between different parts of your library.

Quick Start

Use the rugo-native-module-writer skill to structure a new Rugo library for handling user authentication.

Frequently Asked Questions about rugo-native-module-writer

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

FAQPage Schema
How do I structure a native Rugo module for a multi-file library?

To structure a native Rugo module, organize your library code using flat or nested directory layouts and define a public entry point. This approach enforces conventions for private functions and separates internal logic from the exposed API.

What is the best way to design an API for a Rugo library?

The best way to design a Rugo library API is to use idiomatic patterns involving structs, hash-objects, and record patterns. This ensures a clean interface for consuming modular code and managing cross-module dependencies.

How do require and with statements resolve dependencies in Rugo?

Require and with statements resolve dependencies in Rugo by managing module resolution rules and handling cross-module interactions. They allow you to import and structure dependencies between different parts of your library.

How do I test native Rugo modules?

You test native Rugo modules by using rats, which is the testing framework enforced by the module conventions. This ensures your library code, including public entry points and private functions, remains reliable.

When do I need to use namespace management for Rugo modules?

You need namespace management for Rugo modules when building complex applications with shared libraries, such as database interactions or user authentication. It helps organize multi-file libraries and prevents naming collisions.