/vmkteam-developer:embedlogfrom vmkteam-developer
Embeds structured logging with Prometheus metrics into Go structs via embedlog.Logger. Supports dual-level output (info→stdout, error→stderr), JSON/text modes, and structured key-value args.
Ships in vmkteam-developer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
embedlog.LoggerNewDevLogger); source location автоtype MyService struct {
embedlog.Logger
repo db.EntityRepo
}
func (s *MyService) Process(ctx context.Context) error {
s.Print("processing started")
if err != nil {
s.Error("processing failed", "err", err)
return err
}
s.Print("processing completed", "count", count)
return nil
}
logger := embedlog.NewLogger(os.Stdout, os.Stderr, true) // json=true, prod
logger := embedlog.NewDevLogger() // text+colors, dev
logger.Print(msg, args...) — info → stdoutlogger.Error(msg, args...) — error → stderrlogger.PrintOrErr(err, msg) — err != nil ? Error : PrintВсегда structured args ("key", val), не конкатенация.
app_log_events_total{type="info"|"error"} — counter (алерты на error rate).
// zenrpc-middleware
rpc.Use(
zm.WithSLog(logger.Print, zm.DefaultServerName, nil),
zm.WithErrorSLog(logger.Error, zm.DefaultServerName, nil),
)
// go-pg SQL logging (dblog.go)
zm.WithSQLLogger(dbo.DB, isDevel, allowDebugFn(), allowDebugFn())
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vmkteam/claude-plugins --plugin vmkteam-developer36 skills in this plugin
/api-healthAPI Health — проверка здоровья JSON-RPC сервиса через SMD. Используй когда нужно убедиться что RPC-endpoint жив, собрать тайминги методов или диагностировать недоступность API./appkitAppkit — библиотека vmkteam/appkit: метрики, pprof, HTTP client, service metadata, X-Request-ID. Используй при подключении метрик/pprof в сервис, работе с HTTP-клиентом appkit или добавлении корреляционных ID./ci-cdCI/CD — GitLab CI + Nomad deploy для Go-сервисов vmkteam. Используй при редактировании .gitlab-ci.yml, *.nomad.hcl, настройке пайплайна или дебаге деплоя.