gopher-init

gopher-init is a command for Claude Code from car12o/claude-workflows. It costs 23 tokens per session (1,351 once invoked), scanned A, original, MIT.

A command that scaffolds a new Go 1.24 or newer project with source folders, a Makefile, linting configuration, and documentation.

In plain words
What is it for?
Use it with a Go module path and an optional minimal, standard, or service layout to create projects ranging from a small application to an API-and-worker setup.
Why use it?
It creates a consistent starting structure while checking existing files so they are not overwritten.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is RUN CGO_ENABLED=0 go build -trimpath -o /bin/<binary> ./cmd/<binary>.

Part of the gopher plugin — 6 skills, 5 commands, 5 agents, 1 hook shipped together

Good fit Use it with a Go module path and an optional minimal, standard, or service layout to create projects ranging from a small application to an API-and-worker setup.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/car12o/claude-workflows
agentmods
npx agentmods add commands/car12o/claude-workflows/gopher-init

Made for: Claude Code.

Or install gopher, the plugin that ships this one along with the rest of its 6 skills, 5 commands, 5 agents, 1 hook.

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 gopher-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/car12o/claude-workflows/gopher-init/github.svg)](https://agentmods.dev/commands/car12o/claude-workflows/gopher-init)
Your own site
<a href="https://agentmods.dev/commands/car12o/claude-workflows/gopher-init"><img src="https://agentmods.dev/badge/commands/car12o/claude-workflows/gopher-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gopher-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/car12o/claude-workflows/gopher-init"><img src="https://agentmods.dev/badge/commands/car12o/claude-workflows/gopher-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,351 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.01351
Opus 5.5 $0.00009 $0.00540
Sonnet 5.5 $0.00005 $0.00270
Haiku 4.5 $0.00002 $0.00135

Measured 1mo ago against content hash 98b969c05702, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gopher-init 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 1mo ago.

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/gopher/commands/gopher-init.md · 274 lines

How it starts

The opening of the file, as written. The whole thing — 274 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scaffold a new Go 1.24+ project.

Arguments

Parse from $ARGUMENTS:

  • module-path (required): Go module path (e.g., github.com/org/project)
  • --layout (optional): minimal, standard (default), or service

If no arguments provided, ask the user for the module path.

Layouts

minimal

project/
├── go.mod
├── main.go
├── main_test.go
├── Makefile
└── README.md

standard

project/
├── cmd/
│   └── server/
│       └── main.go
├── internal/
│   ├── domain/
│   ├── service/
│   ├── repository/
│   ├── handler/
│   └── config/
├── pkg/
├── migrations/
├── go.mod
├── Makefile
├── .golangci.yml
├── Dockerfile
└── README.md

service

project/
├── cmd/
│   ├── api/
│   │   └── main.go
│   └── worker/
│       └── main.go
├── internal/
│   ├── domain/
│   ├── service/
│   ├── repository/
│   ├── handler/
│   └── config/
├── pkg/
├── migrations/
├── go.mod
├── Makefile
├── .golangci.yml
├── Dockerfile
└── README.md

Steps

1. Pre-flight Check

Check which files and directories from the chosen layout already exist. Track them — subsequent steps will skip existing files rather than overwriting them.

2. Create Directory Structure

Report: "Creating directory structure..."

Create directories based on the chosen layout. Skip directories that already exist.

3. Initialize Module

Report: "Initializing Go module..."

Skip if go.mod already exists.

go mod init <module-path>

Then edit go.mod to set Go 1.24.

For standard and service layouts, add tool directives:

module <module-path>

go 1.24

tool (
    golang.org/x/tools/cmd/goimports
    github.com/golangci/golangci-lint/cmd/golangci-lint
    golang.org/x/vuln/cmd/govulncheck
)

For minimal:

module <module-path>

go 1.24

4. Create main.go

Skip if the target main.go already exists.

For minimal:

package main

import "fmt"

func main() {
	fmt.Println("Hello, World!")
}

For standard and service (cmd/server/main.go or cmd/api/main.go):

Read the full file on GitHub · 274 lines

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. 1mo ago First seen · 274 lines · 23 tokens per session scan A 98b969c05702

Subscribe to this mod's changes

gopher-init is a command published in the GitHub repository car12o/claude-workflows (2 stars, last pushed 7mo ago), licensed MIT. It adds 23 tokens to every session and 1,351 once invoked, about $0.0001 per session on Opus 5.5. 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-08-31.