Skip to content
Back to skills

Web Architecture

ASecurity

Use when adding or changing a page, API call, feature flag or UI component in the Back office (apps/back-office). Covers structure, the API layer, auth, flags and the design system.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 18, 2026
ai-agentstypescriptgoreactnodeapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 18, 2026

npx -y skills add erumkatzwan/agentic-product-starter --skill web-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Architecture?

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

Security grade badge for Web Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/erumkatzwan-web-architecture/badge)](https://www.skillsdirectory.com/skills/erumkatzwan-web-architecture)

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: web-architecture
description: Use when adding or changing a page, API call, feature flag or UI component in the Back office (apps/back-office). Covers structure, the API layer, auth, flags and the design system.
---

# Web architecture

React 19 + TypeScript (strict) + Vite + React Router.

## Where code goes

| Folder | Holds | Rules |
|---|---|---|
| `src/api/client.ts` | `request()` and `ApiError` | The only file that calls `fetch` |
| `src/api/endpoints.ts` | Every backend call, typed | Add new endpoints here; mirror the backend contracts |
| `src/auth/` | Session context and token storage | Pages use `useAuth()`, never storage directly |
| `src/features/<name>/` | One folder per page | Pages get `api` as a prop so tests can pass a fake |
| `src/ui/ui.tsx` | Button, TextField, Card, Alert, Page | Reuse before creating new components |
| `src/styles/` | `tokens.css` (generated) + `global.css` | Only `var(--…)` tokens; never hard-coded colours or sizes |

## Rules

- Change colours, spacing or type in `design/tokens.json`, then run `node design/build.mjs`. Never edit `tokens.css`.
- Show backend validation errors next to their field (`ApiError.fieldErrors`), other errors in an `Alert`.
- Every form has labels; every button has text; pages work with the keyboard.
- Feature flag keys match the backend and the iOS app.

## Checklist: new page

1. Endpoint in `src/api/endpoints.ts` (and in `test/fakeApi.ts`).
2. Page in `src/features/<name>/`, using `ui` components.
3. Route in `App.tsx`, behind a flag if unfinished.
4. Unit tests for the page's behaviour; an end-to-end test for the user journey.

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.