Backend Domain Architecture logo

Backend Domain Architecture

Organization
devcodex-labs
backend-domain-architecture

后端领域架构专家 Owner — 当任务涉及领域模型、业务流程、权限、API、事务、一致性、幂等、兼容、数据边界、服务职责或用户要求从后端/领域专家角度审查时使用;要求用领域语言和业务不变量约束实现。

Overview

Publisherdevcodex-labs
Repositorydevcodex
Skill namebackend-domain-architecture
Stars
433
Forks
44
Bundled files
1
LicenseAGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by devcodex-labs on GitHub. Read the source before you install it.

Installation

Install the Backend Domain Architecture AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/devcodex-labs/devcodex/tree/main/content/skills/backend-domain-architecture
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/devcodex-labs/devcodex.git /tmp/devcodex
mkdir -p .claude/skills
cp -r /tmp/devcodex/content/skills/backend-domain-architecture .claude/skills/backend-domain-architecture
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Backend Domain Architecture in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Backend Domain Architecture on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Backend Domain Architecture is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Backend Domain Architecture Skill

定位

本 Skill 负责后端领域架构 Owner 视角。它要求后端设计先表达领域语言、业务流程、不变量和一致性边界,再落到接口、服务、权限、事务、缓存和数据结构,避免把框架样板或测试 fixture 当领域设计。

触发条件

场景是否触发
API、服务、权限、领域模型、业务流程、数据一致性或事务边界变化必须
涉及幂等、并发、缓存、队列、长事务、兼容迁移、public types必须
用户指出示例像低阶、route 重复声明、权限/资源模型不专业必须
纯静态文档或前端视觉调整,后端契约不变N/A + skipReason

核心门禁

Gate要求证据
BackendDomainArchitectureGate后端方案必须绑定领域语言、边界上下文、业务不变量和一致性策略源码、类型、schema、测试、运行证据
DomainLanguageGateAPI、服务、文档和测试使用一致的领域词汇domainLanguage
BoundedContextGate区分服务职责、模块边界、共享库和历史 route namespaceboundedContext
WorkflowInvariantGate关键业务流程必须写前置条件、状态转换和不可破坏不变量workflowInvariants
PermissionModelGate权限、资源、action、route group 或 middleware 由推荐主路径承载permissionModel
ConsistencyIdempotencyGate事务、一致性、幂等、重试和兼容演进有明确策略transactionConsistency、idempotencyCompatibility

执行步骤

  1. 提取领域语言:实体、资源、动作、角色、状态、事件和约束。
  2. 划定边界上下文:当前服务、共享库、adapter、legacy/compat、public API 和内部实现。
  3. 描述业务流程:入口、前置条件、状态变化、失败分支、回滚和审计。
  4. 设计权限模型:认证、授权、资源映射、route group、policy 和默认拒绝边界。
  5. 设计一致性:事务范围、读写模型、缓存失效、幂等 key、重试和补偿。
  6. 检查兼容性:public types、历史路由、迁移、版本化和消费者影响。

输出字段

markdown
## BackendDomainArchitectureGate

| 字段 | 内容 |
|------|------|
| domainLanguage | 实体、资源、动作、状态、事件和术语 |
| boundedContext | 服务/模块/共享库/legacy/compat/public API 边界 |
| workflowInvariants | 业务流程、状态转换和不可破坏不变量 |
| permissionModel | authN/authZ、resource/action、policy、route group 或 middleware 主路径 |
| transactionConsistency | 事务范围、一致性级别、缓存失效、补偿 |
| idempotencyCompatibility | 幂等、重试、版本兼容、迁移和消费者影响 |

反模式

反模式修正
每个 route 重复写权限资源配置使用项目推荐的认证插件、resource mapper、route group 或 preset helper
只描述数据库表,不描述业务不变量补 workflowInvariants 和状态转换
单项目临时补丁绕过共享库根因评估共享库修复 + 消费项目升级路径
只按 label 查 legacy,不查 slug/href/title/sidebar/search/generated HTML执行语义曝光反查和引用真相抽样

与其他 Skill 的关系

  • expert-output-quality:防止后端 fixture 或重复声明被包装成推荐实践。
  • api-verification:API 行为需要 .http + .cjs 双产物验证。
  • audit-project:项目工程审查中的资源泄漏、权限、类型和运行证据可叠加本 Skill。
  • release-verification:public API、types 或兼容变化进入发布验证。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Backend Domain Architecture AI skill do?

后端领域架构专家 Owner — 当任务涉及领域模型、业务流程、权限、API、事务、一致性、幂等、兼容、数据边界、服务职责或用户要求从后端/领域专家角度审查时使用;要求用领域语言和业务不变量约束实现。

Why use Backend Domain Architecture on TypingMind?

Because you install it once and use it with any model. Backend Domain Architecture is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Backend Domain Architecture in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/devcodex-labs/devcodex/tree/main/content/skills/backend-domain-architecture. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Backend Domain Architecture?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Backend Domain Architecture?

As many as you like. As long as a model supports skills, you can use Backend Domain Architecture with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Backend Domain Architecture AI skill free?

Yes. It is published on GitHub by devcodex-labs under the AGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇