Skip to main content

monolith-database-and-services

Use when working on persistence setup, migrations, and service integrations (like email) that depend on app config and models.

소스 정보

저장소
cggonzal/monolith
최근 소스 활동
2026년 2월 14일 03:11
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
monolith-database-and-services
description
Use when working on persistence setup, migrations, and service integrations (like email) that depend on app config and models.
# Monolith Database and Services ## Use this skill when - Modifying DB initialization or model migration behavior. - Implementing external integrations in `app/services/`. ## Database flow - Initialized by `db.InitDB()`. - Uses GORM with SQLite driver by default. - AutoMigrate runs for registered models at startup. ## Model registration rule Any new model must be included in `db/db.go` AutoMigrate call. The model generator handles this automatically. ## Services pattern - Service code belongs under `app/services/` (e.g., `app/services/email`). - Keep HTTP controllers thin; push external API logic into services. - Source environment settings from `app/config/config.go`. ## Email specifics - Uses `MAILGUN_DOMAIN`, `MAILGUN_API_KEY`, and `MAILGUN_API_BASE`. - Missing mail variables are warned by config init.
GitHub에서 보기