/swe-guidelines:arch-scaffold-namespacefrom swe-guidelines
Creates a new object-model namespace (swimlane) with its first entity: manager interface/impl, postgres and memory storage, README, and wiring into both roots. Follows the scaffold's own namespace conventions.
Ships in swe-guidelines. 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.
A path that starts with ../ is read from this skill's folder
as realpath resolves it.
Conventions: ../_shared/scaffold-conventions.md.
Sections of ../../architecture.md: Namespaces as
Swimlanes, Interfaces (Injectability), The Business Layer
(Cross-Manager Dependencies), The Storage Layer (Namespace Shape,
Storage Root, Cross-Storage Dependencies), Documentation as Code (A
README at Every Level).
<namespace> <FirstEntity> [field:type ...] [--role core|activity|queue|admin] [--scope system|org|identity|both]
Example: inventory Warehouse address:str timezone:str. Both are
required; ask for them when missing. A namespace arrives with its first
entity, since om/tests/unit/test_interfaces.py refuses an interface
that declares no method. The entity arguments, the role, and the scope
go to arch-scaffold-entity in step 3.
The shape is the media namespace, om/src/<name>/om/media/. Under
om/src/<name>/om/<ns>/:
| File | Holds |
|---|---|
__init__.py | from .manager import <Ns>ManagerInterface |
README.md | the namespace in the product's language, one level below om/README.md: its nouns, what can happen to them, the rules that hold; no developer or operator instruction |
manager.py | <Ns>ManagerInterface, a docstring naming the swimlane |
impl/manager.py | <Ns>ManagerImpl, taking its storage interface, the OutboxRelayInterface, and every manager it calls, each by interface |
storage/__init__.py | <Ns>StorageInterface, a docstring saying every operation takes org_id first |
storage/impl/postgres.py | <Ns>StoragePostgresImpl(PgStorageBase, <Ns>StorageInterface) |
storage/impl/memory.py | <Ns>StorageMemoryImpl(MemoryStorageBase, <Ns>StorageInterface) |
types/__init__.py, impl/__init__.py, storage/impl/__init__.py, storage/tables/__init__.py | empty; the entity skill fills types/ and storage/tables/ |
In a tree whose ops skills read .agents/skills/_shared/signals/, the
namespace's signals file is created there too, <ns>.md: # Signals: <ns> and one sentence on what the namespace does, in the shape of the
scaffold's own files beside it. A skill that later gives the namespace
a kind, an outcome, a log line, or a failure event adds it there, under
the heading the folder's README.md names.
| File | Change |
|---|---|
om/src/<name>/om/storage/root.py | get_<ns_singular>_storage() on the storage root, below the marker |
om/src/<name>/om/storage/impl/postgres.py, memory.py | each root builds its impl and returns it from the getter, each below its marker |
om/src/<name>/om/root.py | below each marker: the field <ns> on Managers, the namespace's options on build_managers, the call <ns> = build_<ns>(...) in its body, <ns>=<ns> in Managers(...), and, at the end of the module, build_<ns>, which builds <Ns>ManagerImpl |
om/README.md | the namespace's nouns, each defined for a reader with no code, the first linked to the namespace's README, and in the relations the page names |
llms.txt | a line that links the namespace's README and says what it covers, as the lines of the scaffold's namespaces do, below the section's marker under System developers, and under Tenant users and admins when a tenant's users work with its nouns |
build_managers,
as media is wired. A manager this one calls is a constructor
parameter typed by its interface, and build_managers builds the
callee first.../arch-scaffold-entity/SKILL.md and
follow it with <namespace> <FirstEntity> <field:type ...> --role <role> --scope <scope>, before the gates run.As ../_shared/scaffold-conventions.md states.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub baristaze/swe_guidelines --plugin swe-guidelines22 skills in this plugin
/arch-benchmarkRun a benchmark scenario (a skill, a command, or a question) in a declared runtime and have frontier models score it against the rubric. Use to measure a change to a skill or the text./arch-benchmark-browserRun the benchmark prompt in the chatgpt.com, claude.ai, gemini.google.com, and grok.com products, signed in, and save each answer with its conversation URL as proof; in a checkout of this repository, also check the run in, redacted, with its row./arch-deviateRecord a deliberate deviation from the guideline as an ADR under docs/adr/: the rule quoted, the decision, the consequences. Use when a finding is accepted as intentional./arch-explainExplain how the guideline applies to a question, a file, or a change, citing the sections and lenses that govern it. Use when onboarding or before a cross-layer change./arch-new-aspectIncorporate a new aspect into the guideline and cascade it through the lenses, skills, docs, and README, naming the release level. Runs in a checkout of the guideline repository./arch-review-asyncArchitecture review through the Async lenses: infra, queues, workers, leases, park vs fail. For a change in this area, or as one leg of arch-review-full.Other plugins' skills for the same job