rescript-pro

Enforce ReScript type-safety, exhaustive pattern matching, and JS interop standards.

11|5|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/rbergman/dark-matter-marketplace --skill rescript-pro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rescript-pro
Source: https://github.com/rbergman/dark-matter-marketplace/tree/main/plugins/language-pro/skills/rescript-pro
Command: npx skills add https://github.com/rbergman/dark-matter-marketplace --skill rescript-pro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves inconsistent ReScript code quality by offering expert, policy-driven guidance.

Core Features & Use Cases

  • Guided Onboarding: Establishes a consistent ReScript project structure, tooling, and templates for new repositories.
  • Code Quality Enforcement: Promotes exhaustive pattern matching, explicit types, and safe JavaScript interop practices across codebases.
  • API Design & Review: Provides standards for module boundaries, dependency injection, and clean abstractions to improve maintainability.
  • Use Case: When starting a new ReScript project or conducting code reviews, apply the skill to align with best practices and reduce runtime errors.

Quick Start

Create a new ReScript project using the recommended configs, then set up the local tooling with the justfile templates and references provided in this skill. Initialize the project with mise/node for consistent runtimes, copy over references/rescript-template.json and references/gitignore, and verify with just check.

Frequently Asked Questions about rescript-pro

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

FAQPage Schema
How do I enforce consistent ReScript coding standards across a new project?

Set up a ReScript project by initializing with mise/node for consistent runtimes, copying reference templates like rescript-template.json and gitignore, and configuring local tooling with justfile templates. Verify the setup by running just check.

What is the best way to structure safe JavaScript interop in ReScript?

The best way to structure safe JavaScript interop in ReScript is by defining explicit JS interop bindings. Enforcing these safe practices during API design and code reviews prevents runtime errors and maintains strict type-safety across module boundaries.

Can I use this ReScript guidance for React interop and dependency injection?

Yes, you can use this guidance for React interop and dependency injection. It provides standards for clean abstractions, module boundaries, and safe JavaScript interop practices to improve overall maintainability during code reviews.

How does exhaustive pattern matching improve ReScript type safety?

Exhaustive pattern matching improves ReScript type safety by forcing the compiler to handle all possible cases at build time. Promoting explicit types and exhaustive checks through automated QA reduces unhandled runtime scenarios.