मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग6.0k · #14479

architecture-design

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

यह स्किल machine learning प्रोजेक्ट के लिए एक मॉड्यूलर कोड ढाँचा समझाती है, जो factories और registries पर आधारित है। यह उन ML डेवलपर के लिए है जो प्रोजेक्ट में नए datasets, models या दूसरे जोड़े जा सकने वाले हिस्से जोड़ते हैं।

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

  • ✓जब आप ऐसा नया dataset या model class बना रहे हों जिसे रजिस्टर करना हो।
  • ✓जब आप ML प्रोजेक्ट में factory जोड़ने वाला नया module folder बना रहे हों।
  • ✓जब आप शुरू से ML प्रोजेक्ट बना रहे हों और उसकी साफ़ संरचना चाहते हों।

Skill का लिंक

https://github.com/Galaxy-Dawn/claude-scholar/blob/main/skills/architecture-design/SKILL.md

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

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

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

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

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

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

“मेरे ML प्रोजेक्ट में हमारे factory पैटर्न के अनुसार एक नया रजिस्टर्ड dataset class जोड़िए।”

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

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

एजेंट प्रोजेक्ट के पैटर्न का पालन करता है, एक registration decorator जोड़ता है, और नए component को module की factory से जोड़ता है। सरल fixes और छोटे बदलावों के लिए यह पैटर्न छोड़ देता है।

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

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

Architecture Design - ML Project Template

This skill defines the standard code architecture for machine learning projects based on the template structure. When modifying or extending code, follow these patterns to maintain consistency.

Overview

The project follows a modular, extensible architecture with clear separation of concerns. Each module (data, model, trainer, analysis) is independently organized using factory and registry patterns for maximum flexibility.

When to Use

Use this skill when:

  • Creating a new Dataset class that needs @register_dataset
  • Creating a new Model class that needs @register_model
  • Creating a new module directory with __init__.py factory wiring
  • Initializing a new ML project structure from scratch
  • Adding new component types such as Augmentation, CollateFunction, or Metrics

When Not to Use

Do not use this skill when:

  • Modifying existing functions or methods
  • Fixing bugs in existing code
  • Adding helper functions or utilities
  • Refactoring without adding new registrable components
  • Making simple code changes to a single file
  • Modifying configuration files
  • Reading or understanding existing code

Key indicator: if the task does not require a @register_* decorator or a Factory pattern, skip this skill.

Core Design Patterns

Factory Pattern

Each module uses a factory to create instances dynamically:

# Example from data_module/dataset/__init__.py
DATASET_FACTORY: Dict = {}

def DatasetFactory(data_name: str):
    dataset = DATASET_FACTORY.get(data_name, None)
    if dataset is None:
        print(f"{data_name} dataset is not implementation, use simple dataset")
        dataset = DATASET_FACTORY.get('simple')
    return dataset

For detailed guidance, refer to references/factory_pattern.md.

Registry Pattern

Components register themselves via decorators:

# Example from data_module/dataset/simple_dataset.py
@register_dataset("simple")
class SimpleDataset(Dataset):
    def __init__(self, data):
        self.data = data

For detailed guidance, refer to references/registry_pattern.md.

Auto-Import Pattern

Modules automatically discover and import submodules:

# Example from data_module/dataset/__init__.py
models_dir = os.path.dirname(__file__)
import_modules(models_dir, "src.data_module.dataset")

For detailed guidance, refer to references/auto_import.md.

Directory Structure

project/
├── run/
│   ├── pipeline/            # Main workflow scripts
│   │   ├── training/        # Training pipelines
│   │   ├── prepare_data/    # Data preparation pipelines
│   │   └── analysis/        # Analysis pipelines
│   └── conf/                # Hydra configuration files
│       ├── training/        # Training configs
│       ├── dataset/         # Dataset configs
│       ├── model/           # Model configs
│       ├── prepare_data/    # Data prep configs
│       └── analysis/        # Analysis configs
│
├── src/
│   ├── data_module/         # Data processing module
│   │   ├── dataset/         # Dataset implementations
│   │   ├── augmentation/    # Data augmentation
│   │   ├── collate_fn/      # Collate functions
│   │   ├── compute_metrics/ # Metrics computation
│   │   ├── prepare_data/    # Data preparation logic
│   │   ├── data_func/       # Data utility functions
│   │   └── utils.py         # Module-specific utilities
│   │
│   ├── model_module/        # Model implementations
│   │   ├── brain_decoder/   # Brain decoder models
│   │   └── model/           # Alternative model location
│   │
│   ├── trainer_module/      # Training logic
│   ├── analysis_module/     # Analysis and evaluation
│   ├── llm/                 # LLM-related code
│   └── utils/               # Shared utilities
│
├── data/
│   ├── raw/                 # Original, immutable data
│   ├── processed/           # Cleaned, transformed data
│   └── external/            # Third-party data
│
├── outputs/
│   ├── logs/                # Training and evaluation logs
│   ├── checkpoints/         # Model checkpoints
│   ├── tables/              # Result tables
│   └── figures/             # Plots and visualizations
│
├── pyproject.toml           # Project configuration
├── uv.lock                  # Dependency lock file
├── TODO.md                  # Task tracking
├── README.md                # Project documentation
└── .gitignore               # Git ignore rules

For detailed directory structure with file descriptions, refer to `r

अक्सर पूछे जाने वाले सवाल

मुझे इसका उपयोग कब नहीं करना चाहिए?

bug fixes, छोटे helper functions और config बदलावों के लिए इसे छोड़ दें, जहाँ कोई registered component नहीं जुड़ता।

registry क्या होती है?

यह एक lookup सूची है जिसमें components खुद को रजिस्टर करते हैं, ताकि factory उन्हें नाम से बना सके।

क्या यह दूसरे component प्रकार भी कवर करती है?

हाँ। यह augmentation, collate functions और metrics जैसे दूसरे प्रकारों का भी ज़िक्र करती है।

जानकारी

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

Use only when creating new registrable ML components that require Factory or Registry patterns.

repo: Galaxy-Dawn/claude-scholar

लोकप्रियता

GitHub स्टार
6.0k
रैंकिंग में स्थान
#14479
लाइसेंस
MIT
अपडेट की गई
19/10/2026

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

0

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

कमेंट

  • …

इस repository की और skills

agent-identifier

6.0k

यह आपके एजेंट को Claude Code agents बनाना सिखाती है, उनका नाम, trigger विवरण, system prompt और settings सही ढंग से लिखकर।

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

bug-detective

6.0k

यह आपके एजेंट को कोड की गलतियाँ ढूँढने और ठीक करने में मदद करती है, एक साफ़ तरीके से: समस्या समझना, सबूत जुटाना, विचार जाँचना और सुधार को परखना।

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

citation-verification

6.0k

यह आपके एजेंट को शैक्षणिक पेपर के हर citation को भरोसेमंद स्रोतों से मिलाना सिखाती है, ताकि नकली या गलत संदर्भ पकड़े जाएँ।

लेखन और डॉक्यूमेंटरिसर्च

code-review-excellence

6.0k

यह आपके एजेंट को code changes और pull requests की समीक्षा करने में मदद करती है, साफ़, विनम्र और प्राथमिकता वाली टिप्पणियों के साथ जो असली bugs पकड़ें।

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

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