domain-modeling

द्वारा mattpocock

किसी प्रोजेक्ट के डोमेन मॉडल को बनाएं और तेज करें। इसका उपयोग तब करें जब उपयोगकर्ता डोमेन शब्दावली या एक सर्वव्यापी भाषा को स्थापित करना चाहता है, कोई आर्किटेक्चरल निर्णय रिकॉर्ड करना चाहता है, या जब किसी अन्य कौशल को डोमेन मॉडल बनाए रखने की आवश्यकता हो।

npx skills add https://github.com/mattpocock/skills --skill domain-modeling

Domain Modeling

Actively build and sharpen the project's domain model as you design. This is the active discipline — 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, not just consuming it.)

File structure

Most repos have a single context:

/
├── CONTEXT.md
├── docs/
│   └── adr/
│       ├── 0001-event-sourced-orders.md
│       └── 0002-postgres-for-write-model.md
└── src/

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

/
├── CONTEXT-MAP.md
├── docs/
│   └── adr/                          ← system-wide decisions
├── src/
│   ├── ordering/
│   │   ├── CONTEXT.md
│   │   └── docs/adr/                 ← context-specific decisions
│   └── billing/
│       ├── CONTEXT.md
│       └── docs/adr/

Create files lazily — only when you have something to write. If no CONTEXT.md exists, create one when the first term is resolved. If no docs/adr/ exists, create it when the first ADR is needed.

During the session

Challenge against the glossary

When the user uses a term that conflicts with the existing language in CONTEXT.md, call it out immediately. "Your glossary defines 'cancellation' as X, but you seem to mean Y — which is it?"

Sharpen fuzzy language

When the user uses vague or overloaded terms, propose a precise canonical term. "You're saying 'account' — do you mean the Customer or the User? Those are different things."

Discuss concrete scenarios

When domain relationships are being discussed, stress-test them with specific scenarios. Invent scenarios that probe edge cases and force the user to be precise about the boundaries between concepts.

Cross-reference with code

When the user states how something works, check whether the code agrees. If you find a contradiction, surface it: "Your code cancels entire Orders, but you just said partial cancellation is possible — which is right?"

Update CONTEXT.md inline

When a term is resolved, update CONTEXT.md right there. Don't batch these up — capture them as they happen. Use the format in CONTEXT-FORMAT.md.

CONTEXT.md should be totally devoid of implementation details. Do not treat CONTEXT.md as a spec, a scratch pad, or a repository for implementation decisions. It is a glossary and nothing else.

Offer ADRs sparingly

Only offer to create an ADR when all three are true:

  1. Hard to reverse — the cost of changing your mind later is meaningful
  2. Surprising without context — a future reader will wonder "why did they do it this way?"
  3. The result of a real trade-off — there were genuine alternatives and you picked one for specific reasons

If any of the three is missing, skip the ADR. Use the format in ADR-FORMAT.md.

mattpocock की और Skills

improve-codebase-architecture
mattpocock
कोडबेस में गहन अवसर खोजें, जो CONTEXT.md में डोमेन भाषा और docs/adr/ में निर्णयों से प्रेरित हो। इसका उपयोग तब करें जब उपयोगकर्ता आर्किटेक्चर में सुधार करना चाहता हो, रीफैक्टरिंग के अवसर खोजना चाहता हो, कसकर जुड़े मॉड्यूल को समेकित करना चाहता हो, या कोडबेस को अधिक परीक्षण योग्य और AI-नेविगेट करने योग्य बनाना चाहता हो।
developmentcode-reviewapi
tdd
mattpocock
लाल-हरा-पुनर्संरचना चक्र के साथ परीक्षण-संचालित विकास। इसका उपयोग तब करें जब उपयोगकर्ता TDD का उपयोग करके सुविधाएँ बनाना या बग ठीक करना चाहता है, "लाल-हरा-पुनर्संरचना" का उल्लेख करता है, एकीकरण परीक्षण चाहता है, या परीक्षण-प्रथम विकास के लिए पूछता है।
developmenttesting
handoff
mattpocock
वर्तमान वार्तालाप को संक्षिप्त करके एक हैंडऑफ दस्तावेज़ तैयार करें, जिसे कोई अन्य एजेंट आगे ले सके।
communicationproject-managementdocument
prototype
mattpocock
एक प्रयोगात्मक प्रोटोटाइप बनाएं ताकि डिज़ाइन को अंतिम रूप देने से पहले उसे विकसित किया जा सके। दो शाखाओं के बीच मार्ग बनाएं — एक चलाने योग्य टर्मिनल ऐप जो स्थिति/व्यावसायिक-तर्क प्रश्नों के लिए हो, या एक मार्ग से टॉगल करने योग्य कई मौलिक रूप से भिन्न UI विविधताएँ। इसका उपयोग तब करें जब उपयोगकर्ता प्रोटोटाइप बनाना चाहता है, डेटा मॉडल या स्टेट मशीन की जाँच करना चाहता है,
developmentdesigncreative
triage
mattpocock
ट्राइएज भूमिकाओं द्वारा संचालित स्टेट मशीन के माध्यम से मुद्दों का ट्राइएज करें। उपयोग तब करें जब उपयोगकर्ता कोई मुद्दा बनाना चाहता हो, मुद्दों का ट्राइएज करना चाहता हो, आने वाले बग या फीचर अनुरोधों की समीक्षा करनी हो, AFK एजेंट के लिए मुद्दे तैयार करने हों, या मुद्दा वर्कफ़्लो प्रबंधित करना हो।
developmentproject-managementcommunication
obsidian-vault
mattpocock
ऑब्सिडियन वॉल्ट में विकिलिंक और इंडेक्स नोट्स के साथ नोट्स खोजें, बनाएं और प्रबंधित करें। जब उपयोगकर्ता ऑब्सिडियन में नोट्स ढूंढना, बनाना या व्यवस्थित करना चाहे तब उपयोग करें।
productivitydocument
edit-article
mattpocock
लेखों के अनुभागों को पुनर्गठित करके, स्पष्टता में सुधार करके और गद्य को संक्षिप्त बनाकर उन्हें संपादित और बेहतर बनाएं। इसका उपयोग तब करें जब उपयोगकर्ता किसी लेख के मसौदे को संपादित, संशोधित या बेहतर बनाना चाहता हो।
documentcreative
writing-great-skills
mattpocock
कौशल को अच्छी तरह लिखने और संपादित करने का संदर्भ — वह शब्दावली और सिद्धांत जो कौशल को पूर्वानुमेय बनाते हैं।
documentdevelopment