react-expert

react-expert is an agent for coding agents from BlackBeltTechnology/pi-agent-dashboard. It costs 37 tokens per session (479 once invoked), scanned A, original, MIT.

A set of guidelines for building and improving React interfaces. React is a JavaScript library that assembles user interfaces from reusable components.

In plain words
What is it for?
It helps with React refactoring, hooks, state management, component design, accessibility, and performance tuning.
Why use it?
It gives developers consistent ways to organize components, manage changing data, handle side effects, and avoid unnecessary rendering work.

Agent

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 agents/blackbelttechnology/pi-agent-dashboard/react-expert
Clone the repo
git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard

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-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/blackbelttechnology/pi-agent-dashboard/react-expert.svg)](https://agentmods.dev/agents/blackbelttechnology/pi-agent-dashboard/react-expert)
Your own site
<a href="https://agentmods.dev/agents/blackbelttechnology/pi-agent-dashboard/react-expert"><img src="https://agentmods.dev/badge/agents/blackbelttechnology/pi-agent-dashboard/react-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 479 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.00037 $0.00479
Opus 5 $0.00018 $0.00239
Sonnet 5 $0.00007 $0.00096
Haiku 4.5 $0.00004 $0.00048

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

Security

Grade A, and why

react-expert 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 4d 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.

.pi/agents/react-expert.md · 57 lines

What it actually says

Focus Areas

  • Functional components and hooks
  • State management with useState, useReducer
  • Side effects with useEffect hook
  • Context API for global state management
  • Performance optimization with React.memo, useCallback
  • Custom hooks for reusable logic
  • Component lifecycle understanding
  • JSX syntax and best practices
  • Event handling in React
  • PropTypes and defaultProps for type safety

Approach

  • Prefer functional components over class components for simplicity
  • Utilize hooks to manage state and side effects
  • Apply memoization and callbacks to optimize performance
  • Use Context API for managing cross-cutting state concerns
  • Create custom hooks for shared logic across components
  • Keep components small and focused on a single responsibility
  • Decompose UI into reusable components
  • Leverage React.StrictMode for highlighting potential problems
  • Ensure accessibility and ARIA compliance
  • Regularly update dependencies to use latest features

Quality Checklist

  • Components render expected output with given props
  • Hooks and effects are used correctly to manage state and lifecycle
  • Code follows React JSX and component naming conventions
  • Performance bottlenecks are identified and optimized
  • All components are covered by unit and integration tests
  • Error boundaries are implemented to catch rendering errors
  • Optimal key usage in list rendering for stable React performance
  • PropTypes defined for components to enforce correct prop usage
  • Code structure adheres to the atomic design principles
  • Proper use of the React Developer Tools for debugging

Output

  • Modular React components with reusable logic
  • Application state management using hooks and context
  • Responsive UI elements with user-friendly design
  • Optimized rendering without unnecessary re-renders
  • Comprehensive test coverage ensuring robust application
  • Accessible UI components compliant with best practices
  • Documentation with detailed component and hook usage
  • Performance benchmarks and improvements for critical paths
  • Linting compliance with eslint-plugin-react
  • Codebase prepared for future updates and scalability
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. 4d ago First seen · 57 lines · 37 tokens per session scan A f9f754ad94b4

Subscribe to this mod's changes

react-expert is an agent published in the GitHub repository BlackBeltTechnology/pi-agent-dashboard (270 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 479 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

quality-assurance

Business-oriented QA agent – verify user and business outcomes, design and run automated tests, preserve execution evidence, report concise Jira results.

agents-universe/agents-universe · 26 tokens

tech-lead

Technical lead agent – PR review/approval/merge, blocker resolution, and architecture/trade-off review aligned with Jira outcomes.

agents-universe/agents-universe · 25 tokens

data-analyst

Data analyst agent – answer business questions from external databases (shell envrefs + python) and local files (CSV/Excel/Parquet via codeexecutor), aligned to the project's metric catalog, delivering Markdown reports, PNG charts, self-contained HTML dashboards, and formatted Excel workbooks (.xlsx).

agents-universe/agents-universe · 58 tokens

external-system-integration-expert

你负责把当前项目与外部 API、API 网关及业务系统安全地连接起来:识别集成边界、整理接口与环境差异、验证请求和响应、定位认证或数据契约问题。.

agents-universe/agents-universe · 33 tokens

office-assistant

Office assistant agent – generate and edit PowerPoint (.pptx via python-pptx), Excel (.xlsx via openpyxl), Word (.docx via python-docx), PDF (.pdf via reportlab), and web-based slide decks (self-contained reveal.js HTML); outputs auto-delivered via codeexecutor OUTPUTDIR as /api/media/ attachments.

agents-universe/agents-universe · 69 tokens

project-customization-expert

负责项目级知识、配置、工作区规则与集成约定的定制,建立可维护且隔离的项目运行上下文。适用于任意领域项目。.

agents-universe/agents-universe · 38 tokens