
Description
goframe-v2 is an agent skill for developing Go projects that use GoFrame v2. It should be used only when the project uses GoFrame v2, or is explicitly adopting it: the nearest go.mod has to require github.com/gogf/gf/v2. For full projects such as HTTP or microservices, the skill tells the agent to install the GoFrame CLI and create the scaffold with gf init. It sets strict conventions. Auto-generated dao, do and entity files must not be created or edited by hand. Business logic goes in the service directory, not logic, unless you ask otherwise. Before creating a new method or variable, the agent must check whether one already exists and reuse it. Errors are handled with the gerror component so stack traces are kept. Database operations use DO objects from internal/model/do rather than g.Map or plain maps, because unset DO fields are ignored by the ORM. The skill points to reference examples for an HTTP service and a gRPC service, and it asks the agent to prefer GoFrame's built-in components when exploring new ones. It is aimed at Go developers building services on the GoFrame framework who want an agent that follows its project layout and ORM rules. Install it with npx skills add https://github.com/gogf/skills --skill goframe-v2.…
Highlights
- Applies only to projects that require gf/v2
- Scaffolding with the gf init command
- Rules for generated dao, do and entity files
- Error handling with gerror and DO-based database writes
- Reference examples for HTTP and gRPC services
Ratings & Reviews
No ratings yet
Be the first to rate goframe-v2.
People also visit

modern-go-guidelines
Enhances Claude Code with modern Go guidelines up to go 1.26 version
goframe-v2 FAQ
When should this skill be used?
Only when the Go project uses GoFrame v2, or is adopting it, with github.com/gogf/gf/v2 required in the nearest go.mod.
How do I start a new project?
For a full HTTP or microservice project, install the GoFrame CLI and run gf init to create the scaffolding.
Which files must not be edited by hand?
The auto-generated dao, do and entity files, per the GoFrame conventions in the skill.
Where does business logic go?
In the service directory. The logic directory is not used unless you ask for it.
How should database writes be done?
With DO objects from internal/model/do, not g.Map or map[string]interface{}. Unset DO fields are ignored by the ORM.
How do I install it?
Run npx skills add https://github.com/gogf/skills --skill goframe-v2.
What were the security audit results?
Gen Agent Trust Hub: Warn. Socket: Warn. Snyk: Pass.
What are the best goframe-v2 alternatives?
Popular alternatives to goframe-v2 include golang-design-patterns, golang-project-layout and golang-popular-libraries. See all goframe-v2 alternatives








