stac-custom-extensions
Installation
SKILL.md
Stac Custom Extensions
Overview
Use this skill to add custom widgets/actions that serialize cleanly and register correctly in a Stac app.
Workflow
- Choose extension type: widget or action.
- Scaffold model and parser files with scripts.
- Add generated files to app codebase and run codegen.
- Verify parser registration in
main.dart. - Validate runtime wiring with a minimal usage example.
Required Inputs
- PascalCase extension name.
- Runtime type id (
typeoractionType). - Output directory for generated files.
- Path to
main.dartfor registration check.
Output Contract
- Produce model + parser pair with consistent type ids.
- Include registration snippet for
Stac.initialize. - Include
build_runnercommand when json serialization is used.
References
- Read
references/custom-widget-checklist.mdfor widget model/parser flow. - Read
references/custom-action-checklist.mdfor action model/parser flow. - Read
references/parser-registration.mdfor initialization wiring. - Read
references/converters-guide.mdfor converter usage patterns.
Scripts
scripts/scaffold_custom_widget.py --name <Name> --type <widgetType> --out-dir <path>scripts/scaffold_custom_action.py --name <Name> --action-type <actionType> --out-dir <path>scripts/check_parser_registration.py --main-dart <path> --parser-class <ClassName>
Templates
assets/templates/custom_widget.dart.tmplassets/templates/custom_widget_parser.dart.tmplassets/templates/custom_action.dart.tmplassets/templates/custom_action_parser.dart.tmpl
Related skills
More from stacdev/stac
stac-screen-builder
Build Stac DSL screens and themes from product requirements with safe defaults and reusable templates. Use when users ask to create or refactor StacScreen files, map UI requirements to Stac widgets/actions/styles, or scaffold new screen/theme files.
45stac-troubleshooter
Diagnose Stac build, deploy, rendering, caching, and navigation issues using repeatable checks. Use when users report stac build finding no screens, deploy mismatches, runtime unknown widget/action errors, cache staleness, or migration regressions.
44