Skip to main content

monolith-generator-workflows

Use when adding app features via the built-in generator (model/controller/resource/authentication/job/admin), including expected file mutations and post-generation validation.

소스 정보

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

설치 방법

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

소스 파일 검토

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

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
monolith-generator-workflows
description
Use when adding app features via the built-in generator (model/controller/resource/authentication/job/admin), including expected file mutations and post-generation validation.
# Monolith Generator Workflows ## Use this skill when - You need to scaffold features quickly and safely. - You need to know all supported generator subcommands. ## Generator surface `make generator <command> [args]` Supported commands: - `model` - `controller` - `resource` - `authentication` - `job` - `admin` ## Behavior summary - `model`: creates model + model test; updates `db/db.go` AutoMigrate. - `controller`: creates controller + controller test + views; optionally injects routes. - `resource`: combines `model` + pluralized controller with full CRUD actions. - `authentication`: scaffolds user model, session helpers, auth middleware/controller/templates/routes. - `job`: creates job file + test, updates job enum and queue registration. - `admin`: scaffolds dashboard/middleware/routes, and auto-runs auth generation if `User` model is missing. ## Safe scaffolding checklist 1. Run generator command. 2. Inspect modified files for route collisions/import order. 3. Fill TODO placeholders in generated handlers/jobs. 4. Run `gofmt` if needed and `go test ./...`. 5. Start app and manually hit generated routes. ## Practical patterns - Greenfield CRUD: `make generator resource post title:string body:string` - Existing model + UI: `make generator controller posts index show new create edit update destroy` - Async task: `make generator job SendDigest` - Auth bootstrap: `make generator authentication` - Admin/profiling: `make generator admin`
GitHub에서 보기