write-react

write-react is a skill for Claude Code, Codex from JimmyPaolini/codebase. It costs 98 tokens per session (1,452 once invoked), scanned A, original, MIT.

Coding rules for building React 19 components, including component structure, rendering, state, and Tailwind CSS usage. React is a library for building user interfaces.

In plain words
What is it for?
Use it to create or review React components, organize their sections, render lists and conditions, manage state, and style them with Tailwind CSS.
Why use it?
It gives components a consistent shape and helps avoid project-specific mistakes when writing or reviewing React code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to create or review React components, organize their sections, render lists and conditions, manage state, and style them with Tailwind CSS.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jimmypaolini/codebase/write-react
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.

Any agent
npx skills add JimmyPaolini/codebase --skill write-react
Clone the repo
git clone --depth 1 https://github.com/JimmyPaolini/codebase

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for write-react

README.md
[![agentmods](https://agentmods.dev/badge/skills/jimmypaolini/codebase/write-react/github.svg)](https://agentmods.dev/skills/jimmypaolini/codebase/write-react)
Your own site
<a href="https://agentmods.dev/skills/jimmypaolini/codebase/write-react"><img src="https://agentmods.dev/badge/skills/jimmypaolini/codebase/write-react/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for write-react

Your own site · 80×15
<a href="https://agentmods.dev/skills/jimmypaolini/codebase/write-react"><img src="https://agentmods.dev/badge/skills/jimmypaolini/codebase/write-react.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00098 $0.01452
Opus 5.5 $0.00039 $0.00581
Sonnet 5.5 $0.00020 $0.00290
Haiku 4.5 $0.00010 $0.00145

Measured 2mo ago against content hash e64579482db4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-react 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 2mo 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.

.agents/skills/write-react/SKILL.md · 215 lines

How it starts

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

Write React

All projects use React 19 with the new JSX transform — no React import needed.

// ✅ CORRECT: No React import (React 19)
import { useState } from "react";

export const Counter = (): ReactElement => {
  const [count, setCount] = useState(0);
  return <button onClick={() => setCount(count + 1)}>{count}</button>;
};

Component Structure

Organize every component with these emoji-marked sections in order:

Section Emoji Contents
Type 🔖 Props interface, types
Component 🧩 Component declaration
Hooks 🪝 useState, useEffect, custom hooks
Setup 🏗 Computed values, memoized callbacks
Handler 💪 Event handlers
Early returns 🏁 Loading, error states
Render 🎨 JSX return
import { useState, useEffect, useCallback } from "react";
import { type ReactElement } from "react";

// 🔖 Type
export interface UserCardProps {
  userId: string;
  className?: string;
}

// 🧩 Component
export const UserCard = (props: UserCardProps): ReactElement => {
  const { userId, className } = props;

  // 🪝 Hooks
  const [user, setUser] = useState<User | null>(null);
  const [loading, setLoading] = useState(true);

  useEffect(() => {
    void fetchUser(userId).then(setUser);
  }, [userId]);

  // 🏗 Setup
  const displayName = user?.name ?? "Unknown User";
  const handleClick = useCallback(() => {
    console.log("User clicked", user);
  }, [user]);

  // 💪 Handler
  const handleRefresh = (): void => {
    setLoading(true);
    void fetchUser(userId).then(setUser).finally(() => { setLoading(false); });
  };

  // 🏁 Early returns
  if (loading) return <Spinner />;
  if (!user) return <ErrorMessage />;

  // 🎨 Render
  return (
    <Card className={className}>
      <h2>{displayName}</h2>
      <Button onClick={handleClick}>View Profile</Button>
      <Button onClick={handleRefresh}>Refresh</Button>
    </Card>
  );
};

lexico-components

Read the full file on GitHub · 215 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. 2mo ago First seen · 215 lines · 98 tokens per session scan A e64579482db4

Subscribe to this mod's changes

write-react is a skill published in the GitHub repository JimmyPaolini/codebase (0 stars, last pushed 2mo ago), licensed MIT. It adds 98 tokens to every session and 1,452 once invoked, about $0.0004 per session on Opus 5.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-09-03.

Related

write-react compared with skills from other repositories

write-react next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-reactJimmyPaolini/codebaseSkill02mo agoMITA98Claude Code, Codex
chakra-ui-builderchakra-ui/chakra-uiSkill41ktodayMITA214Claude Code, Codex
ui-checkstyleopen-metadata/OpenMetadataSkill16kyesterdayApache-2.0A122Claude Code
tamagui-v6-configtamagui/tamaguiSkill14k3d agoMITA76Claude Code, Codex
tamagui-theme-generatortamagui/tamaguiSkill14k3d agoMITA48Claude Code, Codex
frontend-ui-dark-tsmicrosoft/skillsSkill3.3k3d agoMITA48Claude Code
building-landing-homelobehub/lobe-iconsSkill2.7k7d agoMITA121Claude Code, Codex