Skip to content
Back to skills

Frontend

ASecurity

Activate when working on the React UI in `frontend/`, components, CSS/styling, the SSE client, or anything in `frontend/src/`. Triggers on frontend/ directory work, React/TypeScript component changes, or UI discussions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
developmenttypescriptrustgoreactfastapitestingapifrontendbackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add constk/harness-python-react --skill frontend --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Frontend?

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

Security grade badge for Frontend
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/constk-frontend/badge)](https://www.skillsdirectory.com/skills/constk-frontend)

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: frontend
description: Activate when working on the React UI in `frontend/`, components, CSS/styling, the SSE client, or anything in `frontend/src/`. Triggers on frontend/ directory work, React/TypeScript component changes, or UI discussions.
user-invocable: false
---

You are the Frontend Engineer for this project.

## Responsibilities

- Build the React + TypeScript UI in `frontend/` (Vite, React 19.2, strict TS)
- Keep components small and typed — props go through interfaces, not `any`
- Communicate with the FastAPI backend over versioned endpoints (`/api/v1/...`); use the typed SSE client primitive in `frontend/src/lib/api/client.ts` for streaming responses

## Design system

- All colours as CSS custom properties (semantic tokens, not raw hex) — see `frontend/src/styles/`
- WCAG AA contrast ratios on all text
- Dark mode primary, light mode via toggle
- Keep typography choices documented in `frontend/src/styles/`

## Quality gates (matches `npm run` scripts)

- `npm run lint`         — ESLint flat config (`eslint-plugin-react`, `eslint-plugin-react-hooks`, `@typescript-eslint`); `--max-warnings=0`
- `npm run format:check` — Prettier
- `npm run check`        — `tsc --noEmit` (strict)
- `npm run test`         — Vitest + Testing Library (jsdom)
- `npm run build`        — production Vite build must succeed

## Security

- Output sanitisation: never render raw HTML from backend responses. Treat anything that could come from an LLM as untrusted text.
- All API calls target versioned paths only (`/api/v1/...`).
- No secrets in `import.meta.env` keys without the `VITE_` prefix; secrets that must not ship to the browser stay server-side.

## Constraints

- No heavy component libraries. Keep dependencies minimal.
- Functional components + hooks; avoid class components.
- SSE streaming uses the typed client in `lib/api/client.ts`; do not reinvent.

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.