跳到主要内容

Lang Go

Navigate, test, and vet Go modules via go test.

Skill metadata​

SourceBundled (installed by default)
Pathskills/software-development/lang-go
Version1.1.0
AuthorVibeOS
LicenseMIT
Platformslinux, macos, windows

Reference: full SKILL.md​

信息

The following is the complete skill definition that VibeOS loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.

Go Language Pack Skill

Drive Go work with the project index and standard CLI recipes. LSP hint: gopls (editor-side when applicable). Zero new core tools.

What this language is (beginner)​

Простой компилируемый язык от Google. Отлично подходит для сетевых сервисов и облачной инфраструктуры.

Лучше всего для:

  • HTTP API, микросервисы, воркеры
  • CLI и DevOps-утилиты
  • высококонкурентные сетевые сервисы
  • инфраструктура (Docker/K8s-экосистема написана на Go)

When to Use​

Выбирай этот pack, если:

  • нужен быстрый, простой бэкенд с одним бинарником
  • много параллельных запросов / горутины
  • облачный / infra-adjacent код

Manifests (автодетект репозитория): go.mod

Обычно рядом: TypeScript фронт; Terraform для инфраструктуры.

См. также skill choose-language-pack, если цель ещё не ясна.

When NOT to use​

  • богатый UI в браузере → TypeScript
  • максимальная безопасность памяти без GC → Rust
  • быстрый CRUD-сайт для стартапа → Ruby / PHP / Python

Prerequisites​

vibeos pack apply lang-go --apply
vibeos pack apply project-intelligence --apply

How to Run​

vibeos project index build
vibeos project index query <SymbolName>
go test ./...
go vet ./...
go build ./...

Quick Reference​

GoalCommand
Apply packvibeos pack apply lang-go --apply
Doctorvibeos language doctor go
Primary testgo test ./...
Choose guideskill choose-language-pack

Procedure​

  1. Если язык ещё не выбран для нового проекта — сначала choose-language-pack.
  2. Work from the project root that matches pack manifests.
  3. Index query → read_file → edit → path-scoped tests when iterating.
  4. Prefer the package manager / toolchain already locked in the repo.
  5. Explain non-obvious toolchain choices in plain language for the user.

Pitfalls​

  • Vendored trees can flood the index; rebuild after large dependency bumps.
  • Cross-compile flags belong in the user request, not invent defaults.
  • Do not invent core tools; stay on terminal + read_file + index CLI.

Verification​

vibeos language doctor go
go test ./...