agentsclimarketplace

Pythonide automation

Skill Python-IDE/pythonide-skills/pythonide-automation

Official Agent Skills for building PythonIDE AppUI MiniApps, widgets, automations, and native iOS integrations with Codex, Cursor, and Claude Code.

Install
npx -y skills add Python-IDE/pythonide-skills --skill pythonide-automation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Build PythonIDE automation scripts with shortcuts, keyboard snippets, legacy ui views, plain Python batch tools, and extension-facing workflows. Use when the user wants Shortcut handoff, editor keyboard helpers, Pythonista-style ui, or non-AppUI scripts without a full MiniApp shell.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.8 KB, as published. Nobody here has run it

PythonIDE Automation

Rules for scripts and automation surfaces that are not AppUI MiniApps or widgets.

Read Before Coding

  1. Shortcuts guide
  2. shortcuts module
  3. keyboard module
  4. ui module for legacy imperative UI
  5. Automation extension index
  6. Load pythonide-native when 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 ui scripts
  • 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, or open_settings from user-triggered actions
  • Treat False or 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")

ui Rules

  • Frame-based UIKit-style hierarchy with explicit frames
  • Assign callable handlers; do not invoke callbacks while building controls
  • Present once with .present("sheet") or .present("fullscreen")
  • Do not mix ui and appui unless repairing an existing hybrid with explicit user consent
  • Not for new MiniApps; prefer pythonide-appui

Plain Python Scripts

  • Use stdlib when sufficient
  • Import native modules only when iOS integration is required; follow pythonide-native
  • Print or file output is acceptable when the user does not want preview UI
  • Do not wrap side-effect-only code in AppUI

Hard Stops

  • No AppUI navigation for Shortcut-only tasks unless the user asked for a launcher UI
  • No guessed Swift App Intent names without source inspection
  • No objc_util unless the user explicitly needs advanced runtime bridging
  • c_extensions is reference-only; do not import as runtime code

Runtime Choice

OutcomeRuntime
Editor helper / Shortcut / batch scriptthis skill
Pythonista-style viewui
Native iOS capability onlypythonide-native
Interactive product UIpythonide-appui

Examples

  • examples/run_shortcut/ — named Shortcut launcher function

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.