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.

Ir para a instalação

Informações da origem

Repositório
cggonzal/monolith
Última atividade na origem
14 de fevereiro de 2026 às 03:11
Idioma detectado do SKILL.md
inglês
Estrelas
0
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
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`
Ver no GitHub