review-go-oop

Reviews and fixes Go OOP and LLD tutorial sections in go.json for correctness and quality.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/imrishuroy/algopatterns --skill review-go-oop-imrishuroy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-go-oop
Source: https://github.com/imrishuroy/algopatterns/tree/main/.claude/skills/review-go-oop
Command: npx skills add https://github.com/imrishuroy/algopatterns --skill review-go-oop-imrishuroy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Go OOP and LLD tutorial content in go.json can contain broken code examples, inaccurate design pattern implementations, missing test coverage, and mismatched console output. This Skill systematically reviews each tutorial section, verifies every code example compiles and runs, and applies fixes so learners get correct, runnable material. ## Core Features & Use Cases - Code Verification: Extracts every code example from a section, compiles it with go build, runs it, checks concurrent code with the race detector, and compares actual output to documented output. - Design Pattern & LLD Accuracy Checks: Validates GoF pattern implementations, Go idioms (consumer-defined interfaces, sync.Once singletons), thread-safety, and LLD requirements coverage for problems like caches, rate limiters, and circuit breakers. - Content Quality Enforcement: Verifies textbook-style explanations, mandatory output blocks after code, test examples for intermediate sections, ASCII diagrams, and JSON validity. - Use Case: Ask to review the lld-cache section; the Skill extracts the section, runs all code examples, flags a missing eviction test and an incorrect output block, fixes both, and re-verifies. ## Quick Start Ask the AI to review and fix the lld-cache section in the Go tutorial using the review-go-oop skill.

Frequently Asked Questions about review-go-oop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review a Go OOP tutorial section with this skill?

Invoke the slash command /review-go-oop with a section parameter, such as section:lld-cache, or ask directly to review a section like behavioral-patterns. You can choose review-only mode or review-and-fix mode to apply corrections automatically.

How does the skill verify Go code examples in tutorials?

It extracts each code example to a temp file, compiles it with go build, runs it with go run, and compares actual output to the documented output block. Concurrent code is additionally checked with go run -race to detect race conditions.

Which Go tutorial sections can be reviewed?

The skill covers 24 OOP and LLD sections in go.json, including structs, interfaces, SOLID principles, creational/structural/behavioral patterns, and LLD problems like in-memory cache, rate limiter, parking lot, pub/sub, and circuit breaker.

Does the skill check test code in Go design pattern sections?

Yes. Design pattern, SOLID, and LLD sections require table-driven tests with mocks implementing interfaces. The skill runs go test -v and go test -race, verifies tests pass, and confirms output matches the documented test output.

What causes a Go tutorial section to fail review?

A section fails if code lacks a following output block, output does not match actual execution, code does not compile or run, a design pattern section lacks test examples, or an LLD section lacks comprehensive tests. Jargon used before definition also fails the textbook-style check.