跳到正文
cccskills
免费在 GitHub 公开

go-pro-max

Go development intelligence. 12 domains, 10 stacks, 300+ entries. Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check Go code. Domains: pattern, package, error, perf, test, concurrency, interface, arch, idiom, anti, tooling, module. Stacks: web-gin, web-echo, web-fiber, web-stdlib, cli, grpc, database, microservice, cloud-native, data-pipeline. Integrations: arch_system generator.

中文简介正在准备中。当前显示原文说明。

集成工具DockerPostgreSQL
查看安装方法

包含的文件(35)

  • SKILL.md6.1 KB
  • data/anti-patterns.csv24.2 KB
  • data/architecture.csv21.5 KB
  • data/concurrency.csv27.5 KB
  • data/error-handling.csv16.9 KB
  • data/go-reasoning.csv19.5 KB
  • data/idioms.csv19.1 KB
  • data/interfaces.csv32.7 KB
  • data/modules.csv7.9 KB
  • data/packages.csv8.3 KB
  • data/patterns.csv27.1 KB
  • data/performance.csv28.5 KB
  • data/stacks/auth.csv31.0 KB
  • data/stacks/cli.csv30.4 KB
  • data/stacks/cloud-native.csv24.8 KB
  • data/stacks/data-pipeline.csv27.9 KB
  • data/stacks/database.csv20.1 KB
  • data/stacks/grpc.csv38.5 KB
  • data/stacks/microservice.csv25.6 KB
  • data/stacks/web-echo.csv18.8 KB
  • data/stacks/web-fiber.csv17.6 KB
  • data/stacks/web-gin.csv25.3 KB
  • data/stacks/web-stdlib.csv22.6 KB
  • data/testing.csv21.1 KB
  • data/tooling.csv8.0 KB
  • scripts/arch_system.py11.9 KB
  • scripts/core.py13.7 KB
  • scripts/search.py5.1 KB
  • templates/base/quick-reference.md2.7 KB
  • templates/base/skill-content.md3.3 KB
  • templates/platforms/antigravity-skill.md6.0 KB
  • templates/platforms/antigravity.json1.3 KB
  • templates/platforms/claude.json941 B
  • templates/platforms/cursor.json953 B
  • templates/platforms/windsurf.json967 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Go Pro Max - Backend Generator

When User Requests Go Work

Follow this workflow for every Go-related task:

1. Analyze Requirements

Extract from the user's request:

  • Project type: REST API, CLI, microservice, library, serverless
  • Domain: web, database, gRPC, messaging
  • Constraints: stdlib only? specific framework? Kubernetes?
  • Scale: small project, enterprise, library

Default Stack (always use unless user specifies otherwise)

ComponentDefaultPackage
DatabasePostgreSQLgithub.com/lib/pq
RouterChi v5github.com/go-chi/chi/v5
AuthJWTgithub.com/golang-jwt/jwt/v5
Querydatabase/sqlstdlib
MigrationRaw SQL filesmigrations/*.sql
ConfigENV varsos.LookupEnv
DeployDocker ComposeDockerfile + docker-compose.yml

Project structure: Domain-driven layout:

cmd/api/main.go
internal/config/       — env config
internal/domain/       — structs + request types
internal/handler/      — HTTP handlers (Chi)
internal/service/      — business logic
internal/repository/   — PostgreSQL queries
internal/middleware/    — auth, cors, logger
migrations/            — SQL migration files

2. Generate Architecture System (REQUIRED for new projects)

python3 skills/go/scripts/search.py "<project description>" --arch-system -p "ProjectName"

This gives you: architecture, packages, error strategy, patterns, structure, testing approach.

3. Supplement with Domain Searches

Based on the project needs, search relevant domains:

# Patterns for the task
python3 skills/go/scripts/search.py "functional options config" --domain pattern

# Error handling approach
python3 skills/go/scripts/search.py "error wrapping context" --domain error

# Concurrency patterns
python3 skills/go/scripts/search.py "worker pool bounded" --domain concurrency

# Performance tips
python3 skills/go/scripts/search.py "http connection pooling" --domain perf

# Testing patterns
python3 skills/go/scripts/search.py "table driven httptest" --domain test

4. Stack Guidelines

If using a specific framework/stack:

python3 skills/go/scripts/search.py "middleware authentication" --stack web-gin
python3 skills/go/scripts/search.py "cobra subcommands config" --stack cli
python3 skills/go/scripts/search.py "interceptor logging" --stack grpc

5. Implement

Apply all recommendations from the search results:

  • Use recommended architecture and project structure
  • Apply patterns (Functional Options, Repository Interface, etc.)
  • Follow error handling strategy
  • Implement proper concurrency patterns
  • Add tests following testing strategy

6. Always Generate Docker Files

Every project MUST include these files:

Dockerfile (multi-stage build):

FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /bin/api ./cmd/api

FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata
COPY --from=builder /bin/api /bin/api
COPY migrations/ /app/migrations/
EXPOSE 8080
CMD ["/bin/api"]

docker-compose.yml (API + PostgreSQL):

services:
  api:
    build: .
    ports:
      - "8080:8080"
    environment:
      - DATABASE_URL=postgres://postgres:postgres@db:5432/appdb?sslmode=disable
      - JWT_SECRET=change-me
      - PORT=8080
    depends_on:
      db:
        condition: service_healthy
  db:
    image: postgres:16-alpine
    ports:
      - "5432:5432"
    environment:
      POSTGRES_DB: appdb
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
    volumes:
      - pgdata:/var/lib/postgresql/data
      - ./migrations:/docker-entrypoint-initdb.d
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 5s
      timeout: 5s
      retries: 5
volumes:
  pgdata:

Makefile (must include):

dev:
	go run ./cmd/api
build:
	go build -o bin/api ./cmd/api
test:
	go test -race -cover ./...
docker-up:
	docker-compose up -d --build
docker-down:
	docker-compose down

Pre-Delivery Checklist

Before delivering Go code, verify:

  • go vet ./... passes
  • golangci-lint run passes
  • go test -race ./... passes
  • No goroutine leaks (all goroutines have shutdown path)
  • All errors handled (no _ = f())
  • Context propagated through all layers
  • http.Response.Body closed with defer
  • Exported types have doc comments
  • No global mutable state
  • Interfaces defined at consumer, not provider
  • Struct fields ordered for alignment (largest to smallest)
  • strings.Builder used instead of + concatenation in loops
  • Database connections properly pooled and closed
  • Graceful shutdown implemented for servers

Quick Domain Reference

DomainWhen to Search
patternNeed a design pattern (options, factory, middleware, pipeline)
packageChoosing a library/package for a use case
errorError handling strategy, wrapping, custom errors
perfPerformance optimization, profiling, allocation
testTesting approach, mocking, benchmarks
concurrencyGoroutines, channels, sync primitives
interfaceInterface design, composition, contracts
archProject structure, architecture decisions
idiomGo conventions, naming, style
antiAvoiding common mistakes
toolingGo tools, linting, profiling
moduleGo modules, versioning, dependencies

Resources

  • scripts/: BM25 search engine, architecture system generator
  • data/: 12 domains and 10 stacks with 300+ curated Go entries

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Mobile development intelligence. 12 domains, 9 stacks, 250+ entries. Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check mobile code. Domains: pattern, package, error, perf, test, security, interface, arch, idiom, anti, tooling, dependency. Stacks: flutter, react-native, swiftui, jetpack-compose, kotlin-multiplatform, capacitor, expo, native-ios, native-android. Integrations: arch_system generator.

中文简介正在准备中。当前显示原文说明。

vurakit/agentup562026年3月12日 更新

Node.js & TypeScript development intelligence. 12 domains, 12 stacks, 300+ entries. Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check Node code. Domains: pattern, package, error, perf, test, async, arch, idiom, anti, tooling, module, typescript. Stacks: web-express, web-fastify, web-hono, web-nestjs, web-nextjs, web-remix, orm-prisma, orm-drizzle, auth, database, realtime, graphql. Integrations: arch_system generator.

中文简介正在准备中。当前显示原文说明。

vurakit/agentup562026年3月12日 更新

PHP development intelligence. 12 domains, 8 stacks, 300+ entries. Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check PHP code. Domains: pattern, package, error, perf, test, security, interface, arch, idiom, anti, tooling, dependency. Stacks: laravel, symfony, codeigniter, slim, api-platform, livewire, database, queue. Integrations: arch_system generator.

中文简介正在准备中。当前显示原文说明。

vurakit/agentup562026年3月12日 更新

Rust development intelligence. 14 domains, 11 stacks, 300+ entries. Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check Rust code. Domains: pattern, crate, error, perf, test, concurrency, traits, arch, idiom, anti, tooling, module, unsafe. Stacks: web-axum, web-actix, web-rocket, web-warp, cli, grpc, database, async-runtime, auth, wasm, embedded. Integrations: arch_system generator.

中文简介正在准备中。当前显示原文说明。

vurakit/agentup562026年3月12日 更新

UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.

中文简介正在准备中。当前显示原文说明。

vurakit/agentup562026年3月12日 更新

查看 vurakit 的全部技能

报告此技能的问题