/arch:monorepofrom arch
The 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 选型", "怎么组织这个仓库").
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 repository structure, in two parts: a decision framework — how to choose, with the reasons, so defaults can be overridden for cause — and a repository baseline — how to land the choice. Defaults here are defaults with reasons, not inviolable rules: follow them unless a concrete reason says otherwise, and say so when you deviate.
Projects that share one context belong in one repository. The deciding cost is agent maintenance: an agent maintaining related projects in a single repo needs no context switching between checkouts, and cross-project changes stay one commit. So the default is: put it in the monorepo.
No exception has been encountered yet. When one appears, record it here — do not invent exception lists ahead of the evidence.
The clearest mental model of the available options, with no feature gaps in practice. No alternative has proven better in real use. Do not swap the toolchain without a concrete failure of this one.
packages/ and apps/packages/ — dependable packages: libraries and tools that other workspace
members or external consumers import. Whether a package is published or
internal-only is a package.json private field decision, not a directory
decision.apps/ — applications: web apps, mobile apps, and other deployable end
products.No third top-level workspace directory. The two-way split keeps the semantics
obvious: packages/ is depended on, apps/ depends.
Every package in the repository shares one version number, released with changesets in fixed mode. One repo, one version — nobody reconstructs which combination of package versions belongs together.
The baseline is deliberately small: documents with a strict audience split, one knowledge base, and a minimal quality floor. Projects are maintained by agents; humans use them and make decisions. Every artifact exists for exactly one of those two audiences.
README.md — for humans. What the project is, why it exists, and how to use it. Written for the person who uses the project and makes decisions about it — not a contributor guide, and never a duplicate of agent-facing conventions.
AGENTS.md — for agents. Exactly the knowledge an agent needs to maintain
the project that cannot be recovered by reading the code: conventions,
constraints, and decisions with their reasons. Never restate what the code
already shows. It is the only agent instruction file: Claude Code reads
AGENTS.md natively, so there is no CLAUDE.md, not even as a pointer.
wiki/ — the project knowledge base. All project-level knowledge — specs,
plans, research, decisions — sediments under wiki/. Initialize it with only a
wiki/README.md index describing this convention; subdirectories appear on
demand. Implementation plans live under wiki/plans/.
Project skills — one source, two entries. .agents/skills/ is the real
directory for project-local agent skills; .claude/skills is a symlink to it.
The neutral location is the source; the vendor location is only an entry
point.
LICENSE. MIT by default. An existing license stays.
.gitignore. Generated for the project's actual stack, not a kitchen-sink template.
Format and lint. TypeScript projects use oxfmt and oxlint with minimal
configuration and fmt/lint package scripts. Consult the tools' current
documentation instead of writing config from memory. Other stacks get the
community-standard minimal equivalent.
git init if there is no repository yet.packages/ and
apps/, changesets in fixed mode.plans/ directory moves into wiki/plans/, with references updated;README.md move to AGENTS.md;CLAUDE.md folds into the AGENTS.md beside it and is deleted — a bare
pointer or symlink to AGENTS.md simply goes;AGENTS.md that merely restates the code is deleted;.claude/skills/ as real files move to .agents/skills/,
with the symlink left in their place.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mywsq/plugins --plugin arch3 skills in this plugin
/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 ("服务端选型", "用什么框架/数据库", "服务端测试怎么写")./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").Other plugins' skills for the same job