मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)81k · #1616

ddd-validate

यह क्या करती है

यह स्किल एक domain-driven कोडबेस की जाँच करती है कि कहीं सीमाएँ तो नहीं टूट रहीं, यानी एक बिज़नेस क्षेत्र दूसरे क्षेत्र की आंतरिक फ़ाइलें तो इम्पोर्ट नहीं कर रहा। जो टीमें अपने कोड की संरचना साफ़ रखना चाहती हैं, उनके लिए यह है।

कब इस्तेमाल करें

  • ✓जब आप बिज़नेस क्षेत्रों के बीच रिसाव के लिए कोडबेस की जाँच करना चाहें।
  • ✓जब आप कई क्षेत्रों को छूने वाला बदलाव मर्ज करने वाले हों।
  • ✓जब आप सीमा की समस्याएँ जल्दी पकड़ने वाली स्वचालित जाँच चाहें।

Skill का लिंक

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ddd/skills/ddd-validate/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ddd/skills/ddd-validate/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे कोडबेस में ऐसा कोड ढूँढिए जो किसी दूसरे क्षेत्र की आंतरिक फ़ाइलों तक पहुँचता हो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल हर बिज़नेस क्षेत्र ढूँढती है, उसकी फ़ाइलों में ऐसे इम्पोर्ट खोजती है जो दूसरे क्षेत्र के आंतरिक फ़ोल्डर में जाते हैं, और entities, इवेंट नामों और repositories की जगह के नियम जाँचती है। फिर हर मिली समस्या की रिपोर्ट देती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Validate domain boundary integrity across all bounded contexts.

Steps

  1. Discover contexts: Scan src/*/domain/ to find all bounded contexts.

  2. Check cross-boundary violations:

    • For each context, scan all .ts files for import statements
    • Flag any import that reaches into another context's domain/ directory directly
    • Allowed: importing from another context's public index.ts (application layer)
    • Violation: importing from src/<other-context>/domain/entities/... directly
    # Find cross-boundary imports
    for ctx in $(find src -maxdepth 2 -name "domain" -type d | sed 's|src/||;s|/domain||'); do
      grep -rn "from ['\"].*src/" "src/$ctx/" --include="*.ts" | grep -v "src/$ctx/" || true
    done
    
  3. Check aggregate invariant enforcement:

    • Scan aggregate root entities for public setters that bypass validation
    • Flag mutable public properties without invariant checks
    • Verify that child entities are not directly accessible (must go through aggregate root)
  4. Check event naming conventions:

    • Domain events should be past-tense named (e.g., OrderCreated, not CreateOrder)
    • Events should be immutable (no public setters)
    • Events should carry the aggregate ID
  5. Check repository patterns:

    • Repository interfaces should exist in domain/repositories/, not infrastructure/
    • Repository implementations should exist in infrastructure/, not domain/
    • Each aggregate root should have exactly one repository
  6. Report findings:

    • Output a table of violations with file path, line number, violation type, and suggestion
    • Categorize as: BOUNDARY, INVARIANT, EVENT, REPOSITORY
    • Exit with summary: total violations, by category, severity
  7. Store results:

    npx @claude-flow/cli@latest memory store --key "ddd-validation-TIMESTAMP" --value "RESULTS_SUMMARY" --namespace tasks
    npx @claude-flow/cli@latest hooks post-task --task-id "ddd-validate" --success true --store-results true
    
अक्सर पूछे जाने वाले सवाल

उल्लंघन किसे माना जाता है?

सीधे दूसरे क्षेत्र के domain फ़ोल्डर में जाने वाला इम्पोर्ट चिह्नित होता है। दूसरे क्षेत्र के सार्वजनिक index से इम्पोर्ट करना मान्य है।

क्या यह समस्याएँ खुद ठीक करती है?

इसके चरण समस्याएँ ढूँढने और रिपोर्ट करने पर केंद्रित हैं, इसलिए रिपोर्ट देखकर आप तय करें कि क्या बदलना है।

इवेंट के लिए कौन सा नामकरण नियम है?

domain इवेंट भूतकाल में नाम पाने चाहिए, जैसे CreateOrder नहीं बल्कि OrderCreated।

जानकारी

लेखक का मूल विवरण

Validate domain boundaries -- detect cross-context import violations and aggregate invariant issues. Use when auditing a DDD codebase for leaks between bounded contexts, before merging cross-cutting changes, or as a CI gate to catch boundary erosion early.

repo: ruvnet/ruflo

लोकप्रियता

GitHub स्टार
81k
रैंकिंग में स्थान
#1616
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

agent-adaptive-coordinator

81k

आपके एजेंट को काम बदलने पर AI एजेंटों के समूह को बाँटने और फिर से संतुलित करने में मदद करती है, और काम के हिसाब से लेआउट चुनती है।

AI और एजेंटएजेंट

agent-agent

81k

आपके एजेंट को बड़े लक्ष्य को क्रमबद्ध कार्यों की योजना में बदलना सिखाती है, और स्थिति बदलने पर योजना फिर से बनाना भी।

AI और एजेंटएजेंट

agent-agentic-payments

81k

AI खरीदारी के लिए खर्च के आदेश मैनेज करने में मदद करती है, जिसमें खर्च की सीमा, समय अवधि, व्यापारी नियम और signed मंज़ूरियाँ शामिल हैं।

AI और एजेंटएजेंट

agent-analyze-code-quality

81k

आपके एजेंट को कोड की गुणवत्ता जाँचने में मदद करती है, बिना फ़ाइलें बदले code smells, technical debt और refactoring के सुझाव खोजकर।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills