원클릭으로
go-project-conventions
Code conventions including error handling, imports, linting, common commands, and workflows
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Code conventions including error handling, imports, linting, common commands, and workflows
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
This skill should be used when the user asks to generate or process images. Activates with phrases like generate image, create icon, make logo, design illustration, cut image, remove background. Provides image generation and processing capabilities via ComfyUI through n8n workflow service.
This skill should be used when the user asks to convert text to speech, generate audio, create TTS voice, or do voice synthesis. Activates with phrases like 语音合成, TTS, 文字转语音, 生成语音, 配音, 朗读. Provides text formatting, text splitting, TTS generation, and audio merging workflow.
Transform text content into professional Mermaid diagrams for presentations and documentation. Use when users ask to visualize concepts, create flowcharts, or make diagrams from text. Supports process flows, system architectures, comparisons, mindmaps, and more with built-in syntax error prevention.
This skill should be used when the user asks to understand new concepts or technologies. Activates with phrases like explain, teach, learn, concept, technology, how to, what is, understanding, tutorial, guide. Provides structured 5-step explanations following Problem-Based Learning principles: Scenario, Limitation, Concept, Core Mechanics, Implementation. Uses storytelling approach to create complete "problem-exploration-answer" cognitive loop with practical examples and code samples.
Automatically save chat conversations to individual markdown files with unique filenames containing timestamps. Each conversation is saved to /Users/pix/dev/code/ai/pixai/chat-history directory. Use when user wants to preserve chat history, save conversation logs, or maintain a record of discussions.
Automatically save chat conversations to individual markdown files with unique filenames containing timestamps. Each conversation is saved to /Users/pix/dev/code/ai/pixai/chat-history directory. Use when user wants to preserve chat history, save conversation logs, or maintain a record of discussions.
| name | go-project-conventions |
| description | Code conventions including error handling, imports, linting, common commands, and workflows |
errors.Wrap(err, "context") from github.com/pkg/errorsstatus.Errorf(codes.NotFound, "message") for gRPC errorsconnect.NewError(connect.Code, err) for Connect RPC errorsfmt.Errorf, ioutil.ReadDirimport (
// stdlib
"context"
"fmt"
"net/http"
"time"
// third-party
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/pkg/errors"
"connectrpc.com/connect"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
// local - use your project path
"github.com/usememos/memos/internal/profile"
"github.com/usememos/memos/server"
"github.com/usememos/memos/server/auth"
"github.com/usememos/memos/store"
)
goimports -w .golangci-lint (.golangci.yaml)goimports# Dev server
go run ./cmd/memos --mode dev --port 8081
# Tests
go test ./...
go test -run TestName ./path/...
go test -cover ./...
# Lint & Format
golangci-lint run
goimports -w .
# Proto
cd proto && buf generate && buf lint
proto/api/v1/{service}_service.proto
google.api.http annotationcd proto && buf generateserver/router/api/v1/{service}_service.go
server/router/api/v1/v1.go
v1pb.Register{Service}Server{Service}HandlerFromEndpointacl_config.go if public endpointweb/src/hooks/store/migration/{driver}/{version}/NN__description.sqlstore/migration/{driver}/LATEST.sqlstore/driver.go interfacestore/db/{driver}/*.gostore/store.go if caching neededstore/{model}.go# SQLite (default)
DRIVER=sqlite go test ./...
# MySQL
DRIVER=mysql DSN="user:pass@tcp(localhost:3306)/memos" go test ./...
# PostgreSQL
DRIVER=postgres DSN="postgres://user:pass@localhost:5432/memos?sslmode=disable" go test ./...