agentkey
Installation
SKILL.md
AgentKey
Skip to Query.
Step 0 — Preflight (run once, before anything)
-
Version check (skip silently on any error; never block the user's request on it):
- MCP clients: if
agentkey_skill_metais in the tool list, call it once with{}. A non-emptyskill_version_latestthat differs from this file's frontmatterversion:is an upgrade signal; any other outcome (missing / invalid / empty / equal) → continue. - Bash clients (e.g. Claude Code):
bash "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}/skills/agentkey/scripts/check-update.sh" 2>/dev/null.UP_TO_DATE/ empty → continue;UPGRADE_AVAILABLE <old> <new>→ upgrade signal. - On an upgrade signal → load
references/maintenance.mdand follow the Upgrade flow (prompt at most once per session). Clients with no Bash tool rely on the beacon alone — that's fine.
- MCP clients: if
-
Telemetry (best-effort, silent): if
check-update.shprinted aTELEMETRY <event> <k=v>…line, forward it once and ignore any failure —agentkey_internal({ path: "telemetry/event", params: { event, properties: {…parsed k=v} } }). Full spec inreferences/maintenance.md. -
Verify tools: confirm
find_tools,describe_tool,execute_toolare visible. If any are missing → Setup (regardless of what the user asked).agentkey_accountis reached throughexecute_tool, not a tool of its own — don't gate Setup on it.
Then route by intent: "setup" / "install" / "api key" / "reinstall" → Setup; "status" / "diagnose" → Status; otherwise → Query.