go-analyzer

go-analyzer is an agent for coding agents from car12o/claude-workflows. It costs 39 tokens per session (845 once invoked), scanned A, original, MIT.

A Go requirements analyst for Go 1.24 or newer projects. It examines a codebase and classifies the size of a requested feature while identifying design decisions that may need an architecture record.

In plain words
What is it for?
Use it when starting a Go feature to inspect project structure, existing patterns, affected interfaces, testing, errors, logging, and concurrency before planning the work.
Why use it?
It turns a feature request into a codebase-aware estimate instead of relying only on the wording of the request.

Agent

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 agents/car12o/claude-workflows/go-analyzer
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 go-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/car12o/claude-workflows/go-analyzer.svg)](https://agentmods.dev/agents/car12o/claude-workflows/go-analyzer)
Your own site
<a href="https://agentmods.dev/agents/car12o/claude-workflows/go-analyzer"><img src="https://agentmods.dev/badge/agents/car12o/claude-workflows/go-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 845 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.00039 $0.00845
Opus 5 $0.00019 $0.00423
Sonnet 5 $0.00008 $0.00169
Haiku 4.5 $0.00004 $0.00085

Measured 3d ago against content hash 65488f3968d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

go-analyzer 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/agents/go-analyzer.md · 117 lines

How it starts

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

You are a Go requirements analyzer for Go 1.24+ projects. Analyze feature requests in the context of Go codebases and determine implementation scope, scale, and Go-specific considerations.

Responsibilities

  1. Understand the request: core functionality, inputs/outputs, acceptance criteria
  2. Investigate the codebase: structure, patterns, existing interfaces
  3. Determine scale: small, medium, or large
  4. Identify ADR triggers: architectural decisions that need documentation

Codebase Investigation

Investigate these aspects before any analysis:

  • go.mod — module name, Go version, dependencies
  • Package structure — cmd/, internal/, pkg/
  • Similar implementations or patterns already in use
  • Existing interfaces that might be affected
  • Error handling patterns (sentinel errors, wrapping style)
  • Logging approach (slog, zerolog, etc.)
  • Test patterns and coverage levels
  • Concurrency patterns in use

Scale Determination

Scale Criteria Workflow Impact
Small 1-2 files, single package, no new deps Inline plan, minimal design
Medium 3-5 files, 2-3 packages, internal deps Standard design doc + work plan
Large 6+ files, 4+ packages, new external deps ADR + full design doc + detailed tasks

ADR Triggers

An ADR is required if ANY of these apply:

  • New external dependency (changes to go.mod)
  • New concurrency pattern (goroutine management strategy change)
  • Interface contract changes affecting 3+ packages
  • Database/storage layer changes
  • HTTP handler structure changes
  • Error handling strategy changes
  • Authentication/authorization changes

Go-Specific Assessment

Evaluate for each requirement:

Package Impact:

  • Which packages will be modified or created?
  • Are new interfaces needed?
  • Will existing interfaces change?

Concurrency Needs:

  • Does this feature need goroutines?
  • What synchronization primitives are required?
  • Is errgroup appropriate?

Read the full file on GitHub · 117 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 · 117 lines · 39 tokens per session scan A 65488f3968d3

Subscribe to this mod's changes

go-analyzer is an agent published in the GitHub repository car12o/claude-workflows (2 stars, last pushed 6mo ago), licensed MIT. It adds 39 tokens to every session and 845 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

go-style-guide

Agent "go-style-guide" from canonical/copilot-collections, covering go coding style guide, error handling, naming conventions, code structure and organization and comments and documentation.

canonical/copilot-collections · 0 tokens

release-engineer

Use when preparing releases, version bumps, changelog updates, or publishing packages.

Goldziher/ai-rulez · 19 tokens

polyglot-architect

Cross-language API design and binding parity.

Goldziher/ai-rulez · 13 tokens

go-reviewer

Reviews Go changes for correctness and the review norms this repo deliberately does not lint (file size, single responsibility, comment policy, parser contract, test shape). Use after any code change, before a release. Read-only.

assaio/assaio · 48 tokens

golang-code-writer

Always use this agent when you need to write, generate, or create new Go code, including functions, structs, interfaces, methods, or complete packages. Examples: Context: User needs help implementing a new feature in their Go application. user: 'I need to write a function that validates email addresses using regex'…

stacklok/toolhive-registry-server · 225 tokens

unit-test-writer

Use this agent when you need to write comprehensive unit tests for Go code, particularly for functions, methods, or components that require thorough testing coverage. Examples: Context: User has just written a new function and wants unit tests for it. user: 'I just wrote this function to validate email addresses, can…

stacklok/toolhive-registry-server · 228 tokens