go-modern-guidelines

Из публичных источников

Помогите ИИ-агентам для программирования писать современный Go

Машинный перевод · Показать оригинал

Help AI coding agents write modern Go

CLI-инструментКатегория: Инструменты разработчика · ИИ для кодаOpen sourceданные проверены 16 окт. 2026 г.

Обзор

  • ai-agents
  • coding-agent
  • developer-tools
  • go
  • golang
  • guidelines

Установка

Команды только показываются, маркетплейс их не выполняет. Сверяйтесь с официальной документацией.
  • Сборка из исходниковИз публичных источниковиз метаданных каталога

    Сборка из исходников: проверенного рецепта сборки нет — следуйте инструкциям репозитория.

    github.com/JetBrains/go-modern-guidelines ↗

Совместимость

«Неизвестно» значит, что доказательств не найдено, а не что продукт несовместим.
ПлатформаСтатусАрхитектураДоказательствоУверенность
WindowsНеизвестно———
macOSНеизвестно———
LinuxНеизвестно———
Container (OCI)Неизвестно———

Релизы

проверено 30 окт. 2026 г.
В источнике релизы не найдены.

Профиль качества

алгоритм quality-v1.0 · оценено 16 окт. 2026 г.
Оценка качества77
Оценка риска0
Уверенность 1.00
Оценка качества и оценка риска — разные показатели. Высокое качество не гарантирует безопасность.

Составляющие оценки

Поддержка · 2020
last activity 0 days ago
Документация · 1515
README 7334 chars, description present
Готовность к использованию · 159
install instructions: yes; releases: no
Метаданные · 108
3/4 of description, homepage, license, topics
Релизы · 102
0 release(s)
Точность категории · 105
classifier confidence 0.5
Популярность · 109
3862 stars (log-dampened, 10k = max)
Ясность лицензии · 55
SPDX Apache-2.0
Сообщество · 55
issues enabled, 127 forks

Лицензия

Apache-2.0
Лицензия известнапо данным хостинга репозитория

Это статус политики каталога, а не юридическое заключение.

Источники

github.com/JetBrains/go-modern-guidelinesОсновной★ 3 862 звёздактивность 15 окт. 2026 г.Основной репозиторий · Уверенность 1.00

Отзывы

Войдите, чтобы написать отзыв

Отзывов пока нет.

Альтернативы

tuiosПохожий
Менеджер терминальных окон, который знает, что делают ваши агенты. Разбиение на плитки, рабочие пространства, сессии, переживающие перезапуски, и единый Inbox для каждого агента программирования.MIT · Инструменты разработчика
App-Store-Connect-CLIПохожий
Быстрый CLI с поддержкой скриптов для App Store Connect API. Автоматизируйте TestFlight, сборки, отправку на проверку, подпись, аналитику, скриншоты, подписки и многое другоеMIT · Инструменты разработчика
d2Похожий
D2 — современный язык скриптов для диаграмм, который преобразует текст в диаграммы.MPL-2.0 · Инструменты разработчика
gentle-aiПохожий
Gentle-AI настраивает AI-агентов для программирования, которые вы уже используете: Claude Code, Cursor, OpenCode, Codex, Pi и другие. Выберите постоянную память, Organic-Driven Development, подобранные навыки, MCP-серверы, персоны и необязательную ограниченную проверку. Открытый исходный код, без привязки к конкретному агенту.MIT · Инструменты разработчика
cli-printing-pressПохожий
У каждого API есть скрытая сущность. Этот инструмент находит её, перенимает все функции всех конкурирующих инструментов и затем создаёт GOAT CLI — в первую очередь для ИИ-агентов, с синхронизацией на SQLite, поиском без подключения к сети и командами для составного анализа.MIT · Инструменты разработчика
agentacctПохожий
Смотрите, что делали ваши агенты для программирования и во что это обошлось. Разбивает каждую задачу на этапы работы — использованные инструменты, изменённые файлы, запущенные тесты, затраченное время и токены. Локальная панель для Claude Code, Codex, OpenCode и других. Без входа в систему и без телеметрии.MIT · Инструменты разработчика

README

Из JetBrains/go-modern-guidelines · лицензия Apache-2.0 · загружено 30 окт. 2026 г.

[official JetBrains project]

Modern Go Guidelines

This repository contains guidelines for code agents that help them write modern Go code.

For example, an agent with these guidelines uses max(a, b) instead of an if-else block, slices.Contains instead of a manual loop, cmp.Or(a, b, c) instead of a chain of nil checks. It also knows about recent additions like new(42) to get a pointer to a value and errors.AsType[T](err) for type-safe error matching—both from Go 1.26.

The guidelines cover the most useful features from Go 1.0 through Go 1.27, including everything targeted by the modernize analyzer. See FEATURES.md for the complete list with detailed descriptions and examples. An agent will:

  • Detect the project's Go version from go.mod
  • Use language features and stdlib additions available up to and including that version
  • Prefer modern idioms over older patterns

Motivation

All coding agents tend to generate outdated Go. Two reasons:

  1. Training data lag. Models don't know about features added after their training cutoff. They can't use errors.AsType[T] (Go 1.26) if they've never seen it.

  2. Frequency bias. Even for features the model knows, it often picks older patterns. There's more for i := 0; i < n; i++ in the training data than for i := range n, so that's what comes out.

These guidelines fix both problems by giving the agent an explicit reference.

This aligns with the Go team's direction. The modernize analyzer exists to automatically update existing code to use newer idioms (see this talk from the Go team). These guidelines serve the same goal for new code: agents write modern Go from the start, so there's less to fix later.

Requirements

The marketplace integrations run a small CLI that is installed on first use with go install. Because of that, the Go toolchain must be installed and available on your PATH.

The CLI is installed into a local cache (for example ~/.cache/go-modern-guidelines) and never modifies your project. It targets Go 1.25 or newer; on an older Go it still works as long as automatic toolchain switching is enabled (GOTOOLCHAIN=auto, the default), which lets Go fetch a compatible toolchain on first run.

Instructions

The guidelines are available for Junie, Claude Code, Codex, and Cursor, and for other agents via skills.sh.

Junie

Junie CLI

Run the following commands inside a Junie CLI session.

  1. Add this repository as a marketplace:
/extensions marketplace add JetBrains/go-modern-guidelines
  1. Install the extension:
/extensions install modern-go-guidelines

Junie invokes the skill automatically when it is relevant to a Go task.

Updating

Update the installed extension from inside a Junie CLI session:

/extensions update modern-go-guidelines

Claude Code

Installation

Run the following commands inside a Claude Code session.

  1. Add this repository as a marketplace:
/plugin marketplace add JetBrains/go-modern-guidelines
  1. Install the plugin:
/plugin install modern-go-guidelines@goland-claude-marketplace
Usage

Claude Code invokes the skill automatically when it is relevant to a Go task.

To invoke it explicitly:

/modern-go-guidelines:use-modern-go
Updating

Claude Code can update the marketplace and installed plugin automatically at startup. Automatic updates are disabled by default for third-party marketplaces, so enable them once:

  1. Run /plugin.
  2. Open Marketplaces and select goland-claude-marketplace.
  3. Select Enable auto-update.

When Claude Code reports that the plugin was updated, apply the new version to the current session with:

/reload-plugins

To update it manually instead, run these commands in a terminal:

claude plugin marketplace update goland-claude-marketplace
claude plugin update modern-go-guidelines@goland-claude-marketplace

Codex

Installation

Run the following commands in a terminal.

  1. Add this repository as a marketplace:
codex plugin marketplace add JetBrains/go-modern-guidelines
  1. Install the plugin:
codex plugin add modern-go-guidelines@goland-codex-marketplace
Updating

Refresh the marketplace and reinstall the plugin so Codex replaces its cached copy:

codex plugin marketplace upgrade goland-codex-marketplace
codex plugin remove modern-go-guidelines@goland-codex-marketplace
codex plugin add modern-go-guidelines@goland-codex-marketplace

Cursor

For convenience, the guidelines are distributed as a Cursor plugin.

Installation
  1. Add this repository as a marketplace by running the following command in a terminal:
cursor-agent plugin marketplace add https://github.com/JetBrains/go-modern-guidelines
  1. Install the plugin with the /plugins command inside a Cursor session.
Updating

Refresh the marketplace from Git and reopen Cursor so it can pick up the new plugin version:

cursor-agent plugin marketplace update goland-cursor-marketplace

If the installed plugin is still on the previous version, reinstall it with the /plugins command. Cursor does not currently provide a non-interactive CLI command for updating an installed plugin.

Other Agents (via skills.sh)

The same skill package works across other agents such as OpenCode. Install it with:

npx skills add JetBrains/go-modern-guidelines

(--skill use-modern-go installs only this skill.)

Updating

Update the project-installed skill with:

npx skills update use-modern-go -p -y

For a globally installed skill, replace -p with -g.

Contributing

Contributions are very welcome. Please read CONTRIBUTING.md before proposing a change.

Local development

To try changes to the CLI in your agent, build this checkout into the tool's cache:

make dev-install

Then set GO_MODERN_GUIDELINES_DEV=1 in the environment your agent runs in. With it set, any agent using the plugin runs your local build instead of the released version, the same way across Claude Code, Codex, and Cursor. Export it before launching the agent so the agent process inherits it:

export GO_MODERN_GUIDELINES_DEV=1

After editing the CLI, run make dev-install again to rebuild; the next call picks it up. To go back to the released version, unset the variable (or run make dev-uninstall to remove the build):

make dev-uninstall

This requires the Go toolchain. The dev build is stored in the tool's cache directory ($XDG_CACHE_HOME/go-modern-guidelines or ~/.cache/go-modern-guidelines).

The build is driven by scripts/dev-install.sh, which is intentionally separate from the agent-facing wrapper so an agent can never trigger a build. Without make (for example on Windows) you can run it directly:

sh scripts/dev-install.sh install       # or: uninstall
pwsh scripts/dev-install.ps1 install    # PowerShell equivalent
Открыть репозиторий ↗