galaxy-dawn avatar

Architecture Design

This is a highly opinionated architectural guide for ML projects that use factory and registry patterns. It's built around a specific template structure with Hydra configs, and it's very explicit about when to invoke it: only when you're creating new registrable components with decorators like @register_model or @register_dataset. The skill includes concrete patterns for auto-importing modules, config-driven model initialization (models take only a cfg parameter, never individual args), and a standardized directory layout separating data_module, model_module, and trainer_module. It's useful if you're working in this exact architectural style, but it's narrow by design. The "when not to use" section is longer than most skills, which tells you everything about its intended scope.

skills.sh installs
387
GitHub stars
6K
last updated
Aug 21, 2026

Install

$ npx -y skills add galaxy-dawn/claude-scholar --skill architecture-design --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/galaxy-dawn/claude-scholar
Categories
Code Review & Quality, Data Science & ML, Design & UI/UX
First seen
Jun 3, 2026

More from galaxy-dawn/claude-scholar

All 28
1levnikolaevich avatarln-740-quality-setuplevnikolaevich/claude-code-skillsSets up linters, pre-commit hooks, and test infrastructure. Use when adding code quality tooling to a project.372skills.sh installs
2sickn33 avatarseo-structure-architectsickn33/antigravity-awesome-skillsseo structure architect366skills.sh installs
3davila7 avatarcodex-reviewdavila7/claude-code-templatesProfessional code review with auto CHANGELOG generation, integrated with Codex AI365skills.sh installs
4decebals avatartest-qualitydecebals/claude-code-javaWrite high-quality JUnit 5 tests with AssertJ assertions. Use when user says "add tests", "write tests", "improve test coverage", or when reviewing/creating tes336skills.sh installs
5krutikjain avatarandroid-architecture-cleankrutikjain/android-agent-skillsApply clean architecture boundaries, use cases, repositories, and lifecycle-aware presentation models in Android projects.331skills.sh installs
6block avatarcode-reviewblock/agent-skillsComprehensive code review checklist for pull requests325skills.sh installs