重要规范
SkillDev toolsgf_cms 项目专属技能集(本仓库)。聚焦本项目的目录结构、开发/构建/发布工作流、GoFrame CLI 生成规范,以及常见改造点(新增接口/路由/业务逻辑)。
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the 重要规范 skill
What this skill tells your AI
The instructions your AI receives, as published by demozx/gf_cms in .agents/skills/gf-cms/SKILL.md and read by ahel’s review.
生成代码禁止手改
internal/service/*.go、internal/dao/**、internal/model/{do,entity}/**等带有 "Code generated and maintained by GoFrame CLI tool" 注释的文件,默认视为由gf工具生成维护:不要手动修改。- 需要变更数据结构/表字段时:优先修改数据库结构/生成配置,然后运行
gf gen dao重新生成。
本项目代码分层约定(按仓库现状)
- 入口:
main.go->internal/cmd/cmd.go。 - 路由:
internal/router/*(按 backend/pc/mobile + api/view 分组)。 - 业务实现:
internal/logic/*(每个模块在init()中service.RegisterXxx(New())注册到internal/service/*的接口)。 - 控制器:
internal/controller/**(调用service.*()接口)。
配置与资源
- 本地运行需要
config.yaml;示例模板在manifest/config/config.yaml.example。 gf build/gf docker的行为受config.yaml里的gfcli.build、gfcli.docker配置影响。
使用指南
- 项目技能文档索引:
./references/README.MD - 项目操作示例索引:
./examples/README.MD
Signals
- GitHub stars
- 95
- Forks
- 39
- Last commit
- Mar 2026
Advanced
- Catalog kind
- skill
- Gateway key
gf-cms- Source
- github.com/demozx/gf_cms