Claude Cursor Skill

write-domain-glossary

Use when writing a glossary, sorting out inconsistent naming or terminology, building a domain model or ubiquitous language, asking what to call a concept, or deciding on a naming ADR. Writes GLOSSARY.md with one term per concept, the aliases to stop using, and every file where t

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download heyvhuang-copybook-skills-plugins_skills_skills_write-domain-glossary-c2e4cc2.zip · 3 KB

Install

skills CLI npx skills add https://github.com/Heyvhuang/copybook-skills/tree/main/plugins/skills/skills/write-domain-glossary
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install heyvhuang-copybook-skills@llmmart
Git git clone https://github.com/Heyvhuang/copybook-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole heyvhuang/copybook-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

One word per concept

A glossary keeps people and modules from using different words for the same thing, or the same word for two different things.

1. Read existing docs and code names

  • Read GLOSSARY.md and docs/adr/ first if they exist, so you start from decisions already made.
  • Scan the codebase for domain nouns in types, classes, database tables, schemas, routes, and module names.
  • Sort what you find into two lists before defining anything: different words that might mean the same thing, and single words reused across separate modules that might mean different things.

2. Test fuzzy words with a concrete scenario

  • For possible synonyms, test whether a real case separates them: can one exist without the other, or change while the other stays the same? If not, they are one concept. Pick one canonical term and mark the rest as aliases to avoid instead of writing separate synonym entries.
  • For one word reused across modules, check its fields and rules in each place. If they describe different things (for example, a person in one module and a financial record in another), give each concept its own term and flag the shared word as a collision.

3. Cross-reference every term with the code

  • Search the codebase for each canonical term and each alias you found.
  • Record the files that use the chosen term, the files that still use an alias to avoid, and the exact file path of every collision where one word carries two meanings.
  • When the code behaves differently from how someone describes a term, point to the file and settle which one is right before writing the entry.

4. Update GLOSSARY.md as terms settle

Create or update GLOSSARY.md at the repository root as soon as each term settles, rather than waiting until the end. Keep it focused on domain meaning, not implementation specs or scratch notes.

Use one entry per concept:

### Canonical term

Plain-English definition of what this concept is and where its boundary sits.

- **Avoid**: alias one, alias two
- **Code**: `src/path/primary.ts` (alias used in `src/path/legacy.ts`)
- **Collisions**: `src/other/file.ts` uses "shared word" for [other concept]

Check GLOSSARY.md before finishing:

  • Every concept has exactly one entry.
  • Every retired synonym is listed under Avoid, not given its own entry.
  • Every word that means two different things names the colliding file path under Collisions.

5. Offer an ADR only for hard naming calls

Skip an ADR for routine synonym cleanup. Offer to create an ADR in docs/adr/ only when all three are true:

  • Changing the name later would be costly across code, data, or users.
  • A future reader would wonder why this term was chosen.
  • There were real trade-offs between competing options.

Based on mattpocock/skills (MIT), rewritten by Copybook.

Files (copybook-skills)
  • CHANGES.md 358 B
    Loading…
  • example.md 1.1 KB
    Loading…
  • LICENSE 1 KB · in bundle
  • SKILL.md 3.2 KB
    ---
    name: write-domain-glossary
    description: "Use when writing a glossary, sorting out inconsistent naming or terminology, building a domain model or ubiquitous language, asking what to call a concept, or deciding on a naming ADR. Writes GLOSSARY.md with one term per concept, the aliases to stop using, and every file where two concepts share one word. Not for pinning down a plan (grill-my-plan)."
    license: MIT (see LICENSE)
    ---
    
    # One word per concept
    
    A glossary keeps people and modules from using different words for the same thing, or the same word for two different things.
    
    ## 1. Read existing docs and code names
    
    - Read `GLOSSARY.md` and `docs/adr/` first if they exist, so you start from decisions already made.
    - Scan the codebase for domain nouns in types, classes, database tables, schemas, routes, and module names.
    - Sort what you find into two lists before defining anything: different words that might mean the same thing, and single words reused across separate modules that might mean different things.
    
    ## 2. Test fuzzy words with a concrete scenario
    
    - For possible synonyms, test whether a real case separates them: can one exist without the other, or change while the other stays the same? If not, they are one concept. Pick one canonical term and mark the rest as aliases to avoid instead of writing separate synonym entries.
    - For one word reused across modules, check its fields and rules in each place. If they describe different things (for example, a person in one module and a financial record in another), give each concept its own term and flag the shared word as a collision.
    
    ## 3. Cross-reference every term with the code
    
    - Search the codebase for each canonical term and each alias you found.
    - Record the files that use the chosen term, the files that still use an alias to avoid, and the exact file path of every collision where one word carries two meanings.
    - When the code behaves differently from how someone describes a term, point to the file and settle which one is right before writing the entry.
    
    ## 4. Update GLOSSARY.md as terms settle
    
    Create or update `GLOSSARY.md` at the repository root as soon as each term settles, rather than waiting until the end. Keep it focused on domain meaning, not implementation specs or scratch notes.
    
    Use one entry per concept:
    
    ```markdown
    ### Canonical term
    
    Plain-English definition of what this concept is and where its boundary sits.
    
    - **Avoid**: alias one, alias two
    - **Code**: `src/path/primary.ts` (alias used in `src/path/legacy.ts`)
    - **Collisions**: `src/other/file.ts` uses "shared word" for [other concept]
    ```
    
    Check `GLOSSARY.md` before finishing:
    
    - Every concept has exactly one entry.
    - Every retired synonym is listed under **Avoid**, not given its own entry.
    - Every word that means two different things names the colliding file path under **Collisions**.
    
    ## 5. Offer an ADR only for hard naming calls
    
    Skip an ADR for routine synonym cleanup. Offer to create an ADR in `docs/adr/` only when all three are true:
    
    - Changing the name later would be costly across code, data, or users.
    - A future reader would wonder why this term was chosen.
    - There were real trade-offs between competing options.
    
    Based on mattpocock/skills (MIT), rewritten by Copybook.
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.