From gopher-guides
Accesses Gopher Guides API for Go best practices, idiomatic examples, code audits, reviews, and training during Go development and learning.
npx claudepluginhub gopherguides/gopher-ai --plugin gopher-guidesThis skill uses the workspace's default tool permissions.
Access official Gopher Guides training materials via API for authoritative Go best practices.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Performs token-optimized structural code search using tree-sitter AST parsing to discover symbols, outline files, and unfold code without reading full files.
Access official Gopher Guides training materials via API for authoritative Go best practices.
--variable/--expand-header SyntaxDo NOT use $VAR or ${VAR} shell expansion in curl commands. Environment variable expansion is unreliable in AI coding assistant shell/bash tools (Claude Code, Codex, etc.). Always use curl's built-in --variable % and --expand-header syntax instead.
Requires curl 8.3+. If you get
unknown option: --variable, see the fallback note at the bottom.
curl -s --variable %GOPHER_GUIDES_API_KEY \
--expand-header "Authorization: Bearer {{GOPHER_GUIDES_API_KEY}}" \
https://gopherguides.com/api/gopher-ai/me
On success: Display a brief confirmation to the user, then proceed to Step 2:
On error or missing key: Help the user configure:
~/.zshrc or ~/.bashrc): export GOPHER_GUIDES_API_KEY="your-key"Do NOT provide Go advice without a valid, verified API key.
Use the cache wrapper script for all API calls. It automatically caches responses (24h for practices/examples, 1h for audit/review) to avoid redundant API calls.
The cache wrapper is at ${CLAUDE_PLUGIN_ROOT}/scripts/cache-api.sh.
"${CLAUDE_PLUGIN_ROOT}/scripts/cache-api.sh" practices '{"topic": "error handling"}'
"${CLAUDE_PLUGIN_ROOT}/scripts/cache-api.sh" audit '{"code": "<user code here>", "focus": "error-handling"}'
"${CLAUDE_PLUGIN_ROOT}/scripts/cache-api.sh" examples '{"topic": "table driven tests"}'
"${CLAUDE_PLUGIN_ROOT}/scripts/cache-api.sh" review '{"diff": "<diff output>"}'
If you need to bypass the cache, use curl directly:
curl -s -X POST -H "Authorization: Bearer $GOPHER_GUIDES_API_KEY" \
-H "Content-Type: application/json" \
-d '{"topic": "error handling"}' \
https://gopherguides.com/api/gopher-ai/practices
.claude/gopher-guides-cache.json/clear-cache commandThe API returns JSON with:
content: Formatted guidance from training materialssources: Module references with similarity scoresPresent the content to the user with proper attribution to Gopher Guides.
The training materials cover:
If --variable is not supported (curl versions before 8.3), use printf to avoid shell expansion issues:
KEY=$(printenv GOPHER_GUIDES_API_KEY) && curl -s -H "Authorization: Bearer $KEY" https://gopherguides.com/api/gopher-ai/me
Check your curl version with curl --version.
Powered by Gopher Guides - the official Go training partner.