/gopher-guides:gopher-guidesfrom gopher-guides
Accesses Gopher Guides Go training materials via REST API for authoritative best practices, code review, and examples. Activates when users explicitly ask for professional Go recommendations or training-backed guidance.
Ships in gopher-guides. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
<PLUGIN_ROOT> is notation. Replace it with a concrete absolute plugin root before every resource read or command:
SKILL.md path, then ascend two directories (skills/<name> -> plugin root).${CLAUDE_PLUGIN_ROOT} value.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 <PLUGIN_ROOT>/scripts/cache-api.sh.
/bin/bash "<PLUGIN_ROOT>/scripts/cache-api.sh" practices '{"topic": "error handling"}'
/bin/bash "<PLUGIN_ROOT>/scripts/cache-api.sh" audit '{"code": "<user code here>", "focus": "error-handling"}'
/bin/bash "<PLUGIN_ROOT>/scripts/cache-api.sh" examples '{"topic": "table driven tests"}'
/bin/bash "<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
${GOPHER_GUIDES_CACHE_FILE:-${XDG_CACHE_HOME:-$HOME/.cache}/gopher-ai/gopher-guides-cache.json}.claude/gopher-guides-cache.json data remains usable without importing project-controlled responses into the shared user cache: set GOPHER_GUIDES_CACHE_FILE="$PWD/.claude/gopher-guides-cache.json" while working in that project./gopher-guides:clear-cache.$gopher-guides:clear-cache.The 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.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gopherguides/gopher-ai --plugin gopher-guides2 skills in this plugin
Other plugins' skills for the same job