python-fallback

python-fallback is a skill for Claude Code, Codex from tam159/next-role. It costs 61 tokens per session (409 once invoked), scanned A, original, MIT.

A Python-based fallback for creating charts that the standard chart tool cannot express. Python is a programming language, and the workflow exports query results, builds the figure, and publishes it through the chart tool.

In plain words
What is it for?
Use it to create advanced charts from SQL query results, including dual-axis charts, annotated plots, subplots, small multiples, trend overlays, and error bars.
Why use it?
Some charts need features such as two vertical scales, annotations, multiple panels, trend lines, or error bars that a basic chart command may not support. This provides a defined route for those cases.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create advanced charts from SQL query results, including dual-axis charts, annotated plots, subplots, small multiples, trend overlays, and error bars.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tam159/next-role/python-fallback
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tam159/next-role --skill python-fallback
Clone the repo
git clone --depth 1 https://github.com/tam159/next-role

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-fallback

README.md
[![agentmods](https://agentmods.dev/badge/skills/tam159/next-role/python-fallback/github.svg)](https://agentmods.dev/skills/tam159/next-role/python-fallback)
Your own site
<a href="https://agentmods.dev/skills/tam159/next-role/python-fallback"><img src="https://agentmods.dev/badge/skills/tam159/next-role/python-fallback/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-fallback

Your own site · 80×15
<a href="https://agentmods.dev/skills/tam159/next-role/python-fallback"><img src="https://agentmods.dev/badge/skills/tam159/next-role/python-fallback.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 409 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.00409
Opus 5.5 $0.00024 $0.00164
Sonnet 5.5 $0.00012 $0.00082
Haiku 4.5 $0.00006 $0.00041

Measured 29d ago against content hash 17e8cc9b8b38, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-fallback scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

backend/agents/analytics_agent/skills/analytics-python-fallback/python-fallback/SKILL.md · 40 lines

What it actually says

Python fallback

create_chart draws every supported kind from SQL, with no approval needed. Reach for this only when the visual itself is outside it: dual y-axes, annotations, subplots or small multiples, a trend line over a scatter, error bars.

Export the data first:

run_sql("SELECT ...", save_as="rows.csv")     -> returns an absolute path

Then write a script and run it with execute (this pauses for approval):

import pandas as pd
import plotly.graph_objects as go
from plotly.subplots import make_subplots

df = pd.read_csv("/tmp/nextrole-analytics/<thread id>/rows.csv")
fig = make_subplots(specs=[[{"secondary_y": True}]])
fig.add_trace(go.Bar(x=df["day"], y=df["runs"], name="runs"))
fig.add_trace(go.Scatter(x=df["day"], y=df["cost_usd"], name="cost"), secondary_y=True)
fig.write_json("/tmp/nextrole-analytics/<thread id>/runs-and-cost.plotly.json")

Then publish it, and it renders like any other chart:

create_chart(kind="bar", title="Runs and cost per day",
             figure_path="/tmp/nextrole-analytics/<thread id>/runs-and-cost.plotly.json")

Scripts have no database credentials by design — data reaches them only through save_as. pandas and plotly are installed; do not install anything.

Do not set colors or a template in a custom figure. The interface themes every chart for light and dark at render time, and hard-coded colors survive into the wrong theme.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 29d ago First seen · 40 lines · 61 tokens per session scan A 17e8cc9b8b38

Subscribe to this mod's changes

python-fallback is a skill published in the GitHub repository tam159/next-role (70 stars, last pushed 15d ago), licensed MIT. It adds 61 tokens to every session and 409 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

python-fallback compared with skills from other repositories

python-fallback next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-fallbacktam159/next-roleSkill7015d agoMITA61Claude Code, Codex
langgraph-docslangchain-ai/deepagentsSkill32ktodayMITA62Claude Code, Codex
codingbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A18Claude Code, Codex
python-mathtrpc-group/trpc-agent-goSkill1.9kyesterdayApache-2.0A13Claude Code, Codex
python-djangoOrcaQubits/agentic-commerce-skills-pluginsSkill4116d agoMITA46Claude Code
py-reviewerRaNDoM6913/claude-code-superkitSkill3todayMITA35Claude Code
showcase-notesljxpython/ai-agent-platformSkill169todaynoneA18Claude Code, Codex