To name architecture files well, separate the thing being described from how you're describing it: put the system or domain area first, the architecture concern second, and the artifact type plus version last, in a predictable order joined by hyphens. For a single project, something like payments-container-view-v2.md or orders-system-context.drawio does the job, because anyone can sort a folder of such names, guess a missing file's name, and tell from the filename alone what diagram or document they're about to open. The one condition that makes or breaks the scheme is consistency: a perfect pattern applied unevenly is worse than a plain pattern applied everywhere.

This is a naming problem with two populations of files. Architecture work produces documents (decision records, overviews, quality-attribute write-ups) and diagrams (context, container, component, deployment, sequence, data models), and those diagrams exist in two worlds at once: as human-facing artifacts and as code-adjacent assets in repositories, wikis, and generated-documentation pipelines. A convention has to survive both. The guidance below is written for the November 2026 state of common tooling, but the principles are deliberately tool-neutral so they don't break when your diagram editor changes.

Decide what the name must encode before you write any rules

Most naming conventions fail because they try to encode everything. A filename has to be short enough to type and read in a tab, but specific enough to disambiguate. That tension resolves once you decide which attributes genuinely matter for retrieval in your context.

There are five candidates, and you rarely need all of them:

Subject: the system, service, product area, or domain bounded context. This is almost always mandatory. Concern or view type: what aspect of architecture the file addresses, such as context, container, component, deployment, data, sequence, or a decision. Artifact kind: document, diagram source, exported image, or generated output. Version or status: draft, proposed, accepted, superseded, or a numeric revision. Date: the point in time the content describes or was produced.

Subject and concern earn their place in nearly every scheme. Artifact kind is useful when the same view exists as both an editable source and an export, because telling drawio from png in the name prevents someone editing the wrong file. Version and date are where schemes bloat. If your version control already records history, embedding dates in filenames creates duplicates and confusion; if your wiki has no history, a date may be your only anchor.

Write your decisions down as a one-paragraph rule with an example, not a 40-row table. A rule people remember beats a rule people have to look up.

The core pattern and the order of its parts

The order matters more than the separator. Put the slowest-changing, broadest-scope element first and the most volatile element last. That gives you natural alphabetical grouping: all files about the payments domain cluster together, and within that cluster all container views sit adjacent.

A workable general form is:

----v.

Filled in, that might be payments-container-checkout-v3.drawio, orders-system-context.md, or inventory-deployment-prod-v2.png. Read left to right, the name answers "what part of the world, what aspect, what specific slice, what sort of file, which revision."

A few ordering rules make this robust:

1: Separate words with hyphens and never with spaces or underscores mixed in. Spaces break command-line work and URLs; a single separator keeps names scriptable. Pick hyphens, not underscores, and apply it everywhere. 2: Use lowercase throughout. Case-sensitive filesystems and case-insensitive ones disagree, and mixed case invites Payments and payments to coexist on one machine and collide on another. 3: Keep the extension meaningful. .md for prose, the native editor extension for diagram sources, .svg or .png for exports. Never rename an export to hide its provenance. 4: Put the version or status immediately before the extension so sorting groups revisions of the same artifact. 5: Avoid encoding hierarchy in the filename. Folders already express hierarchy. payments/container-checkout.drawio is cleaner than a single flat payments-container-checkout string repeated for every file, though a prefix is still useful when files travel out of their folder.

One practical caution: if your repository or documentation generator derives page titles or anchors from filenames, the convention has to double as readable prose. Hyphenated lowercase names generally render acceptably as titles; cryptic abbreviations do not.

Choose a controlled vocabulary for concerns and views

The subject half of a name is open-ended, since every organization has its own domains. The concern half should be closed. This is the single biggest lever for consistency, and it's where a lightweight glossary pays off.

Anchor the vocabulary in a model people already share. The C4 model, popularized by Simon Brown, gives a widely understood ladder of context, container, component, and code, plus dynamic and deployment views. You don't have to adopt C4 wholesale, but borrowing its terms means new team members already know what a "container view" is. For decision records, the architecture decision record (ADR) format gives you a natural token: adr. For data, data-model or erd reads clearly. For interactions, sequence is unambiguous.

Then write the allowed list down, with a one-line definition each:

context: the system in its environment, actors, and neighboring systems. container: the deployable units and how they communicate. component: internals of one container. deployment: infrastructure and node mapping. data-model: entities, relationships, storage. sequence: ordered interactions for one scenario. adr: a single decision record with a number. overview: prose architecture summary with no single view. quality: quality attributes and scenarios.

Resist adding a new concern token for every diagram. If two tokens mean roughly the same thing, such as flow and sequence, pick one and retire the other. Ambiguity in the vocabulary shows up as near-duplicate filenames that no one can tell apart in a list.

Encode the subject without inventing a second taxonomy

The subject is where teams overreach. Someone proposes prefixing every file with the business unit, then the program, then the team. Three years later the names are unreadable and half of them are wrong because the org chart changed.

Keep the subject to the smallest stable identifier that people actually say out loud. For a service, that's usually the service name. For a bounded context, the context name. For a platform-wide artifact, a short platform token. If your organization already has canonical identifiers for systems, such as a service catalog key, use it, because it will outlive team reorganizations.

Two pitfalls deserve care. First, avoid embedding ownership in the subject; ownership changes and filenames don't. Second, avoid generic subjects like system or app for anything that isn't genuinely the whole system, because they collide across projects and tell a reader nothing. If the whole platform truly is the subject, platform is fine, but only once.

Where subject names are long, abbreviate by a documented rule rather than ad hoc. customer-onboarding becoming cust-onb is fine if the mapping is written down; the same abbreviation invented differently by two people is not.

Sequence numbers, versions, and dates: pick one story

Three separate mechanisms fight for the tail of the filename: a sequence number for ordering, a version for revision, and a date for time. Using all three produces names like payments-context-2026-03-14-v3-final-final. Choose based on what your storage actually gives you.

If you use a version control system or a wiki with page history, the history carries revision and time. You don't need a version suffix at all. The filename stays stable and links to it keep working, which is a real benefit: a link to payments-container.drawio still points at the current view after ten revisions. This is the simplest story and the one most teams should adopt.

If files are exchanged as exports, attachments, or deliverables, a version suffix or date is the only durable marker. In that case prefer ISO order, 2026-11-13, because it sorts correctly as text, and put it where it groups naturally with related files. A date answers "as of when," which is often the actual question a reader has about an architecture diagram.

If you need both, use the date as the version and skip numeric revisions entirely. payments-deployment-prod-2026-11-13.png is unambiguous and sortable. Mixing a date and a v number invites a reader to guess which one is newer without checking content.

For decision records specifically, a zero-padded sequence number is conventional and useful, because ADRs are numbered in the order accepted: adr-0007-event-sourcing-for-orders.md. The number is a stable identity, not a revision.

Paired source and export files must be distinguishable

Architecture diagrams are frequently stored twice: once as an editable source for the diagramming tool and once as an exported image embedded in documentation. This is exactly where sloppy naming causes real errors, because someone opens the PNG, finds it uneditable, and either gives up or edits a screenshot.

Keep the stem identical and let the extension carry the difference: payments-container.drawio and payments-container.svg. Same subject, same concern, same detail, different artifact. For generated output, add a clear marker rather than relying on the extension alone, for example a gen- prefix or an output directory. The point is that nobody should ever wonder whether a file is safe to hand-edit.

If your diagrams are generated from text-based descriptions, a common and durable approach, the source-of-truth file deserves the plain name and the rendered output deserves a marker. That way the convention itself signals which file to change.

Keep decision records and diagram sources in one discoverable scheme

A subtle failure mode is treating document types as separate naming universes. ADRs get numbers, diagrams get descriptive names, overviews get dates, and the result is a folder that can't be browsed.

Unify at the level that matters: the subject prefix and the separator. Within payments/, you can have payments-overview.md, payments-container.drawio, payments-container.svg, and adr-0007-event-sourcing.md. The ADR's numbering is its own scheme and that's acceptable, because ADRs are a well-understood genre with a conventional identity. Everything else shares a skeleton.

Numbering ADRs globally rather than per subject is common and usually preferable, because a decision can span subjects. A per-subject scheme produces duplicate numbers and confusion about which 0007 is which.

Worked naming pass for a small system

To make this concrete, imagine a retail platform with three services: catalog, orders, and payments. You're producing a documentation set in November 2026, stored in a repository with Git history and rendered into a static site.

The files might be:

platform-system-context.drawio and platform-system-context.svg, the top-level context view. catalog-container.drawio, the container view for the catalog service. orders-component.drawio, the component view inside orders. payments-sequence-checkout.md, a sequence description for the checkout scenario, stored as text because it's generated from a diagram-as-code description. platform-deployment-prod-2026-11-13.png, a dated deployment export for the production environment. adr-0012-queue-between-orders-and-payments.md, the decision to decouple the two services with a queue.

Read the list and notice what you can infer without opening anything: which files are sources versus exports, which service each view belongs to, which concern each addresses, and that the deployment export is a snapshot while the rest are living documents. That inference is the entire payoff of the convention.

Now stress-test it. Where does a new reader guess the file for the payments data model? They'd try payments-data-model.drawio, and if it's been named consistently, it exists. That predictability is the practical test: a colleague should be able to construct the name of a file they've never seen, and find it.

Automate the check rather than trusting memory

A written convention drifts. The fix is a small, reversible validation step in the pipeline that runs on pull requests or a scheduled job.

The prerequisite is a settled rule set with the allowed concern tokens recorded in one place, ideally a short text file or a schema alongside the naming guide. Then:

1: Read every architecture file path matching your artifact extensions. 2: Split the stem on hyphens and check that it matches the expected pattern. 3: Verify that the concern token is in the allowed list. 4: Flag files whose names use spaces, uppercase letters, or mixed separators. 5: Report violations as warnings before failing the build.

Expect this to surface a backlog of legacy names on the first run. Don't rename everything at once: renaming breaks inbound links and links in tickets. Rename opportunistically when a file is next edited, or do a deliberate one-time sweep with redirects. The stop condition is the point where a rename would break references you can't trace; at that point, keep the old name behind a redirect rather than forcing the change.

The success check is simple: introduce a deliberately bad filename in a test branch and confirm the check flags it. A validator that never fires is indistinguishable from one that isn't running.

Common traps and how to recognize them

Several failure patterns recur, and most are recognizable from the symptoms alone.

Symptom: two files that look like the same thing. Likely cause is a synonym in the concern vocabulary, such as flow versus sequence, or an uncertain artifact kind. Fix the vocabulary, not the filenames, then rename during normal edits.

Symptom: names that sort into nonsense. Likely cause is a date written as November-13 or a number without zero padding. Switch to ISO dates and padded numbers.

Symptom: links break every time a diagram is updated. Likely cause is a version suffix in the stem. Move revision information into the storage system's history and stabilize the stem.

Symptom: nobody can find the source for an image. Likely cause is that exports and sources don't share a stem. Rename the pair together.

Symptom: the scheme feels heavy and people ignore it. Likely cause is too many encoded attributes. Drop the optional ones and keep subject, concern, and artifact kind.

Each of these is diagnosable from a directory listing, which is a good reason to review a sample of filenames periodically rather than waiting for complaints.

Limits of any filename convention

Filenames are a weak database. They're flat, they can't express relationships, and they're constrained by filesystem and tooling quirks. A convention helps humans and scripts find things; it should not be asked to serve as the system of record for architecture metadata such as ownership, status, or review dates. Those belong in a structured catalog, a front-matter block, or the diagram content itself.

There's also a cross-platform constraint worth stating plainly. Windows reserves characters and blocks certain names, and some tools mishandle long paths; keeping stems under roughly 60 characters and sticking to lowercase letters, digits, and hyphens avoids nearly all of it. A naming scheme that breaks on one contributor's machine will be quietly abandoned.

Finally, accept that a convention is a social artifact as much as a technical one. The best pattern is the one your team will actually follow, documented in a page people can find, with examples they can copy. If you're choosing between a slightly less elegant scheme that's obvious and a clever one that needs explaining, take the obvious one. The goal was never beautiful filenames; it was being able to find the right diagram in ten seconds and knowing it's the current one.