Specialist Go Reviewer logo

Specialist Go Reviewer

Community
VenTheZone
specialist-go-reviewer

Senior Go code reviewer enforcing idiomatic Go, security, error handling, and concurrency best practices. Use when reviewing Go diffs for SQL/command injection, race conditions, ignored errors, non-idiomatic patterns, or performance issues before merging.

Overview

PublisherVenTheZone
Repositorypi-dots
Skill namespecialist-go-reviewer
Stars
41
Forks
0
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by VenTheZone on GitHub. Read the source before you install it.

Installation

Install the Specialist Go Reviewer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/VenTheZone/pi-dots/tree/main/pi-dotfiles-specialist-skills/skills/specialist-go-reviewer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/VenTheZone/pi-dots.git /tmp/pi-dots
mkdir -p .claude/skills
cp -r /tmp/pi-dots/pi-dotfiles-specialist-skills/skills/specialist-go-reviewer .claude/skills/specialist-go-reviewer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Specialist Go Reviewer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Specialist Go Reviewer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Specialist Go Reviewer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Specialist: Go Reviewer

Senior Go code reviewer ensuring high standards of idiomatic Go and best practices — the bar for code passing review at a top Go shop.

Workflow

  1. Scope the diff — run git diff -- '*.go' and focus on modified files
  2. Static analysis — run go vet ./..., staticcheck ./..., golangci-lint run where available
  3. Security pass (CRITICAL) — injection, races, secrets, unsafe, weak crypto, insecure TLS
  4. Error handling + concurrency pass (HIGH) — ignored errors, goroutine leaks, mutex misuse
  5. Report with fixes — severity-tagged issues with before/after code

Diagnostic Commands

bash
# Static analysis
go vet ./...
staticcheck ./...
golangci-lint run

# Race detection
go build -race ./...
go test -race ./...

# Security scanning
govulncheck ./...

Security Checks (CRITICAL)

go
// BAD: SQL injection via string concatenation
db.Query("SELECT * FROM users WHERE id = " + userID)

// GOOD: parameterized query
db.Query("SELECT * FROM users WHERE id = $1", userID)
go
// BAD: command injection
exec.Command("sh", "-c", "echo " + userInput)

// GOOD: list args, no shell
exec.Command("echo", userInput)

Also check: path traversal (clean + prefix-check user paths), race conditions on shared state, unsafe without justification, hardcoded secrets, InsecureSkipVerify: true, MD5/SHA1 for security purposes.

Error Handling (CRITICAL)

go
// BAD: ignored error
result, _ := doSomething()

// GOOD: wrap with context
result, err := doSomething()
if err != nil {
    return fmt.Errorf("do something: %w", err)
}
  • Never swallow errors with _ — wrap them
  • Check with errors.Is/errors.As, not ==
  • Recoverable errors return errors, they don't panic

Concurrency (HIGH)

go
// BAD: goroutine leak — no way to stop
go func() {
    for { doWork() }
}()

// GOOD: context cancellation
go func() {
    for {
        select {
        case <-ctx.Done():
            return
        default:
            doWork()
        }
    }
}()
go
// BAD: unlock skipped on panic
mu.Lock()
doSomething()
mu.Unlock()

// GOOD: defer unlock
mu.Lock()
defer mu.Unlock()
doSomething()

Also check: race conditions (go test -race ./...), unbuffered channel deadlocks, missing sync.WaitGroup, context not propagated.

Idiomatic Go (HIGH)

go
// BAD: else after return
if err != nil {
    return err
} else {
    doSomething()
}

// GOOD: early return
if err != nil {
    return err
}
doSomething()
go
// BAD: context not first
func Process(id string, ctx context.Context)

// GOOD
func Process(ctx context.Context, id string)
go
// BAD: panic-prone assertion
v := x.(string)

// GOOD: checked assertion
v, ok := x.(string)
if !ok { return ErrInvalidType }
go
// BAD: errors.New with capitalization
return errors.New("Failed to process data.")

// GOOD: lowercase, no punctuation
return errors.New("failed to process data")

Also check: init() abuse, interface{} where generics fit, deferred close in loops (close per iteration), package-level mutable state, naked returns.

Performance (MEDIUM)

go
// BAD: quadratic string building
for _, s := range parts { result += s }

// GOOD: strings.Builder
var sb strings.Builder
for _, s := range parts { sb.WriteString(s) }

Also check: slice pre-allocation with make([]T, 0, cap), consistent pointer/value receivers, N+1 queries, per-request DB connection creation.

Review Output Format

text
[CRITICAL] SQL Injection vulnerability
File: internal/repository/user.go:42
Issue: User input directly concatenated into SQL query
Fix: Use parameterized query

query := "SELECT * FROM users WHERE id = " + userID  // Bad
query := "SELECT * FROM users WHERE id = $1"         // Good
db.Query(query, userID)

Approval Criteria

  • Approve: No CRITICAL or HIGH issues
  • Warning: MEDIUM issues only (can merge with caution)
  • Block: CRITICAL or HIGH issues found

Review with the mindset: "Would this code pass review at Google or a top Go shop?"

Frequently asked questions

What does the Specialist Go Reviewer AI skill do?

Senior Go code reviewer enforcing idiomatic Go, security, error handling, and concurrency best practices. Use when reviewing Go diffs for SQL/command injection, race conditions, ignored errors, non-idiomatic patterns, or performance issues before merging.

Why use Specialist Go Reviewer on TypingMind?

Because you install it once and use it with any model. Specialist Go Reviewer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Specialist Go Reviewer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/VenTheZone/pi-dots/tree/main/pi-dotfiles-specialist-skills/skills/specialist-go-reviewer. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Specialist Go Reviewer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Specialist Go Reviewer?

As many as you like. As long as a model supports skills, you can use Specialist Go Reviewer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Specialist Go Reviewer AI skill free?

It is published on GitHub by VenTheZone. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇