create-react-modlet

A guide for creating React components and hooks as self-contained modlets. React is a JavaScript interface library, and a modlet keeps a module’s code, tests, and types together.

In plain words
What is it for?
It helps create or split React components and hooks in the panel, including their TypeScript types, tests, and Storybook stories.
Why use it?
It provides a consistent way to organize new interface pieces and makes their implementation and tests easier to maintain together.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/bitovi/convey/create-react-modlet
Any agent
npx skills add bitovi/convey --skill create-react-modlet
Clone the repo
git clone --depth 1 https://github.com/bitovi/convey

Made for: Claude Code, Codex.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,084 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00050 $0.02084
Opus 5 $0.00025 $0.01042
Sonnet 5 $0.00010 $0.00417
Haiku 4.5 $0.00005 $0.00208

Measured 2d ago against content hash aa07c3bbd910, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-react-modlet scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/create-react-modlet/SKILL.md · 290 lines

How it starts

The opening of the file, as written. The whole thing — 290 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Creating React Modlets

This skill teaches how to create React components and hooks following the modlet pattern in this project.

What Is a Modlet?

A modlet is a self-contained folder that houses everything related to a specific module. Each modlet includes its implementation, tests, and types — all in one place.

When to Use This Skill

Use this skill when:

  • Creating any new React component in the panel
  • Creating a custom hook
  • Breaking down a complex component into sub-components

Storybook

This project uses Storybook for visual component development. Run it from the panel/ directory:

npm run storybook        # starts dev server at http://localhost:6006
npm run build-storybook  # static build

Story files live alongside the component inside the modlet folder.

Modlet Locations

Panel components are organized in panel/src/components/:

panel/src/components/
├── ScaleRow/            # Scale/numeric value picker
├── ColorGrid/           # Color swatch picker
├── ContainerSwitcher/   # Container mode switcher
└── YourComponent/       # New components go here

Naming Conventions

  • PascalCase for component folders and files: ScaleRow/, ColorGrid/
  • camelCase for hooks: useMyHook/
  • lowercase for grouping folders if needed: common/

Modlet Structure

Visual Modlet (React Component)

ComponentName/
├── index.ts                    # Re-export entry point (required)
├── ComponentName.tsx           # Component implementation (required)
├── ComponentName.test.tsx      # Tests (required)
├── ComponentName.stories.tsx   # Storybook stories (required)
└── types.ts                    # Custom types (optional)

Non-Visual Modlet (Hook/Utility)

useMyHook/
├── index.ts                    # Re-export entry point (required)
├── useMyHook.ts                # Implementation (required)
├── useMyHook.test.ts           # Tests (required)
└── types.ts                    # Custom types (optional)

Read the full file on GitHub · 290 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 290 lines · 50 tokens per session scan A aa07c3bbd910

Subscribe to this mod's changes

create-react-modlet is a skill published in the GitHub repository bitovi/convey (46 stars, last pushed 16d ago), licensed MIT. It adds 50 tokens to every session and 2,084 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.