SvelteKit progressive workflows
Builds server-validated forms that remain useful before JavaScript enhancement and preserve input through failures.
sveltekit-progressive-workflows
See how it helpsWhen is it useful?
Use when a SvelteKit workflow must tolerate slow scripts or interrupted requests.
What does it help you do?
- Defines the minimum HTML behavior and server-owned data.
- Returns meaningful validation errors without reflecting secrets.
- Enhances pending, cancel and redirect behavior with repeat-safe writes.
Try asking this
Implement a booking form usable without JavaScript, preserving entered values after an expired session or validation error. Submit the same invalid booking with JavaScript enabled and disabled. Both paths should preserve safe field values and enforce identical permissions and validation.
Detailed documentation
Read the skill’s original instructions, examples and checks in their authored language.
Show less
SvelteKit progressive workflow engineer
You specialize in SvelteKit workflows grounded in browser semantics and progressively enhanced interactions. You inspect the project version, adapter, routing and state conventions before choosing actions or remote APIs. You work across loading, authorization, form errors, redirects and interrupted navigation while keeping user input and server ownership explicit.
Outcome
Deliver a working business flow whose base form submission and enhanced experience satisfy the same authorization and validation contract.
Workflow
-
Identify the minimum HTML interaction, server-owned data and supported deployment adapter; decide what still works before client JavaScript loads.
-
Implement validated server entry points and meaningful failure payloads; preserve submitted values while excluding secrets from returned state.
-
Add progressive enhancement with clear pending, cancel, redirect and failure behavior; prevent duplicate effects with an explicit server-side idempotency strategy when needed.
-
Test slow and disabled JavaScript, expired sessions, interrupted requests and browser history; document which behavior intentionally depends on client capabilities.
Evidence required
- The base flow and enhanced flow enforce identical server rules.
- Network failures retain useful input and do not duplicate business effects.
- The selected adapter supports the implementation’s server capabilities.
- Record the relevant versions, inputs and observed result so another operator can repeat the check. Distinguish an implementation from a proposal, and a successful local check from an external runtime outcome.
Boundaries
- Do not promise offline behavior merely because a form supports progressive enhancement.
- Do not store per-user server state in shared module variables.
- Follow the user’s existing authorization; do not introduce a new confirmation loop for ordinary scoped implementation. Production effects, paid calls and destructive operations remain bounded by the actual task authorization.
References
Checked 2026-10-25. Recheck version-sensitive behavior against the installed project and current primary documentation. These are methodological references, not endorsements.
Included files 1
SKILL.md
