一键导入
degg-generator
Generator guidance for declaration parsing, validation, enum template output, examples, and generated Go formatting in degg.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generator guidance for declaration parsing, validation, enum template output, examples, and generated Go formatting in degg.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Local development workflow for degg. Use when orienting in the workspace, choosing just/go/GoReleaser commands, or validating general changes.
Release guidance for GoReleaser, GitHub Actions release tags, binary archives, Devbox tooling, and CLI version metadata in degg.
| name | degg-generator |
| description | Generator guidance for declaration parsing, validation, enum template output, examples, and generated Go formatting in degg. |
Use this skill when changing declaration semantics, validation, generated code, templates, or examples.
Supported inputs are YAML and JSON. A declaration must include:
namepackagetypevalues or named-valuesThe supported enum types are string and int.
Generation is coordinated by cmd/degg/main.go:
internal/generator.go/format.Keep generated helper names and error behavior stable unless the task explicitly changes the public generated API.
Template output lives under internal/generator/templates/. The example
directories under examples/ should represent real generated output. When the
template changes, update tests first and refresh examples only when their
behavior is intentionally changed.
FromName behavior is user-facing.named-values for int must remain parseable as integers.Run:
go test ./...
just run degg -- -i examples/color/color.yml -o /tmp/color_enum.go