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.
npx agentmods add skills/dlupiak/claude-session-dashboard/react-rulesnpx skills add dlupiak/claude-session-dashboard --skill react-rulesgit clone --depth 1 https://github.com/dlupiak/claude-session-dashboardWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00008 | $0.00463 |
| Opus 5 | $0.00004 | $0.00231 |
| Sonnet 5 | $0.00002 | $0.00093 |
| Haiku 4.5 | $0.00001 | $0.00046 |
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 yesterday.
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.
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
classNamewith 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
useEffectfor data fetching - Prefetch on the server with
queryClient.prefetchQueryin 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.tsxor grouped inui.tsxwithin a slice - Hooks:
use-kebab-case.ts(must start withuseprefix — 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.tsfacade, not from internal files - Route files must be thin — compose from slice hooks and components, don't import from
domain/orinfra/directly - Example:
import { useAgents } from '@/features/registry/model'(correct) vsimport { useAgents } from '@/features/registry/hooks/useAgents'(wrong from outside registry)
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.
- yesterday First seen · 44 lines · 8 tokens per session scan A 6390b5b4721e
react-rules is a skill published in the GitHub repository dlupiak/claude-session-dashboard (66 stars, last pushed 2d ago), licensed MIT. It adds 8 tokens to every session and 463 once invoked, about $0.0000 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-09-01.
Other skills, from other repositories
react-artifact
Author app-like designs in React/JSX and bundle them in-sandbox into the same single self-contained HTML artifact Design Studio delivers. Use when the design needs real state, complex interactivity, or component reuse beyond what vanilla JS comfortably handles.
nerv-ui
Build original, accessible React command-center interfaces with the published @mdrbx/nerv-ui component library. Use for dashboards, monitoring terminals, operational tools, authentication screens, or sharp industrial HUD-style UI in React, Vite, or Next.js.
react-frontend
React architecture patterns, TypeScript, Next.js, hooks, and testing. Use when working with React component structure, state management, Next.js routing, Vitest, React Testing Library, or reviewing React code. For visual design and aesthetic direction, use frontend-design instead.
react-frontend
React, TypeScript, and Next.js patterns for frontend development. Use when building React components, managing state, fetching data, optimizing performance, or working with Next.js App Router. Covers React 18-19, hooks, Server Components, and type-safe patterns.
testing-react
Writes React/TypeScript tests using Vitest and React Testing Library. Use when "write react tests", "vitest", "component test", "hook test", "RTL", "testing library", "snapshot test", or testing React components, hooks, and utilities.
create-react-modlet
Create React components or hooks following the modlet pattern in this project. Use when creating any new component or hook in panel/src/components/. Modlets are self-contained folders with index.ts, implementation, tests, and optional types.