Agent skill

Backend Domain Architecture

by devcodex-labs in devcodex-labs/devcodex

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

AGPL-3.0Auto-check passed

Install Backend Domain Architecture

skills CLI
$ npx skills add devcodex-labs/devcodex --skill backend-domain-architecture -a claude-code

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

GitHub CLI
$ gh skill install devcodex-labs/devcodex backend-domain-architecture --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/devcodex-labs/devcodex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/content/skills/backend-domain-architecture .claude/skills/backend-domain-architecture && 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
backend-domain-architecture
GitHub stars
439
Token cost
~575 tokens
SKILL.md length
116 words
Files
2
Skills in repo
70
Repo updated
First seen
Licence
AGPL-3.0

At a glance

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

  • Works in 6 steps: 提取领域语言:实体、资源、动作、角色、状态、事件和约束。 → 划定边界上下文:当前服务、共享库、adapter、legacy/compat、pu… → 描述业务流程:入口、前置条件、状态变化、失败分支、回滚和审计。 → …
  • SKILL.md covers 定位, 触发条件, 核心门禁 and 执行步骤, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

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

Its SKILL.md is about 580 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `intent.json`).

The repository describes itself as: Intent-driven AI coding workflow runtime for consistent context, skills, approvals, validation, and handoffs across six AI coding hosts. The licence is AGPL-3.0.

Example prompts

  • “/backend-domain-architecture”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    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 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

Backend Domain Architecture loads about 575 tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 116 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~575

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 passed

The automated check found no risky patterns in SKILL.md.

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 devcodex-labs/devcodex at commit 1dd4525, republished under its AGPL-3.0 licence (© devcodex-labs). 116 words, ~575 tokens.

Download SKILL.mdSave it as .claude/skills/backend-domain-architecture/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
backend-domain-architecture
description
后端领域架构专家 Owner — 当任务涉及领域模型、业务流程、权限、API、事务、一致性、幂等、兼容、数据边界、服务职责或用户要求从后端/领域专家角度审查时使用;要求用领域语言和业务不变量约束实现。

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 或兼容变化进入发布验证。

© devcodex-labs, AGPL-3.0. 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 1 other file in content/skills/backend-domain-architecture of devcodex-labs/devcodex.

  • SKILL.md
  • intent.json

Open the folder on GitHubat commit 1dd4525

Compare with similar skills

Backend Domain Architecture 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.

Backend Domain Architecture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Backend Domain Architecture this skilldevcodex-labs/devcodex439—~575Automated safety check: PassAGPL-3.0
Agile Product Ownerdavila7/claude-code-templates32k2 repos~256Automated safety check: PassMIT
Agile Product Owneralirezarezvani/claude-skills28k3 repos~3.2kAutomated safety check: PassMIT
Salon OwnerFerroxLabs/wayland608—~4.7kAutomated safety check: PassApache-2.0
Gym Studio OwnerFerroxLabs/wayland608—~4.9kAutomated safety check: PassApache-2.0
Restaurant OwnerFerroxLabs/wayland608—~4.1kAutomated safety check: PassApache-2.0

Similar skills

  • Agile Product Owner

    davila7/claude-code-templates

    Agile product ownership toolkit for Senior Product Owner including INVEST-compliant user story generation, sprint planning, backlog management, and velocity tracking.

    32k GitHub starsUsed in 2 repos~256 tokens
    Product & Project ManagementAuto-check passed
  • Agile Product Owner

    alirezarezvani/claude-skills

    Writes INVEST-checked user stories with acceptance criteria, splits epics, plans sprints from velocity and ranks the backlog with a weighted score.

    28k GitHub starsUsed in 3 repos~3.2k tokens
    Product & Project ManagementAuto-check passed
  • Salon Owner

    FerroxLabs/wayland

    Complete operations guide for salon and barbershop owners covering booking systems, inventory management, staff commission structures, client retention, retail product sales, social media marketing…

    608 GitHub stars~4.7k tokensUpdated yesterday
    Marketing & SEOAuto-check passed
  • Gym Studio Owner

    FerroxLabs/wayland

    Complete operations guide for fitness facility owners covering membership models, class scheduling, instructor management, equipment maintenance, member retention, challenge and program design…

    608 GitHub stars~4.9k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Restaurant Owner

    FerroxLabs/wayland

    Complete restaurant operations expertise covering menu engineering, food cost management, staffing models, health code compliance, POS selection, inventory control, marketing strategy, and seasonal…

    608 GitHub stars~4.1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Super Product Owner

    syahiidkamil/Software-Engineer-AI-Agent-Atlas

    Complete Product Owner / Product Manager capability — a wiki-style knowledge map of product practice in active software development: the role and its boundaries, strategy cascade (vision → OKRs →…

    397 GitHub stars~7.9k tokensUpdated 3 mo ago
    Product & Project ManagementAuto-check passed

More from devcodex-labs/devcodex

All 70 skills in this repo
  • Accessibility I18n

    devcodex-labs/devcodex

    无障碍与国际化专家 Owner — 当任务涉及可访问性、键盘操作、焦点、屏幕阅读器、ARIA、语言地区、本地化、RTL、翻译资源、用户可见文案或多语言文档时使用;要求把包容性体验和本地化验证绑定到真实用户路径。

    439 GitHub stars~718 tokensUpdated 20 days ago
    Auto-check passed
  • AI Agent System Architecture

    devcodex-labs/devcodex

    AI Agent 系统架构专家 Owner — 当任务涉及 Agent 路由、工具调用、上下文管理、记忆、状态机、权限、人机协作、可观测性、回放验证或模型辅助治理时使用;要求把 Agent 行为设计成可解释、可恢复、可审计。

    439 GitHub stars~2.4k tokensUpdated 20 days ago
    Auto-check passed
  • API Contract Architecture

    devcodex-labs/devcodex

    API 契约架构专家 Owner — 当任务涉及 public API、HTTP/SDK/CLI 契约、版本兼容、错误模型、分页过滤、幂等、Schema、类型、迁移或消费者影响时使用;要求先冻结消费者契约,再设计实现与验证。

    439 GitHub stars~865 tokensUpdated 20 days ago
    Auto-check passed
  • Architecture Design

    devcodex-labs/devcodex

    架构设计文档编排 Owner — 当用户要求架构设计、系统设计、技术架构或可指导开发、Review 与任务拆分的完整方案时使用;要求从业务流程反推节点、状态、数据、一致性、异常补偿、ADR 与实施任务。

    439 GitHub stars~1.1k tokensUpdated 20 days ago
    Auto-check passed
  • Audit Common

    devcodex-labs/devcodex

    审查公共维度 G0~G5 + Profile Freshness Check — 所有 audit 子类型必先执行的基础维度层

    439 GitHub stars~4.1k tokensUpdated 20 days ago
    Auto-check passed
  • Audit Session

    devcodex-labs/devcodex

    审计工作流的跨会话状态机 — 在 <audit-root/.audit-state/<session-id.json 持久化轮次/发现项/收敛状态,支持 Token 中断后精准恢复

    439 GitHub stars~1.8k tokensUpdated 20 days ago
    Auto-check passed

Questions about Backend Domain Architecture

What does Backend Domain Architecture do?

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

How do I install Backend Domain Architecture in Claude Code?

Run `npx skills add devcodex-labs/devcodex --skill backend-domain-architecture -a claude-code`. Or copy the skill folder (content/skills/backend-domain-architecture in devcodex-labs/devcodex) into .claude/skills/backend-domain-architecture in your project. Claude Code loads it when a task matches its description.

How do I install Backend Domain Architecture in Codex?

Run `npx skills add devcodex-labs/devcodex --skill backend-domain-architecture -a codex`. Or copy the skill folder (content/skills/backend-domain-architecture in devcodex-labs/devcodex) into .agents/skills/backend-domain-architecture in your project. Codex loads it when a task matches its description.

Can I use Backend Domain Architecture 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 devcodex-labs/devcodex --skill backend-domain-architecture -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/backend-domain-architecture, .gemini/skills/backend-domain-architecture, .github/skills/backend-domain-architecture and .opencode/skills/backend-domain-architecture in your project.

What does Backend Domain Architecture need to run?

SKILL.md names no scripts, command-line tools or credentials: Backend Domain Architecture is instructions for the agent only.

Does Backend Domain Architecture 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 Backend Domain Architecture safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Backend Domain Architecture use?

Backend Domain Architecture is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Backend Domain Architecture use?

About 575 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Backend Domain Architecture?

Skills that share tags, products or a category with Backend Domain Architecture: Agile Product Owner (davila7/claude-code-templates, 32k stars), Agile Product Owner (alirezarezvani/claude-skills, 28k stars), Salon Owner (FerroxLabs/wayland, 608 stars) and Gym Studio Owner (FerroxLabs/wayland, 608 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Backend Domain Architecture?

devcodex-labs (a GitHub organization) maintains it in devcodex-labs/devcodex, which has 439 GitHub stars. The repository holds 70 skills in this directory. The repository was last updated on September 17, 2026.

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