luokai0/ai-agent-skills-by-luo-kai/alibabacloud-sdk-client-initialization-for-golang
Claude Code and agent skill by luokai0/ai-agent-skills-by-luo-kai
- community
Checking that the SKILL.md file is still in the repository.
Initialize and manage Alibaba Cloud SDK clients in Go. Covers sync.Once singleton, goroutine safety, endpoint vs region configuration, VPC endpoints, and debug mode. Use when the user creates Go SDK clients, configures endpoints, asks about goroutine safety, singleton patterns, or VPC endpoint setup in the Alibaba Cloud Go SDK.
Install
npx vskill@latest install luokai0/ai-agent-skills-by-luo-kai/alibabacloud-sdk-client-initialization-for-golangSKILL.md
Client Initialization Best Practices (Go)
Core Rules
- Client is goroutine-safe — safe to share across goroutines without additional synchronization.
- Use singleton pattern — do NOT create new client instances per request. Frequent client creation wastes resources.
- Prefer explicit endpoint over region-based endpoint resolution.
Recommended Client Creation
Endpoint Configuration
Priority: explicit Endpoint > region-based resolution via RegionId.
VPC Endpoints
Use VPC endpoints when running inside Alibaba Cloud VPC:
File Upload APIs (Advance)
Set both RegionId and Endpoint to the same region for file upload APIs:
SDK Components
| Component | Description | |
|---|---|---|
Core SDK (darabonba-openapi) | Generic calls, no product dependency | |
Product SDK (e.g., ecs-20140526) | Typed client, models, convenience methods |
Debugging
Enable debug mode via environment variable to log all requests:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingai-agent-skills/22-clawhub-skills/alibabacloud-sdk-client-initialization-for-golang/SKILL.md
Popularity
- Repository stars
- 12
- Repository forks
- 1
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/luokai0/ai-agent-skills-by-luo-kai/alibabacloud-sdk-client-initialization-for-golang)