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.
npx agentmods add skills/python-ide/pythonide-skills/pythonide-widgetnpx skills add Python-IDE/pythonide-skills --skill pythonide-widgetgit clone --depth 1 https://github.com/Python-IDE/pythonide-skillsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00061 | $0.01113 |
| Opus 5 | $0.00030 | $0.00557 |
| Sonnet 5 | $0.00012 | $0.00223 |
| Haiku 4.5 | $0.00006 | $0.00111 |
Grade A, and why
pythonide-widget 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PythonIDE Widget
Execution rulebook for Python-first iOS Home Screen widgets.
Read Before Coding
- Widget module
- Widget schema and widget.pyi
- llms-full.txt widget surface
- Focused guides: layout, parameters, interaction, timeline
Do not use AppUI, SwiftUI, TSX, HTML, or undocumented widget helpers.
Workflow
- Confirm the user wants a widget, not an AppUI MiniApp (
pythoniderouter). - Write one runnable Python file:
import widget, onewidget.Widget(...), documented primitives,w.render(). - Default target family: medium Home Screen unless the user asks otherwise.
- Use
widget.paramfor preview-sheet tunables; usewidget.statefor desktop interactions. - Branch with
widget.family,widget.family_value(...),w.when(...), orw.unless(...)only when supporting multiple families. - Repair layout issues before claiming completion.
Default Pattern
import widget
ctx = widget.context
accent = widget.param.color("Accent", "#34D399")
count = widget.state.int("count", 0)
w = widget.Widget(background=("#F8FAFC", "#0B1220"), style="clean")
w.text("Today", size=16, weight="semibold").line_limit(1).min_scale(0.72)
w.value(count, unit="x").content_transition("numericText").monospaced_digit()
w.progress(min(int(count), 10), total=10, color=accent, height=8)
if ctx.content_height >= 120:
w.button("+1", action=count.increment(), background=accent, color="#FFFFFF")
w.render()
Generation Rules
- One
widget.Widget()entry per script - Prefer documented primitives:
text,rich_text,value,symbol,svg,image,shape,rect,circle,path,table,line_chart,bar_chart,ring_chart,progress,row,column,layer,grid,region,canvas,button,link,toggle widget.param.color/slider/number/text/bool/choice/filefor preview-editable valueswidget.stateactions:increment(),decrement(),set(value),toggle(),toggle_item(value)- Layout containers use
withblocks:with w.row(spacing=8):then child calls on indented lines - Use
ctx = widget.contextfor size-aware composition insidectx.content_width/ctx.content_height - Add
.line_limit(...)and.min_scale(...)to long text - Widget animations are timeline/state-update animations, not continuous 60fps app loops
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- yesterday First seen · 98 lines · 61 tokens per session scan A e8def4720cfd
pythonide-widget is a skill published in the GitHub repository Python-IDE/pythonide-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 1,113 once invoked, about $0.0003 per session on Opus 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-08-31.
Other skills, from other repositories
build-run-debug
Build, run, and debug local macOS apps and desktop executables using shell-first Xcode and Swift workflows. Use when asked to build a Mac app, launch it, diagnose compiler or linker failures, inspect startup problems, or debug desktop-only runtime issues.
macos-swiftpm
Build, run, and test SwiftPM macOS packages and executables. Use when the repo is package-first or has no Xcode project.
firebase-messaging
Use when setting up Firebase Cloud Messaging, managing permissions and tokens, handling background/foreground notification taps, or dispatching messages server-side (HTTP v1).
curate-a-team-library
Use when building a managed team skills library for a real stack. Map work to shelves, browse before curating, write meaningful whyHere notes, and create a starter pack once the first pass is solid.
effective-dart
Use when writing Dart code, reviewing for style, refactoring naming, adding doc comments, structuring imports, or enforcing type annotations.
firebase-ai
Use when setting up firebaseai, generating text/chat with Gemini, streaming AI output, building multimodal prompts, or handling AI errors.