From gopher-guides
Accesses authoritative Gopher Guides Go training materials via REST API for code reviews, best practices, and examples. Triggers when user requests professional Go recommendations or training-backed audits.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gopher-guides:gopher-guidesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Access official Gopher Guides training materials via API for authoritative Go best practices.
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 --variable %GOPHER_GUIDES_API_KEY \
--expand-header "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.
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.
npx claudepluginhub gopherguides/gopher-ai --plugin gopher-guidesApplies Go best practices for performance, modern syntax, generics, patterns, testing, error handling, and concurrency when writing or reviewing Go code.
Queries pkg.go.dev API via godig CLI to look up Go package docs, API signatures, symbols, examples, versions, importers, licenses, and CVEs.
Provides expert guidance on Go 1.21+ development including modern language features, advanced concurrency patterns, performance optimization, and production-ready microservices architecture.