Skip to content

Latest commit

 

History

History
80 lines (61 loc) · 4.02 KB

File metadata and controls

80 lines (61 loc) · 4.02 KB
name pythonide
description Route PythonIDE tasks to the correct runtime and companion skill (AppUI MiniApp, widget, scene, native modules, automation). Use when the user asks to build, fix, or choose a PythonIDE app, script, widget, game, or iOS capability workflow.
license MIT
version 1.0.0
last_updated 2026-06-10
user_invocable true

PythonIDE Router

Thin routing skill for external coding agents. Load a focused companion skill before generating code.

Read First

  1. AI one-page guide
  2. llms-full.txt for hard rules and public API surfaces
  3. Native capabilities schema before any import of iOS modules
  4. Focused module page on pythonide.xin/docs when examples or Chinese scenario text help

Do not invent APIs from SwiftUI, UIKit, React, browser, tkinter, PyQt, Flask, or Streamlit memory.

Runtime Routing

Runtime Import Skill Doc
AppUI MiniApp import appui pythonide-appui appui-module
Home Screen widget import widget pythonide-widget widget-module
2D game / scene import scene pythonide-scene scene-module
Legacy UI script import ui pythonide-automation ui-module
Turtle graphics import turtle pythonide-scene turtle-module
Plain Python / shortcuts stdlib + native modules pythonide-automation / pythonide-native ios-native

Companion Skills

Skill Load when
pythonide-appui Forms, lists, tabs, navigation, dashboards, AppUI media controls
pythonide-native Permissions, sensors, photos, location, notifications, networking, keychain, device APIs
pythonide-widget WidgetKit home screen widgets
pythonide-scene Games, sprites, physics, frame loops, turtle
pythonide-automation Shortcuts, keyboard snippets, legacy ui, batch scripts

Decision Rules

  1. Default interactive apppythonide-appui
  2. Home Screen widgetpythonide-widget (never AppUI)
  3. Continuous animation / game looppythonide-scene (never AppUI navigation)
  4. Needs iOS capability behind UIpythonide-appui + pythonide-native
  5. Only scripts / Shortcut / editor helperpythonide-automation or pythonide-native
  6. Pythonista-compatible imperative UIpythonide-automation (ui runtime)

AppUI + Native Pairing

When a MiniApp needs camera, photos, location, files, share, notifications, storage, or device state:

  1. Build the shell with pythonide-appui
  2. Load pythonide-native for module choice, permissions, and callback-side effects
  3. Prefer AppUI bridge components (PhotoPicker, CameraPicker, MapView, FileImporter, ShareLink, VideoPlayer) before imperative modules when the UI is inline
  4. Never call native APIs from AppUI body()

Schema Entry Kinds

Route from native capabilities schema:

Kind Meaning Action
module import <name> Read module doc + pythonide-native
appui_bridge appui.<Component> Read pythonide-appui bridge table
topic No direct import Follow topic doc; often AppUI-first
reference Docs only Do not import

Output Contract

  • Deliver runnable Python for PythonIDE unless the user asks for explanation only
  • One primary runtime per artifact
  • JSON-safe data in storage / database; secrets only in keychain
  • Say when hardware, permission, or preview validation cannot be proven from editor context