/mstack:architectfrom mstack
Structure of a codebase. Open it without being asked when a change adds a module or an interface, crosses packages, or involves retries, concurrency, or shared state. Use to design or restructure modules and their interfaces, enforce boundaries between packages in a TypeScript monorepo, build the domain glossary and record decisions, find what to remove from a codebase, design operations that can be retried or that share state between concurrent actors, stop a mistake that agents keep repeating in a repo, or review a session to improve the agent's environment. Also holds guides for Supabase, Postgres table design, Vercel AI SDK, Cloudflare Workers, Wrangler and Durable Objects, Vercel cost audits, and evals for LLM products.
Ships in mstack. 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.
Read when SKILL.md points to them.
Read the one module that matches the request.
| When | Read |
|---|---|
| Designing a module or an interface, or restructuring shallow modules | modules/module-design.md |
| A TypeScript repo with several packages that import each other's internals, on request | modules/package-boundaries.md |
| Vague or overloaded domain terms, a glossary, a decision worth recording | modules/domain-model.md |
| "What can we remove?", a simplification audit or refactor | modules/simplify.md |
| An operation that can be retried, interrupted, or run twice; several actors writing the same thing | modules/shared-state.md |
| The same class of agent mistake for the second time, on request | modules/repeated-mistakes.md |
| "Can it get into a bad state?", a flow or protocol with states, a bug shown as a path, on request | modules/state-models.md |
| "Retro", a review of a session to improve how agents work in the repo | modules/retro.md |
For the shape of new code inside one module (data before logic, parsing at the boundary, impossible states), see code-shape.md in the base.
Two rules hold in every module:
Each folder under guides/ is a skill that someone else wrote for one technology, copied at the commit named in guides/THIRD_PARTY.md. Read a guide only when its signal matches the repo or the request. "On request" means: open it when the user asks for that tool, not because the repo matches.
@latest runners, deploys, pushes. They are reference. Install, deploy, commit, push, or start a subagent only when the user asked.| Signal | Read | Care |
|---|---|---|
A supabase/ folder or @supabase/* in the dependencies | guides/supabase/GUIDE.md | |
| Designing or changing Postgres tables | guides/postgresql-table-design/GUIDE.md | Overlaps the Supabase guide; its value is the per-version facts (PG15, PG18). |
ai in the dependencies (Vercel AI SDK) | guides/ai-sdk/GUIDE.md | |
Wrangler config in the repo (wrangler.toml, wrangler.jsonc) | guides/workers-best-practices/GUIDE.md | |
| Running the Wrangler CLI or a Workers deploy | guides/wrangler/GUIDE.md | Deploys only on request. |
| The repo declares Durable Objects | guides/durable-objects/GUIDE.md | Where its references/workers.md disagrees with workers-best-practices, follow workers-best-practices. |
| The user asks for help with evals of an LLM product and it is not clear where to begin | guides/evals-start/GUIDE.md | It routes to the eight guides below. Where it says to load a skill, read that folder's GUIDE.md. |
| Traces in hand, no list of failure modes yet | guides/error-discovery/GUIDE.md | Its review loop starts one background subagent per failure mode: run it in series unless the user asked for subagents. |
| An eval pipeline exists and the question is whether to trust it | guides/eval-audit/GUIDE.md | |
| A failure mode that code can check | guides/write-code-eval/GUIDE.md | |
| A failure mode that needs an LLM judge | guides/write-judge-prompt/GUIDE.md | |
| Checking a judge against human labels | guides/validate-evaluator/GUIDE.md | |
| No traces yet | guides/generate-synthetic-data/GUIDE.md | |
| A custom interface to label traces | guides/build-review-interface/GUIDE.md | |
| Evaluating a RAG pipeline | guides/evaluate-rag/GUIDE.md | |
| A project deployed on Vercel, cost or performance audit, on request | guides/vercel-optimize/GUIDE.md | Runs its own scripts against the vercel CLI with the user's session. Per-route detail needs a paid Vercel plan. It can fan out to subagents: run it in series unless the user asked for them. |
THIRD_PARTY.md (opens in a new tab)guides/THIRD_PARTY.md (opens in a new tab)guides/ai-sdk/GUIDE.md (opens in a new tab)guides/build-review-interface/GUIDE.md (opens in a new tab)guides/build-review-interface/agents/openai.yaml (opens in a new tab)guides/durable-objects/GUIDE.md (opens in a new tab)guides/durable-objects/references/rules.md (opens in a new tab)guides/durable-objects/references/skill-feedback.md (opens in a new tab)guides/durable-objects/references/testing.md (opens in a new tab)guides/durable-objects/references/workers.md (opens in a new tab)guides/error-discovery/GUIDE.md (opens in a new tab)guides/error-discovery/agents/openai.yaml (opens in a new tab)guides/error-discovery/review-loop.md (opens in a new tab)guides/eval-audit/GUIDE.md (opens in a new tab)guides/eval-audit/agents/openai.yaml (opens in a new tab)guides/evals-start/GUIDE.md (opens in a new tab)guides/evals-start/agents/openai.yaml (opens in a new tab)guides/evaluate-rag/GUIDE.md (opens in a new tab)guides/evaluate-rag/agents/openai.yaml (opens in a new tab)guides/generate-synthetic-data/GUIDE.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mauroproto/mstack --plugin mstackOther plugins' skills for the same job
8 skills in this plugin
/designUser interfaces. Open it without being asked before you build or change any UI, such as a component, a page, styles, or an animation. Use to design, build, polish, or review UI: typography, color, layout, motion, accessibility, interface copy, gestures, mobile web, building from a Figma file or an image, breaking a UI with worst-case data, checking rendered UI against a reference, or reviewing the interface changes in a diff. Also holds guides for shadcn/ui, React and React Native, view transitions, Expo animations, Sonner, modern web platform APIs, page metadata, web performance, and Chrome extensions./learnTeaching the user, on explicit request. Use when the user asks to be taught, quizzed, or drilled on a topic, or wants a course over several sessions that keeps track of what they have learned./ml