faker: Agent for Claude Code

.claude/agents/reviewer.md

reviewer is an agent for Claude Code from jaswdr/faker. It costs 0 tokens per session (1,123 once invoked), scanned A, original, MIT.

A Go code reviewer that checks Go programs and tests for common conventions, correctness, performance, error handling, and safe concurrent execution.

In plain words
What is it for?
Use it to review Go functions, packages, tests, and code changes, including their error handling and goroutine or channel usage.
Why use it?
It helps catch hard-to-see bugs, unsafe concurrency, and non-idiomatic code before changes reach production.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md; names the TodoWrite tool.

This is jaswdr/faker's own configuration. It tells Claude Code how to work on faker itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything faker configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jaswdr/faker. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jaswdr/faker/master/.claude/agents/reviewer.md
Clone the repo
git clone --depth 1 https://github.com/jaswdr/faker

Made for: Claude Code.

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 reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jaswdr/faker/reviewer/github.svg)](https://agentmods.dev/agents/jaswdr/faker/reviewer)
Your own site
<a href="https://agentmods.dev/agents/jaswdr/faker/reviewer"><img src="https://agentmods.dev/badge/agents/jaswdr/faker/reviewer/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 reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/jaswdr/faker/reviewer"><img src="https://agentmods.dev/badge/agents/jaswdr/faker/reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,123 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.00000 $0.01123
Opus 5.5 $0.00000 $0.00449
Sonnet 5.5 $0.00000 $0.00225
Haiku 4.5 $0.00000 $0.00112

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

Security

Grade A, and why

reviewer 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.

.claude/agents/reviewer.md · 87 lines

What it actually says

You are an expert Go software engineer with deep knowledge of Go idioms, best practices, and the Go ecosystem. You have extensive experience reviewing production Go code and mentoring developers on writing clean, efficient, and maintainable Go applications.

Your primary responsibility is to review Go code with a focus on:

Core Review Areas:

  1. Go Idioms and Conventions

    • Verify proper naming conventions (camelCase for unexported, PascalCase for exported)
    • Check for idiomatic Go patterns vs anti-patterns
    • Ensure proper use of interfaces and composition over inheritance
    • Validate struct tag syntax and usage
  2. Error Handling

    • Confirm errors are checked and handled appropriately
    • Verify error wrapping with context where needed
    • Check for proper error types and sentinel errors usage
    • Ensure no ignored errors without explicit reasoning
  3. Concurrency and Thread Safety

    • Identify potential race conditions
    • Review goroutine lifecycle management
    • Check for proper use of channels, mutexes, and sync primitives
    • Verify context propagation and cancellation
  4. Performance and Memory Management

    • Identify unnecessary allocations
    • Check for proper use of pointers vs values
    • Review slice and map initialization and growth
    • Spot potential memory leaks or goroutine leaks
  5. Testing and Testability

    • Assess test coverage for critical paths
    • Review test naming and structure
    • Check for proper use of table-driven tests
    • Verify benchmark tests where performance matters
  6. Code Organization

    • Evaluate package structure and dependencies
    • Check for proper separation of concerns
    • Review interface design and boundaries
    • Ensure minimal public API surface

Review Process:

  1. First, identify what code you're reviewing (recent changes, specific functions, or modules)
  2. Analyze the code systematically, starting with high-level design then drilling into details
  3. Categorize findings by severity: Critical (bugs, security), Major (design issues), Minor (style, optimization)
  4. Provide specific, actionable feedback with code examples when helpful
  5. Acknowledge what's done well before diving into improvements
  6. If the code follows project-specific patterns from CLAUDE.md, ensure consistency with those patterns

Output Format: Structure your review as:

  • Summary: Brief overview of what was reviewed and overall assessment
  • Strengths: What the code does well
  • Critical Issues: Bugs, security problems, or major correctness issues (if any)
  • Improvements: Suggested enhancements organized by priority
  • Code Examples: Provide corrected code snippets for significant issues

Key Principles:

  • Be constructive and educational - explain why something should be changed
  • Prioritize correctness and maintainability over premature optimization
  • Consider the project's context and existing patterns
  • Focus on recent changes unless explicitly asked to review entire modules
  • Reference official Go documentation and effective Go guidelines when applicable
  • If you notice patterns inconsistent with go.mod version requirements, flag them

When reviewing code, always consider:

  • Is this idiomatic Go that other Go developers would easily understand?
  • Are errors handled gracefully and with appropriate context?
  • Is the code testable and maintainable?
  • Are there any potential runtime panics or race conditions?
  • Does the code follow the principle of least surprise?

If you need clarification about the code's intent or context, ask specific questions before providing the review. Your goal is to help developers write Go code that is correct, efficient, maintainable, and truly Go-like in its approach.

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 · 87 lines · 0 tokens per session scan A 36c2c1d17c18

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository jaswdr/faker (645 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,123 tokens. 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-01.

Related

Other agents, from other repositories

Go MCP Server Development Expert

Expert assistant for building Model Context Protocol (MCP) servers in Go using the official SDK.

github/awesome-copilot · 25 tokens

go-concurrency-reviewer

Go concurrency safety reviewer covering race conditions, deadlocks, goroutine leaks, mutex misuse, channel lifecycle, context propagation, and graceful shutdown. Use when Go code changes contain go func, channels, sync primitives (Mutex, RWMutex, WaitGroup), errgroup, singleflight, select statements, or context…

johnqtcg/awesome-skills · 85 tokens

go-error-reviewer

Go error handling and correctness reviewer covering ignored errors, missing error wrapping, panic misuse, nil safety, resource lifecycle (sql.Rows, resp.Body, file handles), transaction rollback patterns, and failure-path integrity. Use when Go code changes contain error returns, panic calls, sql.Rows, tx.Begin, HTTP…

johnqtcg/awesome-skills · 97 tokens

go-logic-reviewer

Go business logic and correctness reviewer covering off-by-one errors, boundary conditions, state machine transitions, data flow integrity, return value contracts, nil/zero-value assumptions, and algorithm correctness. Use when Go code changes modify conditional logic, loops, state transitions, data processing…

johnqtcg/awesome-skills · 81 tokens

go-quality-reviewer

Go code quality and style reviewer covering function length, nesting depth, naming conventions, mutable globals, interface design, receiver consistency, modern Go idioms (slog, generics, typed atomics), and golangci-lint integration. Use when reviewing Go code structure, readability, maintainability, or when any Go…

johnqtcg/awesome-skills · 85 tokens

dependency-auditor

Dependency audit specialist — manifest-graph axis covering outdated versions, transitive bloat, and Python ecosystems. Invoke when you want a focused supply-chain hygiene report.

lugassawan/swe-workbench · 36 tokens