/pysepal:pysepal-appfrom pysepal
Scaffolds or updates pysepal Solara and Voila apps following current pysepal architecture patterns. Covers app layout, GEE session wiring, MapApp integration, and notifications.
Ships in pysepal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when building or restructuring pysepal applications.
This skill documents pysepal 4.3.0. Compare that with the pysepal installed in the app's environment before relying on any API detail here:
python -c "import importlib.metadata as m; print(m.version('pysepal'))"
If the two differ, say so up front. Wherever this skill and the installed package
disagree, the installed package's docstrings win. Suggest claude plugin update pysepal when the skill is behind, or upgrading pysepal when the app is behind.
Always inspect the live repository before writing code. docs/guides/... paths
are relative to the pysepal repo root: ${CLAUDE_PLUGIN_ROOT} under a plugin
install, otherwise your local pysepal checkout.
For app architecture:
docs/guides/solara-app-builder.mddocs/guides/solara-gee-patterns.md for async GEE workdocs/guides/solara-notifications.md when the app has async work, task progress, toasts, or MapAppdocs/guides/solara-export.md when the app produces ee.Image or ee.FeatureCollection layers users can exportdocs/guides/solara-mapapp-component.md when the app uses MapAppdocs/guides/ipyvuetify-widgets.md when creating or extending VuetifyTemplate/Vue-backed widgetsFor repo-specific defaults and scaffold workflow:
references/defaults.mdreferences/file-matrix.mdreferences/scaffold-workflow.mdreferences/existing-repo-rules.mdreferences/validation-checklist.mdsolara.reactive() AppState.MapApp(...) from pysepal.solara.components.map_app, not the legacy pysepal.sepalwidgets.vue_app.MapApp.element(...).solara.lab.use_task(..., prefer_threaded=False).get_current_gee_interface() and related getters.SepalClient nor Drive omits @with_sepal_sessions and keeps setup_sessions(); see "Apps that don't use Earth Engine" in docs/guides/solara-app-builder.md.GEEInterface() in a container app: it raises SepalSessionError in a per-connection runtime. Pass gee_interface=get_current_gee_interface() to SepalMap, AoiModel, asset inputs and process_admin, or SepalMap(gee=False) when the map has no Earth Engine layers.SepalClient for all runtime user-file reads, writes, listing, and directory creation.Path, os, shutil, glob, or open() to walk/read/write user workspace files in Solara container apps..observe() architectures as the primary pattern for new apps.gee_interface.create_task() as the default for new Solara GEE apps.For GEE/container apps, the SEPAL user workspace is remote from the container
process. Always pass get_current_sepal_client() into models, widgets, and
scripts that handle user files, and use:
sepal_client.files.list(folder, extensions=...) to browse user folderssepal_client.files.read_bytes(...), .read_text(...), or .read_json(...)
to read user filessepal_client.files.write(path, content, overwrite=...) to write generated
user filessepal_client.files.mkdir(path, parents=True) to create user folderssepal_client.results_path as the base for module-owned outputs under
module_results/<module_name>Do not branch on DEPLOY_ENV or local/dev mode to write user data with
Path.mkdir, Path.open, Path.write_text, os.listdir, os.walk, glob,
or similar filesystem APIs. Those APIs target the container filesystem, not the
authenticated user's SEPAL files. Container-local access is only acceptable for
read-only packaged assets, templates, and application source files.
When a new pysepal Solara app has async work or user-visible state transitions:
NotificationProvider() once in the app shell or shared layoutuse_notifications() inside pages, tiles, or widgets that own user-facing worknotifications.track(...) for long-running tasksuse_notifications(required=False) and provides inline fallback UX; without that flag the hook raises NotificationProviderErrorScope model:
solara run, or the active notebook kernel under Voila or plain Jupyter), not the routeDo not design route-local notification isolation unless the user explicitly wants a different bus model.
When a new pysepal Solara app produces GEE-backed layers users may want to take out of the app:
ExportSource per exportable layer with a lazy resolve callable that returns a ResolvedExportExportLauncher(sources=sources, button_text=True) into the right panel or toolbarNotificationProvider; do not add inline success/error widgets alongside ituse_export_dialog(...) + ExportDialog(controller=...) over re-implementing submission logic"GEO_TIFF", "GEO_JSON", "SHP", "CSV", "KML", "KMZ") at the pysepal to ee-client boundaryee-client>=3.2.1,<4 floor in the app's pyproject rather
than pinning an older ee-clientIf the app uses MapApp, notification UI should live in the same page or shared shell so it can consume the layout CSS variables published by MapApp.
Default placement:
Page() shellreferences/file-matrix.md.component/model, component/tile, component/widget, component/scripts, component/parameter, and component/message.references/validation-checklist.md before handoff.When editing an existing repo:
agents/openai.yaml (opens in a new tab)assets/gee-container/Dockerfile.template (opens in a new tab)assets/gee-container/docker-compose.yml.template (opens in a new tab)assets/gee-container/pyproject.toml.template (opens in a new tab)assets/gee-container/run_solara.sh.template (opens in a new tab)assets/gee-container/sepal_environment.yml.template (opens in a new tab)assets/gee-container/solara_app.py.template (opens in a new tab)assets/gee-container/supervisord.conf.template (opens in a new tab)assets/local-voila/app.py.template (opens in a new tab)assets/local-voila/pyproject.toml.template (opens in a new tab)assets/local-voila/run_solara.sh.template (opens in a new tab)assets/local-voila/sepal_environment.yml.template (opens in a new tab)assets/shared/pre-commit-config.yaml.template (opens in a new tab)assets/shared/state_manager.py.template (opens in a new tab)references/defaults.md (opens in a new tab)references/existing-repo-rules.md (opens in a new tab)references/file-matrix.md (opens in a new tab)references/local-voila-notebook-outline.md (opens in a new tab)references/scaffold-workflow.md (opens in a new tab)references/validation-checklist.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub openforis/pysepal --plugin pysepal2 skills in this plugin
Other plugins' skills for the same job