Agent skill

Domain Architect

by pproenca in pproenca/dot-skills

Discovers business domains in a Swift codebase by tracing what users can DO — not by reading folder names or architecture docs.

MITAuto-check: notesMobile

Install Domain Architect

skills CLI
$ npx skills add pproenca/dot-skills --skill domain-architect -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pproenca/dot-skills domain-architect --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/domain-architect .claude/skills/domain-architect && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
domain-architect
GitHub stars
215
Token cost
~2.5k tokens
SKILL.md length
941 words
Files
5 (incl. references)
Skills in repo
41
Repo updated
First seen
Licence
MIT

At a glance

Discovers business domains in a Swift codebase by tracing what users can DO — not by reading folder names or architecture docs.

  • Works in 7 steps: What can users DO? → What verbs exist? → What nouns exist? → …
  • The user wants to understand their codebase domains
  • SKILL.md covers What You Produce, How Domains Work, The Process and Output Format, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Domain Architect is an agent skill from pproenca/dot-skills. Discovers business domains in a Swift codebase by tracing what users can DO — not by reading folder names or architecture docs. Maps each domain's vertical slice (Types → Config → Repo → Service → Runtime → UI), identifies providers (external SDK bridges), and separates cross-cutting concerns. Produces a domain map that drives all downstream decisions: folder structure, SPM targets, enforcement specs, migration plans. Use this skill whenever the user wants to understand their codebase domains, find what's…

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `metadata.json`, `references/architecture.md` and `references/principles.md`).

It sits in Mobile, covering iOS development, File organization and Software architecture. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.

When your agent uses it

  • The user wants to understand their codebase domains
  • Find whats cross-cutting vs domain-specific
  • Restructure a Swift project
  • Figure out where code belongs

Example prompts

  • “s capabilities to architectural boundaries. Triggers on”
  • “where does this belong”
  • “map this codebase”
  • “/domain-architect”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Write, Edit, Bash

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. What can users DO?
  2. What verbs exist?
  3. What nouns exist?
  4. Map each domain's vertical slice
  5. Identify providers
  6. Identify cross-cutting concerns
  7. Flag ambiguities

What it can do on your machine

Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Write
    • Edit
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Domain Architect loads about 2.5k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 241 tokens; SKILL.md has 941 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~241
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~12k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Glob, Grep, Write, Edit, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 941 words, ~2,489 tokens.

Download SKILL.mdSave it as .claude/skills/domain-architect/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
domain-architect
description
Discovers business domains in a Swift codebase by tracing what users can DO — not by reading folder names or architecture docs. Maps each domain's vertical slice (Types → Config → Repo → Service → Runtime → UI), identifies providers (external SDK bridges), and separates cross-cutting concerns. Produces a domain map that drives all downstream decisions: folder structure, SPM targets, enforcement specs, migration plans. Use this skill whenever the user wants to understand their codebase domains, find what's cross-cutting vs domain-specific, restructure a Swift project, figure out where code belongs, or map a product's capabilities to architectural boundaries. Triggers on "what are my domains", "where does this belong", "map this codebase", "what's cross-cutting", "organize this project", "is this a domain or infra", "restructure this", "architecture review", or any request to understand the business domain structure of a Swift codebase.
allowed-tools
Read, Glob, Grep, Write, Edit, Bash

Domain Architect

You discover business domains by tracing what users can DO — the product's capabilities — and mapping each capability to a vertical slice through the architecture.

You do NOT start from folder names, architecture docs, or file counts. You start from the product.

What You Produce

A domain map — the single artifact that drives everything else:

Domain Map
├── Business Domains (vertical slices the user would recognize)
│   └── Per domain: Types, Config clients, Service reducers, UI views
├── Providers (external SDK bridges)
├── Cross-Cutting Concerns (Infra, Utils)
└── Questions (ambiguous boundaries to discuss with the team)

Once the domain map is right, folder structure, SPM targets, enforcement specs, and migration plans all follow mechanically. Get the domains wrong and everything downstream is wrong.

How Domains Work

Read references/architecture.md for the full layer spec. Read references/architecture.als for the formally verifiable model.

A domain is a user capability

Litmus test: Can you describe it to a non-engineer in one sentence?

  • "Scheduling appointments" — domain (Calendar)
  • "Collecting payments" — domain (Payments)
  • "Browsing available treatments" — domain (Treatments)
  • "Handling HTTP requests" — NOT a domain (infrastructure)
  • "Formatting dates" — NOT a domain (utils)
Each domain owns a vertical slice
Types    → pure data definitions for this domain's nouns
Config   → @DependencyClient interfaces (what you can ask for)
Repo     → implementations (how it's done — API, persistence, sync)
Service  → @Reducer state machines (business decisions)
Runtime  → dependency wiring (Config interfaces → Repo implementations)
UI       → SwiftUI views (pixels)

Not every domain needs every layer. A thin domain might only have Config + Service + UI. But Types, Config, and Service are the minimum for something to be a real domain.

Domains don't import each other's internals

Cross-domain communication happens through:

  • Delegate actions to a parent reducer
  • Shared Types (the universal vocabulary)
  • Shared Config interfaces (when two domains use the same client)

Never by importing another domain's Service or Repo.

What's NOT a domain
ThingWhat it isWhere it lives
Error handlingCross-cuttingInfra
Logging/telemetryCross-cuttingInfra
Formatters, constantsCross-cuttingUtils
Sentry, Stripe SDK, APNSProvider (SDK bridge)Providers
HTTP transport, persistence engineShared infrastructureRepo
Design system tokensShared UIDesignSystem
Background task schedulingPlatform integrationRuntime

The Process

Step 1: What can users DO?

Start from the entry point. Read @main, the root reducer, the tab structure. Every child scope or tab is a candidate domain.

bash
grep -r "@main" <project-root> --include="*.swift" -l

Read the root reducer. Trace its Scope and CombineReducers to find every child feature. Trace the tab enum to find every top-level capability.

For multi-app products (e.g., patient app + clinic app), do this for EACH app. The same business domain often appears in both apps with different verbs.

Step 2: What verbs exist?

Every @DependencyClient is a verb — a capability the system can perform.

bash
grep -r "@DependencyClient" <project-root> --include="*.swift" -l

Read each client file. For each client, note:

  • The verbs (closure names: fetch, create, cancel, observe)
  • The nouns (types flowing through: Appointment, Treatment, Patient)
  • Which domain it belongs to (infer from the nouns)

Group clients by domain. This gives you the Config layer map.

Step 3: What nouns exist?

The nouns are in the Types layer — the universal vocabulary.

bash
find <project-root> -name "Package.swift" -not -path "*/.build/*"

Read Package.swift files to find the Types target. Read its source files to understand the domain language: what entities exist, what IDs are typed, what operations are defined.

Step 4: Map each domain's vertical slice

For each domain discovered in Steps 1-2, trace its full vertical:

LayerQuestionHow to find it
TypesWhat nouns does this domain speak?Grep for domain nouns in Types package
ConfigWhat can you ask for?The @DependencyClient files from Step 2
RepoHow is data fetched/stored?Grep for DataService, Repository, Store + domain nouns
ServiceWhat decisions are made?Grep for @Reducer + domain name
RuntimeWhere is it wired?Grep for Registration + domain name
UIWhat does the user see?Grep for View + domain name

Read at least one file per layer per domain. Don't guess from names.

Show full SKILL.md (386 more words)Show less
Step 5: Identify providers

Providers wrap external SDKs. They're NOT domains — they're bridges.

Look for:

  • Third-party framework imports (Stripe, Firebase, Sentry, Amplitude)
  • SDK initialization code
  • Protocol conformances that bridge external types to domain types
bash
grep -r "import Stripe\|import Firebase\|import Sentry\|import Amplitude" <project-root> --include="*.swift" -l
Step 6: Identify cross-cutting concerns

What's left after domains and providers? Cross-cutting concerns:

  • Infra: Error types, telemetry protocols, logging abstractions
  • Utils: Pure formatters, constants, accessibility IDs
  • DesignSystem: Tokens, styles, shared UI components

These are importable by any domain but contain no domain knowledge.

Step 7: Flag ambiguities

Some things are genuinely ambiguous. Flag them as questions:

  • "Is Profile a domain or part of Auth?" — Profile has its own client and UI, but avatar upload goes through Auth. Discuss with the team.
  • "Is Booking part of Calendar or its own domain?" — It has distinct clients but lives inside the Calendar tab. Depends on complexity.
  • "Are Notifications a domain or cross-cutting?" — It has its own UI and client, but very thin Types. Borderline.

Present these as questions, not decisions. The team has context you don't.


Output Format

Domain Map

For each domain:

markdown
### [Domain Name] — "[one-sentence description]"

**Nouns**: [Types this domain speaks — Appointment, Treatment, etc.]
**Verbs**: [Client capabilities — fetch, create, cancel, observe]

| Layer | Files/Modules | Status |
|-------|--------------|--------|
| Types | [what exists] | present / missing / partial |
| Config | [clients] | present / missing |
| Repo | [implementations] | present / missing |
| Service | [reducers] | present / missing |
| Runtime | [wiring] | present / missing |
| UI | [views] | present / missing |

**Cross-app**: Patient app: [verbs]. Clinic app: [verbs].
Providers
markdown
| Provider | SDK | Used by domains |
|----------|-----|----------------|
| Sentry | Error monitoring | All (Infra) |
| Stripe Terminal | In-person payments | Payments |
Cross-Cutting
markdown
| Concern | Layer | Purpose |
|---------|-------|---------|
| AppDomainError | Infra | Error vocabulary |
| Telemetry | Infra | Monitoring |
| AccessibilityId | Utils | UI testing |
Questions
markdown
1. Is Profile a domain or part of Auth? [evidence for each]
2. Should Booking be extracted from Calendar? [evidence]

Anti-Shortcut Rules

  1. Start from the product, not the files. "What can users do?" comes before "what files exist?"

  2. Do not classify by folder path. A file in Services/ might be UI code. Read before classifying.

  3. Do not read architecture docs before forming your own opinion. If harness-spec.yml or ARCHITECTURE.md exists, read it AFTER you've mapped the domains. Compare your map against theirs — disagreements are the most valuable findings.

  4. Do not skip domains because they look similar. Each domain gets its own vertical trace. Auth is not Profile.

  5. Use subagents for codebases with >200 files. One agent per domain, each traces the full vertical. This prevents shortcuts from context pressure.

  6. Flag ambiguities instead of deciding. You lack the team's context. Present evidence for both sides. Let the team decide.


Depth Requirements

  1. 100% client discovery — every @DependencyClient found and assigned to a domain
  2. 100% reducer discovery — every @Reducer found and assigned to a domain
  3. Vertical trace per domain — at least one file read per layer per domain
  4. Evidence for boundaries — cite the nouns/verbs that justify each domain boundary
  5. Explicit gaps — report missing layers (domain has Service but no Config = finding)
  6. Questions over assumptions — when unsure, ask rather than guess

© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/.experimental/domain-architect of pproenca/dot-skills.

  • SKILL.md
  • metadata.json
  • references/architecture.als
  • references/architecture.md
  • references/principles.md

Open the folder on GitHubat commit cf93c57

Compare with similar skills

Domain Architect next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Domain Architect compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Domain Architect this skillpproenca/dot-skills215—~2.5kAutomated safety check: NotesMIT
macOS DevelopmentKartikLabhshetwar/better-shot2.4k2 repos~735Automated safety check: PassCustom licence
React Composition Structurefluid-design-io/payload-better-auth-starter120—~899Automated safety check: PassCustom licence
Hig Patternsraintree-technology/hig-doctor1435 repos~2kAutomated safety check: PassMIT
Swiftui Advancedjohnrogers/claude-swift-engineering231—~757Automated safety check: PassMIT
Navigation Patternsgustavscirulis/snapgrid1171 repos~1.3kAutomated safety check: PassCustom licence

Similar skills

  • macOS Development

    KartikLabhshetwar/better-shot

    Comprehensive macOS development guidance including Swift 6+, SwiftUI, SwiftData, architecture patterns, AppKit bridging, and macOS 26 Tahoe APIs.

    2.4k GitHub starsUsed in 2 repos~735 tokens
    MobileAuto-check passed
  • React Composition Structure

    fluid-design-io/payload-better-auth-starter

    React and React Native file-system architecture patterns that scale.

    120 GitHub stars~899 tokensUpdated today
    MobileAuto-check passed
  • Hig Patterns

    raintree-technology/hig-doctor

    Apple Human Interface Guidelines interaction and UX patterns.

    143 GitHub starsUsed in 5 repos~2k tokens
    MobileAuto-check passed
  • Swiftui Advanced

    johnrogers/claude-swift-engineering

    A skill your agent uses when implementing gesture composition (simultaneous, sequenced, exclusive), adaptive layouts (ViewThatFits, AnyLayout, size classes), or choosing architecture patterns (MVVM…

    231 GitHub stars~757 tokensUpdated 8 mo ago
    MobileAuto-check passed
  • Navigation Patterns

    gustavscirulis/snapgrid

    SwiftUI navigation architecture patterns including NavigationStack, NavigationSplitView, TabView, programmatic navigation, and custom transitions.

    117 GitHub starsUsed in 1 repo~1.3k tokens
    MobileAuto-check passed
  • Architecture Patterns

    KartikLabhshetwar/better-shot

    Deep dive into software architecture for macOS. An agent skill from KartikLabhshetwar/better-shot.

    2.4k GitHub starsUsed in 2 repos~1.4k tokens
    DevelopmentAuto-check passed

More from pproenca/dot-skills

All 41 skills in this repo
  • Audio Voice Recovery

    pproenca/dot-skills

    Audio forensics and voice recovery guidelines for CSI-level audio analysis.

    215 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Codemod React Pipeline

    pproenca/dot-skills

    Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.

    215 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Dev Rfc

    pproenca/dot-skills

    Create well-structured RFCs and technical proposals for software projects.

    215 GitHub stars~3.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Dx Harness

    pproenca/dot-skills

    Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.

    215 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Language Spec Author

    pproenca/dot-skills

    Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…

    215 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Python Pep Author

    pproenca/dot-skills

    Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…

    215 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Domain Architect

What does Domain Architect do?

Discovers business domains in a Swift codebase by tracing what users can DO — not by reading folder names or architecture docs. Domain Architect is an agent skill from pproenca/dot-skills. Discovers business domains in a Swift codebase by tracing what users can DO — not by reading folder names or architecture docs.

When should I use Domain Architect?

Domain Architect fits situations like: the user wants to understand their codebase domains; find whats cross-cutting vs domain-specific; restructure a Swift project; figure out where code belongs.

How do I install Domain Architect in Claude Code?

Run `npx skills add pproenca/dot-skills --skill domain-architect -a claude-code`. Or copy the skill folder (skills/.experimental/domain-architect in pproenca/dot-skills) into .claude/skills/domain-architect in your project. Claude Code loads it when a task matches its description.

How do I install Domain Architect in Codex?

Run `npx skills add pproenca/dot-skills --skill domain-architect -a codex`. Or copy the skill folder (skills/.experimental/domain-architect in pproenca/dot-skills) into .agents/skills/domain-architect in your project. Codex loads it when a task matches its description.

Can I use Domain Architect in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill domain-architect -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/domain-architect, .gemini/skills/domain-architect, .github/skills/domain-architect and .opencode/skills/domain-architect in your project.

What does Domain Architect need to run?

SKILL.md names no scripts, command-line tools or credentials: Domain Architect is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep, Write, Edit, Bash.

Does Domain Architect access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Domain Architect safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Domain Architect use?

Domain Architect is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Domain Architect use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 9k tokens, read only when the agent opens those files.

What are the alternatives to Domain Architect?

Skills that share tags, products or a category with Domain Architect: macOS Development (KartikLabhshetwar/better-shot, 2.4k stars), React Composition Structure (fluid-design-io/payload-better-auth-starter, 120 stars), Hig Patterns (raintree-technology/hig-doctor, 143 stars) and Swiftui Advanced (johnrogers/claude-swift-engineering, 231 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Domain Architect?

pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 215 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on August 15, 2026.

Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.