agentleFS
Facta-DevFacta-Dev/beautifulnodejs/.claude/skills/domain-modeling/SKILL.md

domain-modeling

Skill0 starsChanged 32 days agoMITView on GitHub

Sharpens the <app> domain model in place: challenges fuzzy terminology, records exact terms in GLOSSARY.md, and writes ADRs only for hard-to-reverse decisions.

198 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use decision-mapping, setup-ts-deep-modules 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.
  • 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

  • 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 54 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 76 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 166 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 74 projects that use this

  • RoentekSkill

    loop-me

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

    Also in 66 projects that use this

  • +1 more from Lesani

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 186 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Do NOT activate this skill merely to read GLOSSARY.md for vocabulary before another task (that is a one-line habit any skill can do), and …

    line 25
  2. Distinctive:

    The glossary is the language, the code is the truth: When the two disagree, surface the contradiction instead of silently picking one.

    line 31
  3. Very specific:

    A resolved term is written down immediately: Update GLOSSARY.md in place as terms crystallise.

    line 36
  4. Distinctive:

    Create files lazily: If no glossary or ADR directory exists, create it when there is genuinely something to write, not as empty scaffolding.

    line 45
  5. Distinctive:

    No fabricated data: never invent a term, a definition, a decision or an ADR number that was not agreed in the session.

    line 50
  6. Very specific:

    Every term in GLOSSARY.md must map to something in the <app> codebase or be explicitly marked as a domain concept not yet implemented.

    line 52
  7. Distinctive:

    Keep definitions free of implementation detail (no table names, no framework names, no file paths) unless the term genuinely names an …

    line 54
  8. Distinctive:

    When the user states how something works, check the code before accepting it.

    line 57
  9. Distinctive:

    Never renumber existing ADRs.

    line 59

“Common” is measured: kept by at least 6 in 10 of the 186 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

<app> Domain Modeling skill

Reusable workflow for keeping the <app> domain vocabulary and the recorded decisions honest. An agent invokes this skill; the agent supplies the domain knowledge, the skill supplies the discipline.

When to Activate

Activate this skill when the <app> domain model itself is changing: a term is disputed or overloaded, a new concept is being introduced, or a decision worth recording is being made. Typical triggers:

  • The request discusses codebase terminology, or asks what something means in <app>.
  • The request is to write or edit GLOSSARY.md.
  • The request is to record or edit an architecture decision record.
  • A new slice, entity, or state machine is being named for the first time.

Do NOT activate this skill merely to read GLOSSARY.md for vocabulary before another task (that is a one-line habit any skill can do), and not for pure implementation choices with no domain consequence.

Core Principles

  • The glossary is the language, the code is the truth. When the two disagree, surface the contradiction instead of silently picking one.
  • Precision beats fluency. Vague, overloaded words ("account", "user", "order", "active") are the defect. Propose one canonical term per concept.
  • A resolved term is written down immediately. Update GLOSSARY.md in place as terms crystallise; do not batch the edits to the end of the session.
  • A glossary is not a spec. GLOSSARY.md holds terms and their meaning only: no implementation detail, no requirements, no design discussion.
  • ADRs are rare by design. Offer one only when all three conditions hold (hard to reverse, surprising without context, the result of a real trade-off). Meeting two out of three is not enough.
  • Create files lazily. If no glossary or ADR directory exists, create it when there is genuinely something to write, not as empty scaffolding.

Rules

  • No fabricated data: never invent a term, a definition, a decision or an ADR number that was not agreed in the session.
  • Every term in GLOSSARY.md must map to something in the <app> codebase or be explicitly marked as a domain concept not yet implemented.
  • Keep definitions free of implementation detail (no table names, no framework names, no file paths) unless the term genuinely names an implementation concept, in which case name it explicitly.
  • When the user states how something works, check the code before accepting it; report the mismatch and ask which side is right.
  • Never renumber existing ADRs. A new ADR takes the next unused number.
  • Files are created lazily and only where the repository already keeps such files: check for an existing GLOSSARY.md, GLOSSARY-MAP.md, or ADR directory before creating anything.
  • A repository with multiple contexts keeps a GLOSSARY-MAP.md at the root pointing at each context's glossary and ADR directory. Do not flatten a multi-context repo into one glossary.

Research References

ClaimSourceYearLink
Glossary and ADR conventions (challenge, sharpen, update inline, three ADR conditions)skills/engineering/domain-modeling/SKILL.md (upstream, MIT)2026local file
Existing <app> architecture vocabularydocs/architecture/14-glossary.mdn/alocal file

Output Format

Raw structured prose, not a code fence:

### <app> domain model, <what changed>

Terminology challenges:
- <term as used> vs <term as defined> → proposed canonical term: <term> | agreed: <yes/no/open>

Code cross-check:
- <statement>, code says: <finding> (file:line) | consistent/discrepant

GLOSSARY.md updates:
- <term>: <one-line definition>
- <term>: <one-line definition>

ADR:
- docs/adr/<NNNN>-<slug>.md, <decision in one line> | no ADR needed: <why not>

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.