pythonide-appui

A guide for building PythonIDE MiniApps with native iOS-style screens such as forms, lists, tabs, search, navigation, storage, and media features. It also covers bridges to photos, camera, location, maps, video, and sharing.

In plain words
What is it for?
It is for creating or changing interactive iOS MiniApps, including settings screens, list-and-detail apps, searchable views, and apps that use device media or location features.
Why use it?
It provides the required structure for interactive MiniApps and keeps UI rendering separate from actions such as permissions, storage, and network calls.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/python-ide/pythonide-skills/pythonide-appui
Any agent
npx skills add Python-IDE/pythonide-skills --skill pythonide-appui
Clone the repo
git clone --depth 1 https://github.com/Python-IDE/pythonide-skills

Made for: Claude Code, Codex.

Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,109 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00078 $0.02109
Opus 5 $0.00039 $0.01055
Sonnet 5 $0.00016 $0.00422
Haiku 4.5 $0.00008 $0.00211

Measured yesterday against content hash 51dad44bf7ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pythonide-appui 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.

The scan reads SKILL.md. This mod also ships 2 executable files (examples/counter/main.py, examples/photo_notes/main.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

pythonide-appui/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PythonIDE AppUI

Execution rulebook for native AppUI MiniApps. Pair with pythonide-native whenever the workflow touches iOS permissions, sensors, media capture, networking side effects, or secure storage.

Read Before Coding

  1. appui quickstart
  2. AppUI module
  3. UI patterns
  4. AppUI schema and appui.pyi for signatures
  5. llms-full.txt when unsure about exported symbols
  6. Load pythonide-native before importing any photos, location, permission, notification, etc.

Chinese module pages on pythonide.xin are valid deep references for scenarios and examples.

Workflow

  1. Confirm AppUI is the right runtime (pythonide router). Do not use AppUI for widgets or frame-loop games.
  2. Choose structure first: Form, List, TabView, NavigationStack, dashboard ScrollView.
  3. Define module-level appui.State or ReactiveState.
  4. Write named zero-argument callbacks; callbacks mutate state or call native APIs.
  5. Keep body() pure: return a view tree only. No permissions, network, storage writes, notifications, timers started, or navigation side effects inside body().
  6. End with exactly one appui.run(body, state=state, presentation=...).
  7. For editable business data, use storage.get_json(..., default) only for small settings; use database for queryable records, caches, favorites, history, playlists, or large lists.

Entry Pattern

import appui

state = appui.State(count=0, status="Ready")


def increment():
    state.count += 1
    state.status = "Updated"


def body():
    return appui.NavigationStack(
        appui.Form([
            appui.Section("Counter", [
                appui.LabeledContent("Value", value=str(state.count)),
                appui.Button("+1", action=increment).button_style("bordered_prominent"),
            ], footer=state.status),
        ]).navigation_title("Counter")
    )


appui.run(body, state=state, presentation="fullscreen_with_close")

Read the full file on GitHub · 169 lines

Files

What ships with it

2 files 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.

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. yesterday First seen · 169 lines · 78 tokens per session scan A 51dad44bf7ee

Subscribe to this mod's changes

pythonide-appui is a skill published in the GitHub repository Python-IDE/pythonide-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 78 tokens to every session and 2,109 once invoked, about $0.0004 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.