用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/curtbushko/nixos-config --skill go-project-planning命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | go-project-planning |
| description | Go Project Planning Skill |
This skill provides architectural patterns and planning guidance for Go projects. Use it when:
NOTE: This skill references the shared Go patterns in ~/.claude/skills/golang/references/. All detailed patterns, code examples, and guidelines are maintained there as the single source of truth.
| Pattern | Reference |
|---|---|
| Hexagonal Architecture | golang/references/architecture.md |
| BDD/Gherkin Specifications | golang/references/bdd-gherkin.md |
| TDD Workflow | golang/references/tdd-workflow.md |
| Protobuf Guidelines | golang/references/protobuf.md |
| Go Code Patterns | golang/references/code-patterns.md |
| Go Cloud SDK | golang/references/go-cloud-sdk.md |
| AI Code Problems | golang/references/ai-code-problems.md |
project/
├── cmd/ # Composition root
│ └── myapp/
│ ├── main.go # Entry point
│ └── root.go # Cobra root command
├── internal/
│ ├── domain/ # INNER: Pure business logic
│ ├── ports/ # INNER: Interface contracts
│ ├── application/ # APPLICATION: Use cases
│ └── adapters/ # OUTER: Infrastructure
├── api/ # API definitions (proto, OpenAPI)
├── .go-arch-lint.yml # Architecture enforcement
├── .golangci.yml # Linting rules
├── Taskfile.yml # Build targets (required)
└── go.mod
Before completing any task:
task build # REQUIRED - must pass
task test # REQUIRED - must pass
task lint # REQUIRED - must pass
go-arch-lint check # if .go-arch-lint.yml exists
IMPORTANT:
.golangci.yml, .go-arch-lint.yml, .go-ai-lint.yml)//nolint: directives - there are no exceptionsFollow Go Cloud SDK patterns for cloud-agnostic components. See go-cloud-sdk.md.
// URL-based construction - provider determined by configuration
bucket, _ := blob.OpenBucket(ctx, os.Getenv("BUCKET_URL"))
// "s3://my-bucket" -> AWS S3
// "gs://my-bucket" -> Google Cloud Storage
// "file:///tmp/bucket" -> Local filesystem