claude-session-dashboard: Skill for Claude Code

.claude/skills/react-rules/SKILL.md

react-rules is a skill for Claude Code from dlupiak/claude-session-dashboard. It costs 8 tokens per session (463 once invoked), scanned A, original, MIT.

A set of rules for building React interfaces and components. React is a JavaScript library for creating user interfaces from reusable components.

In plain words
What is it for?
Use it when developing React applications with TanStack Query, TanStack Router, Tailwind, and shadcn/ui.
Why use it?
It gives a project consistent conventions for components, data fetching, state, forms, errors, and file names.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is dlupiak/claude-session-dashboard's own configuration. It tells Claude Code how to work on claude-session-dashboard itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-session-dashboard configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dlupiak/claude-session-dashboard. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dlupiak/claude-session-dashboard/main/.claude/skills/react-rules/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dlupiak/claude-session-dashboard

Made for: Claude Code.

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 react-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/dlupiak/claude-session-dashboard/react-rules/github.svg)](https://agentmods.dev/skills/dlupiak/claude-session-dashboard/react-rules)
Your own site
<a href="https://agentmods.dev/skills/dlupiak/claude-session-dashboard/react-rules"><img src="https://agentmods.dev/badge/skills/dlupiak/claude-session-dashboard/react-rules/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 react-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/dlupiak/claude-session-dashboard/react-rules"><img src="https://agentmods.dev/badge/skills/dlupiak/claude-session-dashboard/react-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 463 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00008 $0.00463
Opus 5.5 $0.00003 $0.00185
Sonnet 5.5 $0.00002 $0.00093
Haiku 4.5 $0.00001 $0.00046

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

Security

Grade A, and why

react-rules 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 1mo 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.

.claude/skills/react-rules/SKILL.md · 44 lines

What it actually says

React Rules

Components

  • Use named exports, not default exports: export function AgentCard() {}
  • One component per file for route-level components
  • Co-locate small helper components in the same file
  • Use className with Tailwind — no CSS modules or styled-components

Data Fetching

  • Use TanStack Query (useQuery, useSuspenseQuery) for all data fetching
  • Server Functions for mutations via useMutation
  • Never use useEffect for data fetching
  • Prefetch on the server with queryClient.prefetchQuery in route loaders

State

  • URL state first (search params via TanStack Router)
  • Server state via TanStack Query (no Redux, no Zustand)
  • Local UI state only with useState — keep it minimal
  • Form state with controlled components or useForm

Patterns

  • Suspense boundaries at route level, not per-component
  • Error boundaries for slice-level error handling
  • Compose with props, not render props or HOCs
  • Use shadcn/ui components — don't build custom UI primitives

File Naming

  • Route files: route.tsx (TanStack Router file-based routing)
  • UI components: PascalCase.tsx or grouped in ui.tsx within a slice
  • Hooks: use-kebab-case.ts (must start with use prefix — enforced by architecture tests)

Slice Boundaries (enforced by automated tests)

  • Never import a component from another feature's ui/ directory directly
  • Shared UI primitives go in src/components/ui/ (shadcn convention)
  • Cross-slice data: import hooks/types from the other slice's model.ts facade, not from internal files
  • Route files must be thin — compose from slice hooks and components, don't import from domain/ or infra/ directly
  • Example: import { useAgents } from '@/features/registry/model' (correct) vs import { useAgents } from '@/features/registry/hooks/useAgents' (wrong from outside registry)
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. 1mo ago First seen · 44 lines · 8 tokens per session scan A 6390b5b4721e

Subscribe to this mod's changes

react-rules is a skill published in the GitHub repository dlupiak/claude-session-dashboard (76 stars, last pushed 3d ago), licensed MIT. It adds 8 tokens to every session and 463 once invoked, about $0.0000 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-01.

Related

Other skills, from other repositories

generic-react-ux-designer

Professional UI/UX design expertise for React applications. Covers design thinking, user psychology (Hick's/Fitts's/Jakob's Law), visual hierarchy, interaction patterns, accessibility, performance-driven design, and design critique. Use when designing features, improving UX, solving user problems, or conducting design…

travisjneuman/.claude · 69 tokens

generic-react-feature-developer

Guide feature development for React applications with architecture focus. Covers Zustand/Redux patterns, IndexedDB usage, component systems, lazy loading strategies, and seamless integration. Use when adding new features, refactoring existing code, or planning major changes.

travisjneuman/.claude · 53 tokens

generic-react-design-system

Complete design system reference for React applications. Covers colors, typography, spacing, component patterns, glassmorphism effects, GPU-accelerated animations, and WCAG AA accessibility. Use when implementing UI, choosing colors, applying spacing, creating components, or ensuring brand consistency.

travisjneuman/.claude · 59 tokens

generic-react-code-reviewer

Review React/TypeScript code for bugs, security vulnerabilities, performance issues, accessibility gaps, and CLAUDE.md workflow compliance. Enforces TypeScript strict mode, GPU-accelerated animations, WCAG AA accessibility, bundle size limits, and surgical simplicity. Use when completing features, before commits, or…

travisjneuman/.claude · 71 tokens

nextjs-expert

Comprehensive Next.js expertise across App Router, server/client boundaries, data and caching patterns, and production operations. Use when building, debugging, or optimizing a Next.js app, deciding server vs client components, or resolving App Router gotchas.

frankxai/claude-skills-library · 53 tokens

react-ops

React development patterns, hooks, state management, Server Components, and performance optimization. Use for: react, hooks, useState, useEffect, jsx, tsx, server components, RSC, zustand, react query, component patterns, react testing library, error boundary, suspense, react 19.

0xDarkMatter/claude-mods · 66 tokens