review-go-tutorial

Reviews and fixes Go tutorial sections in go.json, verifying code examples compile and run correctly.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Go tutorial content stored in JSON can contain broken code examples, technical inaccuracies, and structural gaps that mislead learners. This Skill automates the review of tutorial sections by extracting every code example, compiling and running it (including race detection), checking technical accuracy against Go documentation, and applying fixes. ## Core Features & Use Cases - Code Verification: Extracts every code example from a section and validates it with go build, go run, and go run -race, comparing actual output to documented output. - Structured Quality Review: Checks structure, technical accuracy (including Go 1.22+ semantics), beginner-friendliness, style compliance, and JSON validity against detailed checklists. - Fix and Re-verify: Applies corrections to code, output blocks, and explanations directly in go.json, then re-runs verification to confirm the fixes. - Use Case: Ask to review the deadlocks section of the Go tutorial; the Skill extracts all examples, runs them with the race detector, reports issues by severity, fixes them, and confirms everything passes. ## Quick Start Ask the AI to review and fix the channels section of the Go tutorial in go.json.

Frequently Asked Questions about review-go-tutorial

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

FAQPage Schema
How do I review a Go tutorial section in go.json?

Invoke the skill with a section ID, for example by asking to review the channels section. It reads the section from frontend/src/lib/languages/go.json, extracts all code examples, verifies them, and reports issues with severity and location.

How do I verify Go code examples compile and run correctly?

The skill extracts each code example to a temp file, runs go build to check compilation, go run to execute it, and go run -race for concurrency code. It then compares actual output against the documented output block.

Can it fix tutorial content issues automatically?

Yes, when invoked in review-and-fix mode it corrects broken code, updates inaccurate output blocks, fixes technical inaccuracies against Go documentation, and re-runs verification. A review-only mode reports issues without making changes.

Does it check for Go race conditions and deadlocks?

Yes, concurrency examples are executed with the Go race detector via go run -race. It also checks for goroutine leaks, unbalanced mutex Lock/Unlock pairs, unpaired channel sends and receives, and potential deadlocks.

What Go versions does the tutorial review support?

The review targets idiomatic Go 1.22+ practices, including the changed loop variable capture semantics introduced in Go 1.22. Content mentioning loop variable bugs is checked to confirm it notes the Go 1.22 fix.