goframe-v2

Enforce GoFrame v2 development standards for HTTP and microservice projects.

17|7|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/gqcn/openspec-practice --skill goframe-v2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: goframe-v2
Source: https://github.com/gqcn/openspec-practice/tree/main/.agents/skills/goframe-v2
Command: npx skills add https://github.com/gqcn/openspec-practice --skill goframe-v2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

GoFrame v2 development skillset codifies standard conventions and tooling to accelerate building robust HTTP/microservice projects, ensuring consistent setup and maintenance across teams.

Core Features & Use Cases

  • Project scaffolding: use gf init to create standardized GoFrame v2 projects for HTTP services and microservices.
  • Code generation: rely on DO/DAO/Entity generation to enforce data access patterns and reduce boilerplate.
  • Conventions for business logic: implement business logic in service layers instead of logic/ directories; reuse built-in components and best practices.
  • Reference examples: study concrete patterns from example projects like user-http-service and user-grpc-service to accelerate adoption.

Quick Start

Run gf init to scaffold a GoFrame v2 HTTP/microservice project and begin implementing business logic in the service layer, following the conventions.

Frequently Asked Questions about goframe-v2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a GoFrame v2 HTTP or microservice project?

You can scaffold a standardized GoFrame v2 HTTP or microservice project by running the gf init command. This creates the prescribed directory structure and foundational files needed to begin implementing business logic immediately.

Where should I place business logic when building a GoFrame v2 application?

When building a GoFrame v2 application, you should implement business logic in service layers rather than the logic/ directory. Following this convention ensures consistent architecture and proper separation of concerns across teams.

How does code generation work for data access in GoFrame v2?

Code generation in GoFrame v2 automatically produces DO, DAO, and Entity files to enforce data access patterns and reduce boilerplate. Generated files are auto-synced, and you should not edit them manually unless explicitly requested.

Can I use GoFrame v2 for both HTTP services and gRPC microservices?

Yes, GoFrame v2 supports building both HTTP services and gRPC microservices. You can reference concrete patterns from example projects like user-http-service and user-grpc-service to accelerate adoption for either protocol.

What are the conventions for maintaining time fields in a GoFrame v2 project?

GoFrame v2 prescribes specific time maintenance conventions to ensure consistent time handling across your application. These standards are enforced alongside directory structure and code generation rules to maintain project robustness.