/tools:phoenixfrom tools
Queries Arize Phoenix telemetry via GraphQL/SQL to audit token spend, profile tool calls, and generate condensed session outlines without loading full spans.
Ships in tools. 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.
Read when SKILL.md points to them.
Query Arize Phoenix telemetry, audit built-in token spend and tool usage on the server, and generate readable, scannable session outlines from lean column projections without loading whole-span payload archives into context.
.jsonl files, invent default URLs, or guess project names.describeSqlSchema, executeSql (sql), and executeGraphqlQuery (query, variables).
services portal: portal_codemode_execute runs a JavaScript async function calling await codemode.phoenix_executeSql({ sql }), codemode.phoenix_executeGraphqlQuery({ query, variables }), or codemode.phoenix_describeSqlSchema({}).phoenix_execute runs Python calling await call_tool('executeSql', {'sql': sql}) and the same names.portal_codemode_search before retrying.executeSql returns an error object rather than raising, so check for error before reading rows. Each result echoes its rewritten SQL under applied (~2.5 KB); drop it before returning rows.describeSqlSchema() before writing custom SQL so queries match the active SQL dialect (SQLite vs PostgreSQL) and allowlisted schema (spans.trace_id and spans.project_name do not exist -- join project_sessions -> projects -> traces -> spans).s.attributes or s.events blobs in list, cost, or outline queries.s.start_time. Before applying LIKE or LOWER to s.attributes, narrow indexed s.start_time + s.span_kind (and parent_id/name filters) inside a WITH ... AS MATERIALIZED (...) CTE so SQLite does not parse JSON blobs across every span in the window.LIMIT N on s.id > <cursor_id>, stop when len(rows) < N (not on !row_count_is_partial, which reflects only the server's 500-row cap).Load only the resource needed for the task from resources/:
resources/span-store.md before writing custom SQL (session.id, slug, trace_id, task.id, allowed SQLite functions, dual-emitter deduplication).resources/session-costs.graphql (GetProjectCosts, GetSessionCosts -- one operation per call, zero span fetches).resources/session-audit.sql (deduplicates dual-emitted model spans and aggregates tool/MCP calls, latencies, errors, and payload bytes).resources/session-outline.sql (keyset-pageable, column-projected chronological steps omitting raw tool output JSON, plus slug/trace_id resolution).resources/cost-by-task.sql (uses built-in span_costs).resources/spend-by-harness-model.sql (server-side chunked sums with llm.message.id deduplication, plus zero-JSON daily span_costs rollups).resources/cross-session-search.sql (MATERIALIZED user-prompt and tool-argument searches, error search, windowed sweeps, subagent discovery, and Query 3 single-span payload drill-down).<slug>.outline.mdGenerate a single condensed outline <slug>.outline.md using the layout below (no full-payload transcript variant) and write local files with native file tools.
Assemble the skeleton in the sandbox. In one sandbox call, run GetSessionCosts, session-audit.sql, and the session-outline.sql paging loop. Build every deterministic part of the layout in code: header, overview tables, tool bullets, and word-trimmed excerpts. Return only that Markdown skeleton, in turn-range chunks of a few KB each, so model judgement is spent on what code cannot do: turn titles and collapsing dual-emitter duplicates.
# Session Outline: <slug>, followed by session ID, project, UTC start/end timestamps, wall duration, turn/model/tool/error counts, token breakdown (input, cache_read, cache_write, output), USD cost (session-costs.graphql or session-audit.sql), subagent labels, and Phoenix redirect (/redirects/sessions/<session_id>) when known.## Overview executive summary tables:
### Turns: turn number linked to #t<n>, concise ~5-8 word title, start UTC, duration, model/tool counts, output tokens, and turn cost.### Cost & Tool Profile: per-model calls, tokens, and cost, plus per-tool / upstream MCP call count, total/max latency, and error count from session-audit.sql.### Errors: included when errors > 0, listing step link #t<n>-<m>, failing span/tool name, and status message.<a id="t<n>"></a>, ## Turn <n> · <title>):
[session] and [span] /redirects/spans/<root_span_id> links when UI URL is known) and substantive prompt blockquote (stripping <system-reminder>, <skill>, and <ADDITIONAL_METADATA> wrappers).<a id="t<n>-<m>"></a>, ### <n>.<m>) showing model, measured duration (omit if NULL), cost, tokens, and assistant reasoning from reasoning_excerpt / output_excerpt.*_len) back to the last complete word.* <a id="t<n>-<m>"></a><n>.<m>) with action summary, tool/service, duration, error status, and single-line target/args, plus ### Turn <n> reply blockquote when final reply differs from the last model step.<slug>.outline.md to the durable destination specified by the composed workflow and task (for example, a PKB knowledge note with ~/... host paths sanitized, or a designated repository path) rather than leaving it only in ephemeral scratch. A PKB create call requires slug (at most 30 characters): pass out-<slug> as both id and slug.#t<n>-<m>, execute Query 3 in resources/cross-session-search.sql for that span_id only and cite #t<n>-<m>.resources/cost-by-task.sql (opens in a new tab)resources/cross-session-search.sql (opens in a new tab)resources/session-audit.sql (opens in a new tab)resources/session-costs.graphql (opens in a new tab)resources/session-outline.sql (opens in a new tab)resources/span-store.md (opens in a new tab)resources/spend-by-harness-model.sql (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
phoenix, telemetry, session-outlines, token-audit, graphql-queries
npx claudepluginhub nicsuzor/academicops --plugin toolsOther plugins' skills for the same job
15 skills in this plugin
/analystRun academic research data analysis reproducibly -- research data immutability, canonical absolute path resolution, source-derived parity checks, transformation vs presentation layer separation, and defensible statistical methodology. Use for empirical research pipelines, modifying models/marts, data-quality testing, or result documentation. Engine details in dbt, streamlit, and python-viz skills./argument-auditFormally audit and stress-test a scholarly, legal, policy, or qualitative argument using Chained Toulmin Argdown -- identifying logical gaps, hidden assumptions, overclaiming (scope and construct drift), methodological mismatches, and under-explored rival explanations at a controlled granularity floor. Use for "audit this argument", "check if this argument holds up", "find the gaps in this chapter/thesis", "evaluate argument strength", or "what assumptions are missing". Not for reconstruction alone (use argument-extraction), for a readable map page with open issues (use argument-map), or for agent handback reports (use premise-check)./argument-extractionExtract and reconstruct the argument a text or draft makes -- main conclusion, chained premises, warrants, and evidence traceability -- and emit it as parser-valid Chained Toulmin Argdown at a controlled level of granularity. Use for "extract the argument", "map the argument", "reconstruct the reasoning", "argdown this". Not for evaluating the argument (use argument-audit), for a readable map with gaps tagged (use argument-map), or for agent handback reports (use premise-check).