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 repeati...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Architect?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mauroproto-architect)
---
name: architect
description: 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, review a session to improve the agent's environment, or structure the calls an app makes to an LLM provider. Also holds guides for backend contracts (auth, errors, webhooks, queues), locks and migrations in PostgreSQL and MySQL, data pipelines, infrastructure-as-code changes, Supabase, Postgres table design, Vercel AI SDK, Cloudflare Workers, Wrangler and Durable Objects, Vercel cost audits, and evals for LLM products.
---
# architect
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` |
| Code that calls an LLM provider: the client, retries, structured output, prompts, streams | `modules/llm-calls.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:
- Deleting a reachable capability, a supported interface, a stored format, or a compatibility path is a product decision. Describe the consequence and ask.
- Install a dependency, commit, or edit the repo's agent instructions only when the user asked for that.
## Guides for one technology
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.
- A guide is a copy with a date. Before you rely on a claim about a version, check the version the repo has installed.
- A guide shows the commands of its tool: installs, `@latest` runners, deploys, pushes. They are reference. Install, deploy, commit, push, or start a subagent only when the user asked.
| Signal | Read | Care |
|---|---|---|
| Designing or changing an endpoint, a handler, or a service contract; receiving a webhook; consuming a queue; a connection pool | `guides/backend/GUIDE.md` | |
| A slow query, an index, the lock a statement takes, an online migration on a large table, N+1 queries | `guides/relational-db/GUIDE.md` | |
| An ETL, ELT, or streaming job: a rerun, a backfill, a schema change, late data | `guides/data-pipelines/GUIDE.md` | |
| A Terraform, OpenTofu, Pulumi, CloudFormation, Helm, or Kubernetes manifest change | `guides/iac-change/GUIDE.md` | An apply runs only with the user's go-ahead. |
| 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. |
Files in this skill
SKILL.md4.8 KB
THIRD_PARTY.md3.4 KB
guides/THIRD_PARTY.md4.2 KB
guides/ai-sdk/GUIDE.md5.7 KB
guides/build-review-interface/GUIDE.md5.3 KB
guides/build-review-interface/agents/openai.yaml255 B