Skip to content
Back to skills

React

ASecurity

React component development guide. Use when working with React components (.tsx files), creating UI, using @lobehub/ui components, implementing routing, or building frontend features. Triggers on React component creation, modification, layout implementation, or navigation tasks.

  • 121 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 16, 2026
ai-agentsreactnextjsnodefrontend

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned October 16, 2026

npx -y skills add alexanderizh/spark-agent --skill react --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for React
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexanderizh-react/badge)](https://www.skillsdirectory.com/skills/alexanderizh-react)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: react
description: React component development guide. Use when working with React components (.tsx files), creating UI, using @lobehub/ui components, implementing routing, or building frontend features. Triggers on React component creation, modification, layout implementation, or navigation tasks.
---

# React Component Writing Guide

- Use antd-style for complex styles; simple cases use inline `style`.
- Use `Flexbox` and `Center` from `@lobehub/ui` for layouts (see references/layout-kit.md).
- Component priority: `src/components` > installed packages > `@lobehub/ui` > antd.
- Use selectors to access zustand store data.

## @lobehub/ui

Search existing code for usage. Common: ActionIcon, Block, Button, Icon; Avatar, Collapse, Empty, Highlighter, Markdown, Tag, Tooltip; CodeEditor, CopyButton, EditableText, Form, FormModal, Input, SearchBar, Select; Alert, Drawer, Modal; Center, DraggablePanel, Flexbox, Grid, Header, MaskShadow; Burger, Dropdown, Menu, SideNav, Tabs. Reference: node_modules/@lobehub/ui/es/index.mjs.

## Routing

Hybrid: Next.js App Router (auth: login, signup, oauth) in `src/app/[variants]/(auth)/`; React Router DOM (main SPA) in desktopRouter.config.tsx.

- Entry: src/app/[variants]/page.tsx. Desktop: desktopRouter.config.tsx. Mobile: (mobile)/router/mobileRouter.config.tsx. Utils: src/utils/router.tsx.
- Use `dynamicElement`, `redirectElement`, `ErrorBoundary` from @/utils/router.
- **Navigation:** For SPA use `Link` and `useNavigate` from `react-router-dom`, NOT `next/link`. From stores: useGlobalStore.getState().navigate?.(path).

Files in this skill

  • SKILL.md1.5 KB
  • manifest.json95 B
  • references/layout-kit.md732 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.