Skip to content
Skill

M09 domain

Guides the agent in modeling domain concepts as Rust entities, value objects

M09 domain is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
21
Last commit
License
MIT
Listing updated

Similar skills

About M09 domain

This skill gives an AI coding agent a structured way to design domain models in Rust. It maps common domain-driven design ideas such as entities, value objects, aggregate roots, repositories and domain events onto Rust constructs like structs with IDs, newtypes, modules and traits, and it explains the ownership consequences of each choice.

The guidance works as a thinking checklist. Before the agent creates a type, it asks whether the concept has a unique identity, which invariants must always hold, and who owns the data. It then points to implementation patterns for validated constructors, private fields, type state transitions and shared references, and includes short Rust templates for value objects, entities and aggregates. A list of common mistakes, such as primitive obsession and public fields that break invariants, is included too.

The skill is a single SKILL.md file with no scripts. It is written for Rust projects and refers to other skills in the same collection for ownership, type-driven design and domain error handling, so those companion skills are useful alongside it.

When your agent uses it

CRITICAL: Use for domain modeling. Triggers: domain model, DDD, domain-driven design, entity, value object, aggregate, repository pattern, business rules, validation, invariant, 领域模型, 领域驱动设计, 业务规则

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (4 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/m09-domain to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/m09-domain &&
cp -R "$tmp/.claude/skills/m09-domain" ~/.claude/skills/m09-domain &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/m09-domain inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/m09-domain to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/m09-domain &&
cp -R "$tmp/.claude/skills/m09-domain" ~/.agents/skills/m09-domain &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/m09-domain inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/m09-domain to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/m09-domain &&
cp -R "$tmp/.claude/skills/m09-domain" ~/.cursor/skills/m09-domain &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/m09-domain inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/k1-c/linear-tui.git --path .claude/skills/m09-domain

Or copy the folder to ~/.gemini/skills/m09-domain yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/m09-domain:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/m09-domain &&
cp -R "$tmp/.claude/skills/m09-domain" ~/.copilot/skills/m09-domain &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/m09-domain inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/k1-c/linear-tui.git

Then copy linear-tui/.claude/skills/m09-domain into your agent's skills folder as m09-domain. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Entity and value object choice
Helps decide whether a concept needs a unique identity or should be treated as an interchangeable value.
DDD to Rust mapping
Maps aggregates, repositories, services and domain events to idiomatic Rust structs, traits, modules and enums.
Invariant-preserving constructors
Shows validated newtypes and private fields so invalid domain state cannot be constructed.
Ownership guidance for models
Explains when to use owned fields, Arc, Rc or Weak for data inside a domain model.
Rust code templates
Provides short examples for value objects, entities with identity equality and aggregate roots.
Common modeling mistakes
Lists pitfalls such as primitive obsession and leaked aggregate internals with better alternatives.

Good for

  • Model a user account with a unique ID and validated email in Rust
  • Design an order aggregate that enforces its item rules
  • Replace raw strings with validated newtypes for domain values
  • Define a repository trait for persisting a domain entity
  • Decide whether a concept should be an entity or a value object

M09 domain FAQ

When does M09 domain trigger?

It is meant for requests about domain modeling, such as domain model, DDD, entity, value object, aggregate, repository pattern, business rules, validation and invariants, including Chinese terms for these topics.

Does M09 domain need any tools or scripts?

No scripts are included and it does not set allowed tools. It is a single SKILL.md file with guidance and examples.

What language does M09 domain target?

Its patterns and templates are written in Rust.

Does M09 domain change how the agent writes code?

It gives the agent design guidance and Rust templates for domain types, and it references other skills in the same collection for related topics.

How do I install M09 domain in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/m09-domain to use it in all your projects, or to .claude/skills/m09-domain in one project.

Does M09 domain run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use M09 domain?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to M09 domain?

The closest alternatives to M09 domain are Domain modeling, M01 ownership, Principle model the domain, M05 type driven and M14 mental model.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from k1-c/linear-tui

  1. Gives the agent a quick reference of Rust-specific naming, error handling and async rules

    • Open source
    • 21 GitHub stars
    • Developer tools
  2. Guides the agent to write Conventional Commits, splitting mixed changes into several

    • Open source
    • 21 GitHub stars
    • Developer tools
  3. Guides an agent through building Rust command-line tools with clap, config layers

    • Open source
    • 21 GitHub stars
    • Developer tools
  4. Guides the agent through Rust ownership, borrow and lifetime compiler errors

    • Open source
    • 21 GitHub stars
    • Developer tools
  5. Guides an agent in choosing Rust smart pointers like Box, Rc, Arc, Weak and RefCell

    • Open source
    • 21 GitHub stars
    • Developer tools
  6. Guides a Rust agent through E0596/E0499/E0502 borrow errors and interior mutability

    • Open source
    • 21 GitHub stars
    • Developer tools