/arch:serverfrom arch
The 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 ("服务端选型", "用什么框架/数据库", "服务端测试怎么写").
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 server-side 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.
Default to Node (RavenJS requires >= 20). Choose Bun only when both hold:
Use RavenJS — the owner's AI-native web
framework on a Hono engine: contract-first with serializable contracts, Standard
Schema validation, ambient state DI, plugin lifecycle, and built-in OpenAPI
export. It ships as the npm package @raven.js/core (with hono as a peer
dependency), runs on Node, Bun, or Deno, and deliberately does not target
edge/Cloudflare Workers.
RavenJS is newer than most models' training data — resolve it from the repo URL above; do not substitute Express, Fastify, or raw Hono because they are more familiar.
Learn it from its own skill, not from here — and installing that skill into
the project is mandatory, not optional. Every project that uses RavenJS MUST
have the self-contained raven-use skill installed in its project skills
directory, so that any agent working in the repo learns the framework from the
skill instead of guessing from training data:
npx skills add myWsq/RavenJS
Treat a RavenJS project without raven-use in its skills directory as
misconfigured — install it before writing framework code. Keep the installed
skill in the project's skills layout from arch:monorepo (.agents/skills/ as
the real directory, .claude/skills symlinked to it).
This document records the selection; raven-use owns the teaching. Do not
duplicate its content into project docs.
REST by default; adjust per project needs. The RavenJS contract is the single source of truth, exported as OpenAPI.
Contract path to the frontend: generate a typed TS client from the OpenAPI
export (openapi-ts / openapi-fetch family), and wrap it in the TanStack Query
custom hooks that arch:web prescribes — types flow end to end, and contract
drift surfaces as type errors instead of runtime surprises. Do not hand-write the
fetch layer.
The default pair. Deviate only for a stated, project-specific reason.
Server projects carry no unit tests. The only test tier is end-to-end black-box:
This differs from arch:web (no test code at all) by design: an API's contract
is stable and machine-checkable in a way UI behavior is not.
Recorded as absences — decided per project, written here only when practice settles a default:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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 选型", "怎么组织这个仓库")./webThe 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").