progressive-web-app · aj-geddes — скилл для Claude Code: PWA с офлайном
Помогает собрать прогрессивное веб-приложение: манифест, service worker, работа без сети и установка на телефон.
npx skills add aj-geddes/useful-ai-prompts --skill progressive-web-app -a claude-codeЧто делает progressive-web-app
Скилл ведёт агента по сборке PWA: манифест веб-приложения, service worker, офлайн-режим через IndexedDB, установка на устройство и push-уведомления. Пригодится, когда сайт должен вести себя как приложение — открываться с домашнего экрана и работать при плохой связи.
Внутри пять справочных руководств в каталоге references/: web-app-manifest.md, service-worker-implementation.md, install-prompt-and-app-installation.md, offline-support-with-indexeddb.md и push-notifications.md. Быстрый старт начинается с public/manifest.json — там поля name, short_name, start_url, scope, display, цвета и иконки 192x192 и 512x512.
Манифест и service worker должны лежать по путям, которые реально отдаёт сервер: start_url и scope в примере равны /, и если приложение живёт в подкаталоге, эти значения придётся поправить. Это повод проверить маршрутизацию до того, как агент начнёт писать код.
Какие задачи решает
- собрать манифест веб-приложения с иконками и цветами темы
- настроить service worker и кэширование ресурсов
- сделать офлайн-режим с хранением данных в IndexedDB
- добавить установку приложения на домашний экран
- подключить push-уведомления
Примеры запросов агенту
- Собери PWA для моего проекта: манифест, service worker и офлайн-режим
- Добавь установку приложения на домашний экран и проверь манифест
- Настрой кэширование в service worker, чтобы страницы открывались без сети
Как установить progressive-web-app
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill progressive-web-app -a claude-code2Вручную: положить файлы
~/.claude/skills/progressive-web-app/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/progressive-web-app/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill progressive-web-app -a codex2Вручную: положить файлы
.agents/skills/progressive-web-app/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill progressive-web-app -a cursor2Вручную: положить файлы
.cursor/skills/progressive-web-app/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts progressive-web-app2Вручную: положить файлы
.github/skills/progressive-web-app/SKILL.md1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill progressive-web-app -a gemini-cli2Командой платформы
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/progressive-web-appВручную: положить файлы
.devin/skills/progressive-web-app/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill progressive-web-app -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора110
Другие версии progressive-web-app
Похожие
Рядом в теме «Фронтенд и UI»
Всё по теме «Фронтенд и UI» →Вопросы о progressive-web-app
Как установить progressive-web-app в Claude?
Выполните npx skills add aj-geddes/useful-ai-prompts --skill progressive-web-app -a claude-code. После этого файл скилла появится по пути ~/.claude/skills/progressive-web-app/SKILL.md.
Что делает скилл progressive-web-app?
Он даёт агенту инструкции по сборке прогрессивного веб-приложения: манифест, service worker, офлайн-поддержка через IndexedDB, установка и push-уведомления.
Где лежат подробные руководства по PWA?
В каталоге references/ внутри скилла: отдельные файлы по манифесту, service worker, установке, офлайну с IndexedDB и push-уведомлениям.
Исходный текст
SKILL.md · MIT
---
name: progressive-web-app
description: >
Build progressive web apps using service workers, web manifest, offline
support, and installability. Use when creating app-like web experiences.
---
# Progressive Web App
## Table of Contents
- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)
## Overview
Build progressive web applications with offline support, installability, service workers, and web app manifests to deliver app-like experiences in the browser.
## When to Use
- App-like web experiences
- Offline functionality needed
- Mobile installation required
- Push notifications
- Fast loading experiences
## Quick Start
Minimal working example:
```json
// public/manifest.json
{
"name": "My Awesome App",
"short_name": "AwesomeApp",
"description": "A progressive web application",
"start_url": "/",
"scope": "/",
"display": "standalone",
"orientation": "portrait-primary",
"background_color": "#ffffff",
"theme_color": "#007bff",
"icons": [
{
"src": "/images/icon-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/images/icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
// ... (see reference guides for full implementation)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [Web App Manifest](references/web-app-manifest.md) | Web App Manifest |
| [Service Worker Implementation](references/service-worker-implementation.md) | Service Worker Implementation |
| [Install Prompt and App Installation](references/install-prompt-and-app-installation.md) | Install Prompt and App Installation |
| [Offline Support with IndexedDB](references/offline-support-with-indexeddb.md) | Offline Support with IndexedDB |
| [Push Notifications](references/push-notifications.md) | Push Notifications |
## Best Practices
### ✅ DO
- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying
### ❌ DON'T
- Skip testing or validation
- Ignore error handling
- Hard-code configuration values
© aj-geddes · MIT · aj-geddes/useful-ai-prompts