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-automationnpx skills add Python-IDE/pythonide-skills --skill pythonide-automationgit 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.00060 | $0.00927 |
| Opus 5 | $0.00030 | $0.00464 |
| Sonnet 5 | $0.00012 | $0.00185 |
| Haiku 4.5 | $0.00006 | $0.00093 |
Grade A, and why
pythonide-automation 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 — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PythonIDE Automation
Rules for scripts and automation surfaces that are not AppUI MiniApps or widgets.
Read Before Coding
- Shortcuts guide
- shortcuts module
- keyboard module
- ui module for legacy imperative UI
- Automation extension index
- Load
pythonide-nativewhen the script imports iOS modules
Use When
- Run an existing iOS Shortcut by name
- Open URL handoff or app settings through
shortcuts - Add editor keyboard buttons/snippets
- Build Pythonista-compatible
uiscripts - Plain Python utilities with optional native module calls
- JS/extension workflows referenced in js-api
Do Not Use When
- The user wants a native MiniApp with navigation and forms →
pythonide-appui - The user wants a Home Screen widget →
pythonide-widget - The user wants a game or frame loop →
pythonide-scene - PythonIDE can solve the task with only stdlib and no iOS integration
Shortcuts Pattern
import shortcuts
def open_daily_log():
return shortcuts.run_shortcut("Daily Log")
Shortcuts Rules
- Use only Shortcut names the user provided
- Call
run_shortcut,open_url, oropen_settingsfrom user-triggered actions - Treat
Falseor empty results as failure; do not claim success without evidence - Do not invent installed Shortcuts
- Do not launch shortcuts at import time or from AppUI
body()
Keyboard Pattern
Use keyboard module for editor buttons, groups, snippets, and cursor insertion. Keep handlers short and user-triggered.
Legacy ui Pattern
import ui
class DemoView(ui.View):
def __init__(self):
super().__init__()
self.frame = (0, 0, 320, 240)
button = ui.Button(title="Tap")
button.frame = (20, 20, 120, 40)
button.action = self.tapped
self.add_subview(button)
def tapped(self, sender):
ui.hud_alert("Tapped")
DemoView().present("sheet")
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 · 117 lines · 60 tokens per session scan A bfc5f5b1d8ab
pythonide-automation is a skill published in the GitHub repository Python-IDE/pythonide-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 60 tokens to every session and 927 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.