Install
npx skills add https://github.com/mattpocock/skills --skill domain-modelingGLOSSARY.md Format
Structure
Rules
- Be opinionated. When multiple words exist for the same concept, pick the best one and list the others under
_Avoid_. - Keep definitions tight. One or two sentences max. Define what it IS, not what it does.
- Only include terms specific to this project's context. General programming concepts (timeouts, error types, utility patterns) don't belong even if the project uses them extensively. Before adding a term, ask: is this a concept unique to this context, or a general programming concept? Only the former belongs.
- Group terms under subheadings when natural clusters emerge. If all terms belong to a single cohesive area, a flat list is fine.
Single vs multi-context repos
Single context (most repos): One GLOSSARY.md at the repo root.
Multiple contexts: A GLOSSARY-MAP.md at the repo root lists the contexts, where they live, and how they relate to each other:
The skill infers which structure applies:
- If
GLOSSARY-MAP.mdexists, read it to find contexts - If only a root
GLOSSARY.mdexists, single context - If neither exists, create a root
GLOSSARY.mdlazily when the first term is resolved
When multiple contexts exist, infer which one the current topic relates to. If unclear, ask.