技能 go-mod-helper
🔷

go-mod-helper

安全 🌐 网络访问⚡ 包含脚本⚙️ 外部命令📁 文件系统访问🔑 环境变量

إدارة وحدات Go والتبعيات

تتطلب مشاريع Go إدارة دقيقة للتبعيات للحفاظ على الاستقرار والأمان. توفر هذه المهارة إرشادات خبيرة حول تهيئة الوحدات، وحل تضاربات الإصدارات، وتكوين مشاريع Go لبيئات الإنتاج.

支持: Claude Codex Code(CC)
⚠️ 67
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“go-mod-helper”。 How do I initialize a new Go module for a web API project?

预期结果:

  • Run: go mod init github.com/yourusername/projectname
  • Create standard structure: cmd/, internal/, pkg/, api/, docs/
  • Use semantic versioning: v1.x.x for stable releases
  • Add dependencies with: go get github.com/package@version
  • Run go mod tidy after adding dependencies to clean up
  • Configure go.sum verification before deployment

正在使用“go-mod-helper”。 How do I resolve version conflicts between dependencies?

预期结果:

  • Use go mod graph to see all dependency relationships
  • Run go mod why package-name to understand why a package is needed
  • Use go get package@version to pin to a specific version
  • Add exclude directives for problematic versions in go.mod
  • Run go mod tidy to clean up after resolving conflicts

安全审计

安全
v5 • 1/16/2026

Pure documentation skill containing only guidance text and example commands for Go module management. The static scanner flagged patterns in documentation examples, but there is no executable code, network calls, or file system access capabilities. This skill only provides text guidance to AI assistants.

2
已扫描文件
1,126
分析行数
5
发现项
5
审计总数

风险因素

🌐 网络访问 (9)
⚡ 包含脚本 (7)
⚙️ 外部命令 (109)
SKILL.md:47-72 SKILL.md:72-75 SKILL.md:75-111 SKILL.md:111-114 SKILL.md:114-117 SKILL.md:117-121 SKILL.md:121-128 SKILL.md:128-133 SKILL.md:133-179 SKILL.md:179-182 SKILL.md:182-194 SKILL.md:194-199 SKILL.md:199-233 SKILL.md:233-236 SKILL.md:236-255 SKILL.md:255-257 SKILL.md:257-268 SKILL.md:268-271 SKILL.md:271-286 SKILL.md:286-291 SKILL.md:291-300 SKILL.md:300-302 SKILL.md:302-308 SKILL.md:308-311 SKILL.md:311-329 SKILL.md:329-334 SKILL.md:334-352 SKILL.md:352-357 SKILL.md:357-366 SKILL.md:366-369 SKILL.md:369-379 SKILL.md:379-382 SKILL.md:382-387 SKILL.md:387-392 SKILL.md:392-399 SKILL.md:399-402 SKILL.md:402-408 SKILL.md:408-411 SKILL.md:411-418 SKILL.md:418-423 SKILL.md:423-434 SKILL.md:434-436 SKILL.md:436-447 SKILL.md:447-449 SKILL.md:449-457 SKILL.md:457-462 SKILL.md:462-477 SKILL.md:477-480 SKILL.md:480-489 SKILL.md:489-494 SKILL.md:494-511 SKILL.md:511-514 SKILL.md:514-530 SKILL.md:530-533 SKILL.md:533-546 SKILL.md:546-549 SKILL.md:549-562 SKILL.md:562-565 SKILL.md:565-580 SKILL.md:580-583 SKILL.md:583-595 SKILL.md:595-600 SKILL.md:600-611 SKILL.md:611-613 SKILL.md:613-620 SKILL.md:620-623 SKILL.md:623-633 SKILL.md:633-636 SKILL.md:636-646 SKILL.md:646-648 SKILL.md:648-655 SKILL.md:655-660 SKILL.md:660-676 SKILL.md:676-681 SKILL.md:681-717 SKILL.md:717-720 SKILL.md:720-745 SKILL.md:745-750 SKILL.md:750-769 SKILL.md:769-772 SKILL.md:772-806 SKILL.md:806-811 SKILL.md:811-826 SKILL.md:826-829 SKILL.md:829-845 SKILL.md:845-864 SKILL.md:864-865 SKILL.md:865-870 SKILL.md:870-874 SKILL.md:874-891 SKILL.md:891-901 SKILL.md:901-905 SKILL.md:905-931 SKILL.md:931-944 SKILL.md:374 SKILL.md:755 SKILL.md:756 SKILL.md:775 SKILL.md:776 SKILL.md:777 SKILL.md:777 SKILL.md:780 SKILL.md:800 SKILL.md:803 SKILL.md:804 SKILL.md:805 SKILL.md:369-379 SKILL.md:750-769 SKILL.md:772-806
📁 文件系统访问 (10)
🔑 环境变量 (1)
审计者: claude 查看审计历史 →

质量评分

38
架构
100
可维护性
87
内容
19
社区
100
安全
74
规范符合性

你能构建什么

إعداد مشروع Go الأول

تهيئة مشروع Go جديد مع هيكل وحدة مناسب، وتخطيط قياسي، وأفضل الممارسات للتنظيم.

إدارة التبعيات المعقدة

حل تضاربات الإصدار، وتكوين الوصول للوحدات الخاصة للمشاريع المؤسسية، ومراجعة أمان التبعيات.

تكوين خطوط أنابيب CI/CD

إعداد تخزين مؤقت لوحدات Go، وتوريد التبعيات، والتحقق من سلامة الوحدة، وتكوين إعدادات الوكيل في بيئات CI.

试试这些提示

تهيئة مشروع جديد
@go-mod-helper How do I initialize a new Go module for my web API project? Show me the standard project structure and go.mod file format.
إضافة تبعية
@go-mod-helper I need to add the gin-gonic/gin framework to my project. Show me how to add it with the correct version and verify it works.
تصحيح تضاربات الإصدارات
@go-mod-helper My project has dependency conflicts between packages. How do I use go mod tidy and go mod graph to identify and resolve version issues?
تكوين الوحدات الخاصة
@go-mod-helper I need to configure access to private GitHub packages. Show me how to set up GOPRIVATE and authentication with netrc or SSH keys.

最佳实践

  • قم دائمًا بتشغيل go mod tidy قبل الالتزام بتغييرات go.mod و go.sum
  • احتفظ بـ go.mod و go.sum في التحكم في الإصدارات لبناءات قابلة للتكرار
  • استخدم go mod verify للتحقق من سلامة التبعيات قبل الإصدارات أو عمليات النشر
  • كوين GOPRIVATE للوحدات الداخلية لتجنب كشف الكود المملوك

避免

  • التحرير اليدوي لـ go.sum بدلاً من استخدام go mod tidy لتحديثه
  • تجاهل التحقق من go.sum في خطوط أنابيب CI/CD يسمح بهجمات سلسلة التوريد المحتملة
  • استخدام قيود الإصدار الفضفاضة دون فهم التوافق يمكن أن يكسر البناء
  • حذف دليل vendor دون تحديث التبعيات يسبب أخطاء الحزم المفقودة

常见问题

Which Go versions are supported?
Go 1.16 والإصدارات الأحدث مدعومة بالكامل. يعمل مع صيغة قيود البناء لـ Go 1.17+ وبيئات عمل Go 1.18+.
What are the module cache limits?
يتم تخزين وحدة التخزين المؤقت في GOMODCACHE. الموقع الافتراضي هو $GOPATH/pkg/mod. تنظيف مع go clean -modcache.
Can this skill integrate with my IDE?
توفر هذه المهارة إرشادات تعمل مع أي IDE لـ Go. VS Code و GoLand و vim تدعم جميعها وحدات Go بشكل أصلي.
Is my code safe when using this skill?
نعم. هذه مهارة تعتمد على الإرشادات فقط. لا تصل إلى ملفاتك أو تقرأها أو تعدلها على نظامك.
Why am I getting checksum mismatch errors?
تعارضات المجموع الاختباري تحدث عندما يكون go.sum قديمًا أو تالفًا. الإصلاح عن طريق تشغيل go clean -modcache، ثم go mod download و go mod tidy.
How does this compare to dep or glide?
وحدات Go هي نظام التبعيات الرسمي منذ Go 1.11. على عكس dep أو glide، تم دمج الوحدات في سلسلة أدوات Go مع دعم أصلي.

开发者详情

文件结构

📄 SKILL.md