go-format

go-format is a plugin for Claude Code from melodic-software/claude-code-plugins. Its token cost is not measured, scanned A, original, MIT.

A Go code hook that runs goimports whenever a Go file is edited, fixing formatting and updating imports. Generated files are skipped.

In plain words
What is it for?
It is for automatically formatting Go source files and adding or removing their imports.
Why use it?
It removes the need to format Go code and maintain imports manually after every edit.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
agentmods
npx agentmods add plugins/melodic-software/claude-code-plugins/go-format
Clone the repo
git clone --depth 1 https://github.com/melodic-software/claude-code-plugins

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for go-format

README.md
[![agentmods](https://agentmods.dev/badge/plugins/melodic-software/claude-code-plugins/go-format.svg)](https://agentmods.dev/plugins/melodic-software/claude-code-plugins/go-format)
Your own site
<a href="https://agentmods.dev/plugins/melodic-software/claude-code-plugins/go-format"><img src="https://agentmods.dev/badge/plugins/melodic-software/claude-code-plugins/go-format.svg" alt="Measured on agentmods" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

go-format scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/go-format/.claude-plugin/plugin.json · 27 lines

What it actually says

{
  "$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
  "name": "go-format",
  "version": "0.3.35",
  "description": "Auto-fix Go formatting and import management on edit via goimports \u2014 runs unconditionally (no consumer-config gate), skipping generated files.",
  "author": {
    "name": "Melodic Software",
    "email": "[email protected]"
  },
  "license": "MIT",
  "keywords": [
    "go",
    "golang",
    "goimports",
    "formatter",
    "hook"
  ],
  "userConfig": {
    "go_format_enabled": {
      "type": "boolean",
      "title": "go-format hook",
      "description": "Run goimports -w on edit of a Go file",
      "default": true
    }
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 8ea76b0af34c
  2. 2d ago First seen · 27 lines scan A b52b77c6ab54

Subscribe to this mod's changes

go-format is a plugin published in the GitHub repository melodic-software/claude-code-plugins (15 stars, last pushed today), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.