/arch:webfrom arch
The owner's frontend web selection framework — React 19 with the React Compiler, SPA-first (SSR only when explicitly required), Vite, TanStack Router, the astryx design system with StyleX for styling, jotai for cross-page client state, TanStack Query wrapped in custom hooks for request state, no test code (manual acceptance by a human or an agent), and no default deployment target. Use when starting or restructuring a web frontend ("build a web app", "新建一个前端项目") or when deciding the web stack ("前端选型", "用什么框架/路由/状态管理", "要不要 SSR").
Ships in arch. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The owner's settled judgment on frontend web development. Like every arch
skill, this is a decision framework: defaults with their reasons, so they can be
overridden for a stated cause — and deliberate absences recorded as absences, not
filled in with guesses. Follow the defaults unless a concrete reason says
otherwise, and say so when you deviate.
React 19 with the React Compiler enabled. The compiler makes manual memoization
(useMemo/useCallback/memo) the exception rather than the habit — do not
hand-memoize by default.
Default to a client-rendered SPA. SSR's performance benefit is not high, and it brings a very high maintenance cost — a server runtime, hydration boundaries, and a second execution environment for every dependency. Use SSR only when the project explicitly requires it; "it might be faster" is not a requirement.
The community default. @vitejs/plugin-react carries the React Compiler's babel
plugin, StyleX integrates with the build, and it coexists cleanly with the
pnpm + turborepo repository baseline (see arch:monorepo).
Type-safe routes and search-param state, from the same family as TanStack Query. Accepted cost: younger and less common than React Router — the type safety is worth it.
Use astryx — Meta's open-source design system: 150+ accessible React components, themable, agent-ready — as the component library, and its companion StyleX as the styling system for code you write yourself. Do not mix in a second styling system alongside StyleX.
astryx is newer than most models' training data; resolve it from the repo URL above instead of substituting a library you already know.
useXxx() hooks, never inline useQuery/useMutation with ad-hoc
keys. The hook layer is where keys, caching, and invalidation live.Server data belongs in Query's cache, not copied into atoms.
Web projects under this framework ship no test code at all: no unit tests, no component tests, no e2e suites. Acceptance is manual testing — a human or an agent actually running the app and exercising the changed behavior. This is a deliberate discipline, not an omission: agent-maintained UI code changes too fast for test suites to pay back their maintenance cost, while an agent can always verify behavior by driving the real app.
This stance governs projects built under arch:web; it does not override an existing repository's own test contract.
No default deployment target — decided per project. Recorded as a deliberate absence; when a default stabilizes in practice, it will be written here from evidence, not ahead of it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mywsq/plugins --plugin arch3 skills in this plugin
/monorepoThe owner's monorepo decision framework plus repository baseline — default to one monorepo per context (pnpm + turborepo, packages/ + apps/, changesets fixed versioning), and align the repo with the baseline: README.md for humans, AGENTS.md as the only agent instruction file (no CLAUDE.md), a wiki/ knowledge base, MIT LICENSE, a stack-matched .gitignore, oxfmt + oxlint for TypeScript, and .agents/skills as the real project-skills directory with .claude/skills symlinked to it. Use when setting up, initializing, or aligning a repository ("set up this project", "初始化项目", "按我的规范调整这个项目") or when deciding repository structure and tooling ("该不该用 monorepo", "monorepo 选型", "怎么组织这个仓库")./serverThe owner's server-side selection framework — Node by default (Bun only for measured performance needs with compatible dependencies), the RavenJS framework learned through its raven-use skill, REST APIs with a typed TS client generated from the OpenAPI contract, Postgres + Drizzle, and E2E black-box tests only, written blind against the contract with real dependencies and no mocks. Use when starting or restructuring a backend ("build an API", "新建服务端项目") or when deciding the server stack ("服务端选型", "用什么框架/数据库", "服务端测试怎么写").Other plugins' skills for the same job