Skip to content
Back to skills

React Development

ASecurity

React conventions for components, hooks, prop types, styling and React Testing Library tests. Use when creating or changing React components or hooks, or writing their tests.

  • 80 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 28, 2026
ai-agentsreacttestingapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 5, 2026

npx -y skills add monkilabs/opencastle --skill react-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React Development?

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

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

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-development
description: "React conventions for components, hooks, prop types, styling and React Testing Library tests. Use when creating or changing React components or hooks, or writing their tests."
---

# React Development Standards

## Conventions

- One component per file: `ComponentName.tsx` inside its feature folder, co-located with its styles and `ComponentName.test.tsx`.
- Export the props type as `ComponentNameProps`; PascalCase component names.
- Styling: follow the project's approach (CSS Modules, Tailwind, …), its shared tokens, and CSS custom properties for theming.
- `strict` stays enabled in `tsconfig.json`; no `as` casts.
- Tests: React Testing Library on the runner bound to the **testing** capability slot, mocking external deps and API calls.

## Verification

Lint, typecheck, test, and build must all exit zero. Resolve the exact commands
via the **codebase-tool** slot; `.opencastle/project.instructions.md` records the
project's package manager and script names.

## Security

Sanitize user-supplied HTML (e.g. `dompurify`) before rendering. Client-side validation is never sufficient on its own — see **api-patterns** for server validation.

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.

Comments

Loading comments…