server-app-shell

Cache static shell assets with a service worker for offline-first PWAs.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/grvpanchal/elegant-opencode --skill server-app-shell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: server-app-shell
Source: https://github.com/grvpanchal/elegant-opencode/tree/main/skills/server-app-shell
Command: npx skills add https://github.com/grvpanchal/elegant-opencode --skill server-app-shell

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PWAs often suffer from slow initial renders and inconsistent offline experiences. App Shell provides a cached, static HTML/CSS/JS skeleton that loads instantly while dynamic content streams in.

Core Features & Use Cases

  • Service Worker caching of the shell to enable instant loads and offline capability.
  • Inline critical CSS to improve first paint performance.
  • Skeleton loading screens and a stable app shell to bridge content loading.
  • Clear separation between static shell and dynamic content, with a plan for offline fallback pages.
  • Guidance for integrating the shell with routing, headers, navigation, and footers across frameworks.

Quick Start

Create a minimal app shell and service worker strategy that caches the shell assets and serves skeleton content while API data loads.

Frequently Asked Questions about server-app-shell

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is an app shell model in PWA development?

An app shell is a cached static HTML/CSS/JS skeleton that loads instantly while dynamic content streams in. It provides the minimal UI framework for your progressive web application, enabling fast first paint and offline support.

How do I cache static UI assets with a service worker for offline use?

You cache static UI assets using a service worker strategy that stores the app shell locally. This ensures the shell loads instantly on subsequent visits and provides offline capability by serving skeleton content while API data loads.

How do I improve first paint performance in a progressive web app?

Improve first paint performance by inlining critical CSS directly into the app shell. This prioritizes above-the-fold rendering, allowing the browser to display the UI skeleton immediately without waiting for external stylesheets.

Does the app shell pattern work with dynamic routing and API data?

Yes, the app shell pattern separates static shell from dynamic content, integrating with routing, headers, and navigation across frameworks. It serves skeleton loading screens while API data streams in.

What is the best way to handle offline fallback pages in a PWA?

The best way to handle offline fallback is to enforce a clear separation between static shell and dynamic content, caching the shell assets and serving a dedicated offline fallback page when network requests fail.