agentleFS
brunella328brunella328/andon/skills/domain-modeling/SKILL.md

domain-modeling

Skill0 starsChanged 2 months agoMITView on GitHub

Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model.

195 other projects use a version of this, 143 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-ts-deep-modules, decision-mapping and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • liufeng1976Skill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 43 projects that use this

  • FabienDehopreSkill

    decision-mapping

    Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.

    Also in 8 projects that use this

  • LesaniSkill

    writing-beats

    Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.

    Also in 62 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 56 projects that use this

  • AWSSkill

    wizard

    Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.

    Also in 134 projects that use this

  • LesaniSkill

    writing-shape

    Take a markdown file of raw material and shape it into an article through a conversational session — drafting candidate openings, growing the piece paragraph by paragraph, arguing about format (lists, tables, callouts, quotes) at each step. Use when the user has a pile of notes, fragments, or a rough draft and wants help turning it into something publishable.

    Also in 60 projects that use this

  • +1 more from Lesani

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 183 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If a CONTEXT-MAP.md exists at the root, the repo has multiple contexts and the map points to where each one lives.

    line 51

“Common” is measured: kept by at least 6 in 10 of the 183 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Domain Modeling

Actively build and sharpen the project's domain model as you design — challenging terms, inventing edge-case scenarios, and writing the glossary and decisions down the moment they crystallise. (Merely reading CONTEXT.md for vocabulary is not this skill — that's a one-line habit any skill can do. This skill is for when you're changing the model.)

雙語規則(領域語言不是英文的專案)

CONTEXT.md 有兩種讀者:批准者與客戶讀母語,程式碼讀英文。因此每個詞條 必須同時給定母語權威詞與英文識別碼——英文識別碼就是資料表、欄位、函式、 型別、測試名稱要用的那個字:

**牌位**(`plaque`):
法會中為特定對象設立的祭祀名位,是計費的最小單位。
_Avoid_: 名牌、tablet、memorial

**蓮位**(`lotus_plaque`):
牌位的一種,規格與價格不同。**不是**牌位的同義詞——計費規則不同。
_Avoid_: 把「蓮位」當成「牌位」的別名

易混淆的上下位詞要在定義裡明講差異,不要只寫 _Avoid_—— 計費、權限這類規則常常就掛在那個差異上。

詞條與外部尚未回覆的問題有衝突時,標為未定並指向追蹤 issue 的完整網址, 不要自己編一個定義。

識別碼定了就要用:詞彙表給了 proxy_registration 而程式碼各寫各的, 詞彙表就死了。實作第一次用到某個概念時回來對表;表上沒有就先補表再寫碼。

File structure

Most repos have a single context:

/
├── CONTEXT.md
├── docs/adr/
│   ├── 0001-….md
│   └── template.md
└── src/

If a CONTEXT-MAP.md exists at the root, the repo has multiple contexts and the map points to where each one lives. Create files lazily — only when you have something to write.

During the session

  • Challenge against the glossary — 使用者用了與 CONTEXT.md 衝突的詞就當場指出。
  • Sharpen fuzzy language — 模糊或超載的詞,提出精確的權威詞。
  • Discuss concrete scenarios — 用具體情境戳邊界,逼出概念之間的精確分界。
  • Cross-reference with code — 使用者說的運作方式與程式碼矛盾時,攤開來問。
  • Update CONTEXT.md inline — 詞一收斂就寫,不要批次。格式見 CONTEXT-FORMAT.md。 CONTEXT.md 只是詞彙表——不放實作細節、不當 spec、不當筆記。

Offer ADRs sparingly

三條件全中才提議寫 ADR:難回頭、沒脈絡會看不懂為什麼、真的有取捨。 格式用專案的 docs/adr/template.md(含日期、狀態、裁示人、出處—— 沒有這四欄的 ADR,半年後只能靠考古拼時序);沒有 template 就用 ADR-FORMAT.md。 ADR 要記代價,不只記決定;有牴觸合約或對外承諾的,引用條文並記錄對方同意的出處。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.