Repositories
Import your GitHub repositories; Architure detects their packages, so databases, environment variables and skills link to the code that uses them, and agents get what their package uses.
A repository is one of your GitHub repositories, imported through Architure's GitHub App. Architure detects its packages: the folders that run with their own environment, such as apps/web or packages/email in a monorepo, or the root of a repository with one app. Packages are the backbone of your architecture in Architure: you link databases, environment variables and skills to the packages that use them, Vercel projects are matched to the package they deploy, and an agent that names the folder it works in gets what its package uses.
Connecting GitHub
On Repositories, in the organization's sidebar, choose Connect GitHub. GitHub asks where to install the Architure app (your personal account or one of your GitHub organizations) and which repositories it may read: all of them, or the ones you pick. The app asks for read access to repository contents and metadata only; it never writes to GitHub. GitHub also asks you to authorize the app, so Architure can check that the installation is one you can access, then brings you back to Repositories with the import dialog open.
If the connection fails, the page shows "GitHub could not be connected" with GitHub's reason; try again.
Connect GitHub shows until a GitHub account is connected; from then on the page offers Import repositories. To let the app read more repositories, or to connect another GitHub account or organization, choose Add repositories on GitHub in the import dialog. Uninstalling the app on GitHub stops Architure from reading those repositories; the repositories you imported stay in Architure until you remove them.
Importing repositories
Import repositories lists, for each connected GitHub account (marked Personal or Organization), the repositories the app may read, with a search. Private repositories are marked Private; repositories already imported are checked, locked and marked Imported. Pick some and choose Import: at most 50 at once (the button then reads "At most 50 at once"). Architure reads each repository again from GitHub, stores it and detects its packages.
An account with no repository yet says "The app can read no repository of this account yet: add some on GitHub."
How packages are detected
Architure reads the repository's default branch:
- The workspace globs of
pnpm-workspace.yaml(itspackageslist), ofpackage.json(workspaces, as a list or as{ packages }) and oflerna.json(packages).*matches within a folder,**across folders,?one character,{a,b}either name, and a glob starting with!excludes. - A package is a folder that holds a
package.jsonand matches a glob (and no exclude), outsidenode_modules. Its name is thenameof itspackage.json(@repo/email). - A repository without workspace globs, or whose globs match no folder, is one package: its root,
..
When the detection may be incomplete, the repository shows a warning: GitHub listed only part of a very large repository, more than 200 packages matched (the first 200 are kept), no folder matched the globs, or the repository is empty. Architure keeps what it found.
Packages are detected again only when you ask: after adding or removing a package in the repository, choose Refresh on the repository's page.
The Repositories page
Each imported repository shows its owner/name (and Private when it is), its packages, its default branch and when its packages were detected. Click a repository to open its page. With no repository yet, the page reads "No repositories yet".
A repository's page
The page's title is the repository's owner/name, with Private or Public, the default branch and when the packages were detected. Open on GitHub opens the repository on GitHub.
Packages lists each package with its Name (its package.json name, or "No package.json name"; click it to open the package's page), its Folder ((root) for .) and Uses: the databases, environment variables and skills linked to that package, each a link. A database opens its canvas, a skill its page, and an environment variable the Environment variables page filtered to that package. A package with nothing linked to it reads "Only what all packages use".
Above the table, one line counts what is available to all packages, which every package uses as well: for example "Every package also uses 2 databases, 5 environment variables and 3 skills available to all packages." Viewers do not see environment variables on this page.
Refresh reads GitHub again: the repository's details, then its packages. New packages appear, packages that are gone are removed with their links, and the others keep their links. Remove (the bin icon) asks for a confirmation, then deletes the repository from Architure with its packages, their links and its install link. The repository on GitHub does not change, and you can import it again.
A package's page
A package's page shows what an agent working in its folder gets from Architure: the same answers the MCP tools give when the agent names this repository and folder. Open on GitHub opens the folder on GitHub.
- Tech stack: the organization's stack, the same for every package.
- Databases and Skills: the ones linked to the package (Linked) or available to all packages (All packages), each opening its canvas or its page.
- Environment variables: the names the package resolves, with a cell per scope saying whether its value comes from a variable linked to the package or one available to all packages; Open in Environment variables shows the same list with its values hidden. Viewers do not see this section.
- Deployments: the Vercel projects matched to the package and when each was last synced. Viewers do not see this section.
The Overview lists every package of every repository with what it uses, and links to the same page.
Linking packages
Databases, environment variables and skills are available to all packages until you choose packages for them:
- a database: Packages… in its card's menu on Databases, or Packages on its canvas;
- an environment variable: Packages in its dialog;
- a skill: Packages… in its menu.
Each opens the same picker. Turn off Available to all packages ("Every package of every repository uses it, including the ones imported later") and check the packages that use it, grouped by repository. A resource with the switch off and no package checked is used by no package. Lists show the links as badges: All packages, the packages' names, or No package.
For environment variables, a variable linked to a package wins over one available to all packages with the same name, scope by scope (see Environment variables).
Skills install link
Owners and admins see the repository's Skills install link. Create install link makes one and shows its command once: npx skills add followed by the link. Run it in the repository to install the skills its packages use (the skills linked to one of its packages, and the ones available to all packages); run it again to update them. Anyone with the link can read those skills, so keep it in the repository's scripts or in a secret, not in a public file.
The card then shows the start of the link, when it was made and when it was last used. New link replaces it (the previous link stops working) and Revoke stops it; skills already installed stay. See Skills for what the link serves.
What agents see
list_repositories lists the imported repositories as owner/name, each with whether it is private, its default branch and its packages (path and name). list_skills, list_environment_variables and list_databases take two optional inputs:
repository: the GitHub repository the agent works in, asowner/name(fromgit remote get-url origin; the case does not matter);path: the folder it works in, from the repository's root. Any folder inside a package answers for that package (apps/web/src/libanswers forapps/web); left out, the repository's root package.
They then answer for that package, and say which package it is. Without a repository, they answer for the whole organization. A repository that was not imported, or a folder that no package holds, is an error that says so. The skill tells agents to find where they work first. See MCP tools for every tool.
Who can do what
Owners, admins and members connect GitHub, import, refresh and remove repositories, and link databases, variables and skills to packages. Viewers see the repositories and their packages; the page says "Your role can read the repositories, not import or change them." Only owners and admins create and revoke install links. Like every write, it needs an active trial or subscription (see Billing and trial).