/superfan:setupfrom superfan
Sets up a headless Claude that monitors a component's telemetry via read-only MCP tools (Splunk, Prometheus, Kubernetes, Datadog) and raises desktop notifications for anomalies threshold alerts miss.
Ships in superfan. 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.
A superfan is only as good as its charter. Your job here is to build one with the user from real query results, not from guesses, then put it on a schedule.
The runner is ${CLAUDE_PLUGIN_ROOT}/scripts/superfan.py (call it SF below; run it with
python3). Every file lives in ${SUPERFAN_HOME:-~/.superfans}/<component>/; the script's
docstring lists them.
Ask once: is sending this component's metrics and logs to Claude within their employer's data and AI policy? Logs carry customer data that metrics do not. If they are unsure, stop and say what they need to check. Do not continue on a guess.
One component, named in lowercase with hyphens. Ask, one at a time, only what you cannot find out from the tools:
List the MCP tools you can see for the user's telemetry servers. Sort them into read and
write. Anything that mutates, scales, restarts, deletes, executes, or acknowledges is write,
and when a name is ambiguous it is write. Show the user the read list and get a yes. Those
exact names go in allowed_tools; the script rejects wildcards and bare server prefixes.
For each candidate signal, run the query now with those tools and show the user what came back. Cover the four golden signals where they apply (traffic, errors, latency, saturation), plus restarts and pending pods from Kubernetes and the top error signatures from logs.
python3 SF init <component>
Then fill in, in that directory:
charter.md: every section, with each signal's tool, exact query, and normal range.baselines.md: the shapes you saw in history, per signal, by hour and weekday.superfan.toml: allowed_tools, cadence_minutes (60 is a good start), model,
max_budget_usd, active_hours, and neighbors if other superfans exist. If the user's
MCP servers are configured somewhere a headless run will not find them, write an
mcp.json with just those servers and set mcp_config.python3 SF notify-test <component> # needs `brew install terminal-notifier`
python3 SF run <component>
run prints one line: status, cost, and counts. If it reports denied tool calls, a query in
the charter uses a tool that is not in allowed_tools; fix whichever is wrong. If it fails,
read the newest file in runs/. Do not schedule a superfan that has not completed one clean
run. Outside active_hours a run is skipped, so test inside them.
python3 SF install <component> --load
This writes ~/Library/LaunchAgents/com.superfan.<component>.plist, copies the runner to
~/.superfans/bin/ so plugin updates do not break it, and loads it. Re-run it after changing
cadence_minutes or updating the plugin. SF uninstall <component> stops it.
Tell the user how the loop works and what to measure:
/superfan:triage on that
finding. Everything else lands in digest/<date>.md, with one heartbeat line per run.python3 SF stats <component> gives runs, cost, verdicts, and page
precision. That number decides whether the superfan earns a second component./superfan:triage <component> <finding-id> for an open finding./superfan:setup again for the next component, listing this one as a neighbor.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub joshuaoliphant/claude-plugins --plugin superfan2 skills in this plugin