check-go

check-go is a command for coding agents from armanzeroeight/fastagent-plugins. It costs 16 tokens per session (603 once invoked), scanned A, original, MIT.

A command that checks Go code formatting, suspicious constructs, static-analysis findings, tests, and possible race conditions. Static analysis examines code for likely bugs without running every code path.

In plain words
What is it for?
Use it to inspect a Go project, run formatting and tests, check with go vet or Staticcheck, and look for race conditions.
Why use it?
It gathers common Go quality checks in one report so problems can be found before code is shipped.

Command

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/armanzeroeight/fastagent-plugins/check-go
Clone the repo
git clone --depth 1 https://github.com/armanzeroeight/fastagent-plugins

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 check-go

README.md
[![agentmods](https://agentmods.dev/badge/commands/armanzeroeight/fastagent-plugins/check-go.svg)](https://agentmods.dev/commands/armanzeroeight/fastagent-plugins/check-go)
Your own site
<a href="https://agentmods.dev/commands/armanzeroeight/fastagent-plugins/check-go"><img src="https://agentmods.dev/badge/commands/armanzeroeight/fastagent-plugins/check-go.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 603 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.00016 $0.00603
Opus 5 $0.00008 $0.00302
Sonnet 5 $0.00003 $0.00121
Haiku 4.5 $0.00002 $0.00060

Measured yesterday against content hash bf5f5b4e9778, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

check-go 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-toolkit/commands/check-go.md · 122 lines

How it starts

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

Check Go

Run comprehensive Go code quality checks.

Context

  • Go version: !go version
  • Current directory: !pwd
  • Go files: !find . -name "*.go" -not -path "*/vendor/*" | head -10

Your Task

Run Go code quality checks and provide actionable feedback.

Arguments

  • $1: Optional --fix flag to automatically fix issues

Steps

  1. Check Go installation

    • Verify go command is available
    • Check Go version
  2. Run gofmt

    • Check code formatting
    • If --fix: Apply formatting
    • Report unformatted files
  3. Run go vet

    • Check for suspicious constructs
    • Report issues found
    • Provide fix suggestions
  4. Run staticcheck (if available)

    • Advanced static analysis
    • Check for bugs and inefficiencies
    • Report findings
  5. Run go test

    • Execute all tests
    • Report test results
    • Show coverage if available
  6. Check for race conditions

    • Run tests with -race flag
    • Report any race conditions
  7. Provide summary

    • List all issues found
    • Categorize by severity
    • Suggest fixes
    • Show overall status

Output Format

# Go Code Quality Report

## Formatting
- Status: [PASS/FAIL]
- Unformatted files: [count]
- [List of files if any]

## Go Vet
- Status: [PASS/FAIL]
- Issues found: [count]
- [List of issues with file:line]

## Static Analysis
- Status: [PASS/FAIL/SKIPPED]
- Issues found: [count]
- [List of issues]

## Tests
- Status: [PASS/FAIL]
- Tests run: [count]
- Passed: [count]
- Failed: [count]
- Coverage: [percentage]

## Race Detection
- Status: [PASS/FAIL/SKIPPED]
- Races found: [count]

## Summary
- Overall: [PASS/FAIL]
- Total issues: [count]
- Action required: [yes/no]

## Recommendations
1. [Fix suggestion 1]
2. [Fix suggestion 2]
...

Examples

Check code quality:

/check-go

Check and auto-fix:

/check-go --fix

Expected output:

  • Formatting status
  • Vet results
  • Static analysis findings
  • Test results
  • Race detection results
  • Actionable recommendations

Read the full file on GitHub · 122 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. yesterday First seen · 122 lines · 16 tokens per session scan A bf5f5b4e9778

Subscribe to this mod's changes

check-go is a command published in the GitHub repository armanzeroeight/fastagent-plugins (29 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 603 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-09-03.