Skill
The architure skill teaches your agent how to work with your architecture in Architure; install it in Claude Code, Claude.ai, Cursor, Codex and other agents.
The MCP server gives your agent access to your organization's architecture. The architure skill gives it the method: a short set of instructions the agent loads when its task touches what Architure holds. It lives in the public repository architure/skills, in the folder architure, next to the plugin that bundles it with the MCP server for Claude Code.
This page is about that one skill. Your team's own skills, which agents read through Architure, are on the Skills page.
When it triggers
The agent loads the skill:
- before choosing a library, framework or service;
- when you work on a database schema, its tables, columns, enums, relationships or migrations in an application connected to Architure;
- when you ask it to read, extend, document or check that schema.
Its description also names the 15 MCP tools, so the agent reaches for it when it sees them.
What it tells the agent
Architure is the source of truth for the stack and the schema: read the stack before choosing a library, read the schema before writing code against the database, and make schema changes in Architure rather than inventing names, types or enums in code. Then, in order:
- Find where you work. Read the repository's GitHub remote (
git remote get-url origin, which givesowner/name) and the folder it works in, from the repository's root (apps/web). Pass them asrepositoryandpathtolist_skills,list_environment_variablesandlist_databases, which then answer for the package that holds that folder (see Repositories).list_repositorieslists the imported repositories and their packages; when the repository is not there, leaverepositoryout to get the whole organization. - Read the tech stack. Call
list_tech_stackbefore choosing a library, framework or service. Prefer what it lists, at its version, and read the docs it links to before relying on memory. When nothing fits, say which technology it would add and why (see Tech stack). - Follow the team's skills. Call
list_skillswith the repository and folder, and read the ones that fit the task withget_skill. When you want one installed in the repository, write its files under.agents/skills/<name>/(see Skills). - Read the environment variable names. Call
list_environment_variableswith the repository and folder before writing code that reads configuration, and use those names (process.env.STRIPE_SECRET_KEY), never invented ones. Architure never gives values: ask you for one when needed, and never write a value into a committed file (see Environment variables). - Find the database. Call
list_databaseswith the repository and folder (the databases the package uses) and pick the one you work on, asking when several fit. - Read before you write. Call
get_databasefor the whole schema in the text format and its revision. Useget_tablefor one table with its descriptions,search_columnsto see how the organization already names and types a kind of column, andlist_column_definitionsfor the shared enums and types. - Write through the tools, with the revision it read as
baseRevision:create_tablefor a new table with its columns, foreign keys and single-column indexes;update_columnfor one column;set_descriptionfor a description in Markdown;apply_operationsfor everything else, afterget_databasewithincludeIds. Each write answers with the new revision, used for the next write. - Check and fix. Call
check_databaseafter writing. Fix every error (missing primary key, foreign key type mismatch, duplicate name, reserved word) and the warnings (foreign key without an index, column definition type unknown to the dialect) unless you decided otherwise, then check again. - Describe what it created. Every new table and column gets a short, factual description in Markdown: what it holds, its unit or format, who writes it, the rules around it.
Along the way, it follows these rules:
- Information types. Every column gets one of the seven information types, chosen by why the column exists: a foreign key is
relationships,positionissettings, a soft-delete timestamp isaudit. A column linked to a column definition takes the definition's type. - Column definitions. Before creating a column with an enum or a shared type, it looks for an existing column definition and links the column to it instead of repeating the values. When none fits, it tells you which one to create: definitions are created in the app.
- Conventions. It follows the database's naming, gives every table a primary key, types and indexes foreign keys like the column they reference, writes types as the dialect writes them in DDL, and prefers the narrowest tool.
- Addressing. It names objects as
schema.tableandschema.table.column(tableandtable.columnwhen the table name is unique), and sends the id when a name matches several objects.
When a write is refused
The skill tells the agent what each refusal means and what to do:
| Refusal | Meaning | What the agent does |
|---|---|---|
Conflict | Someone changed the database since its baseRevision; the answer lists those changes | Calls get_database again, redoes its change on the current schema, retries with the new revision |
ValidationError | An operation does not apply; the message names it (operations.<index>) and why (not_found, already_exists, invalid_reference, invalid_row, invalid_operation) | Fixes the input and retries |
PlanRequired | The organization's trial is over or its subscription is not active | Tells you that an owner or admin restores writing from the billing settings; reading and check_database still work. Does not retry |
Forbidden | The connection can only read: a read API key, a token without schema:write, or a viewer | Tells you. Does not retry |
NotFound | The id is not in this organization | Calls list_databases again |
The full list of errors is on MCP tools.
Install
Claude Code
The plugin installs the skill and the MCP server, which signs in with OAuth:
claude plugin marketplace add architure/skills
claude plugin install architure@architureThen run /mcp in Claude Code, choose architure and sign in. If you connect with an API key instead, install the skill alone with the command below, so that the plugin does not add a second connection. See Connect your agent.
Cursor, Codex and other agents
The skills command line installs the skill into the agents it finds on your machine:
npx skills add architure/skillsThen connect the MCP server: see Connect your agent.
Claude.ai
- Download the
architure/skillsrepository and make a ZIP file of itsarchiturefolder, so the ZIP's root is that folder. - Open Customize, then Skills, add a skill and upload the ZIP.
- Turn the skill on. Skills need code execution to be enabled.
The skill's SKILL.md keeps to the keys Claude.ai accepts in an uploaded skill: name, description and license.
Updating
- Claude Code:
claude plugin marketplace update architure, or turn on auto-update for the marketplace in/plugin. - Other agents: run
npx skills add architure/skillsagain. - Claude.ai: upload the new ZIP.
The skill is plain text you can read before installing: SKILL.md in the architure folder of the repository.
Skills
Keep your team's skills in Architure, from skills.sh or written by your team, link them to the packages that use them, and install them in each repository with one command.
MCP tools
Every tool of the Architure MCP server, what it reads or writes, its inputs, what it answers and the permission it needs; then authentication, limits, errors and how objects are named.