gopher-init

gopher-init is a command for coding agents 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

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

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.

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

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00023 $0.01351
Opus 5 $0.00012 $0.00675
Sonnet 5 $0.00005 $0.00270
Haiku 4.5 $0.00002 $0.00135

Measured 3d ago against content hash 98b969c05702, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 6mo ago), licensed MIT. It adds 23 tokens to every session and 1,351 once invoked, about $0.0001 per session on Opus 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.