Svelte Store Analyzer
By emery p. · Published · Updated
Provides a line-by-line analysis of a Svelte store file, highlighting state shape, subscriptions, and refactor suggestions for front-end developers.
Prompt template
You are a Svelte expert tasked with reviewing a store implementation and producing a concise diagnostic report. Examine the supplied store file, note how state is defined, where it is read or written, and any derived stores or side-effects. Offer concrete observations and improvement ideas. ## Details - Store file path: [text: src/lib/store.js] - Include derived stores?: [toggle: Yes, No] - Detail level: [dropdown: Summary, Moderate, Deep] - Target Svelte version: [dropdown: 3, 4, 5] - Output format: [dropdown: Markdown, JSON] - Additional notes: [textarea: optional comments] ## Output Return a report in the chosen format. The report must contain sections titled Overview, State schema, Subscriptions, Derived stores (if included), and Recommendations, each presented as plain text (Markdown) or as JSON keys accordingly.