Skip to content
Back to skills

Stack React

ASecurity

React rules of Shipyard: feature layout, generated IPC, TanStack Query, tokens, i18n and tests. Applies when you edit web TypeScript or TSX.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 6, 2026
developmenttypescriptreacttestingbackend

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add me-cedric/Shipyard --skill stack-react --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stack React?

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

Security grade badge for Stack React
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/me-cedric-stack-react/badge)](https://www.skillsdirectory.com/skills/me-cedric-stack-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: stack-react
description: "React rules of Shipyard: feature layout, generated IPC, TanStack Query, tokens, i18n and tests. Applies when you edit web TypeScript or TSX."
---
# React rules

## Structure
- Put each feature in `src/features/<space>/`. Share components only through `src/ui/`, in its atomic layers.
- Call the backend through the generated `src/lib/ipc/bindings.ts`. Never edit it by hand. Update the hand-written mocks `src/lib/ipc/mock*.ts` with each command change.
- Use the alias `@/` for `src/`.

## Data
- Read and write with TanStack Query over the IPC commands. Use array query keys. Invalidate the related queries after a mutation.

## UI
- Use Tailwind with the design tokens. Do not hard-code a colour.
- Put each text in the typed i18n objects of `src/lib/i18n`, with the same key in English, French, German and Spanish.
- Make each control 44 px or more. Keep the accessible name of each control.
- Allow only `http` and `https` in a user-supplied `href`.

## Tests
- Test with Vitest and Testing Library, beside the file. Use Playwright for the end-to-end flows.
- Before you finish, run `pnpm lint`, `pnpm typecheck` and the scoped `pnpm vitest run <path>`.

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 development →

Comments

Loading comments…

Newsletter

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