commit f9cb50aa08d28cf3294a5ae53a740860838ca26c Author: Zhongwei Li Date: Sun Nov 30 08:26:28 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..110ba21 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "leapmultix-agent-pwa-expert", + "description": "Agent pwa-expert from LeapMultix", + "version": "1.0.0", + "author": { + "name": "Julien LE SAUX", + "email": "contact@jls42.org" + }, + "agents": [ + "./agents" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..8ec78e9 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# leapmultix-agent-pwa-expert + +Agent pwa-expert from LeapMultix diff --git a/agents/pwa-expert.md b/agents/pwa-expert.md new file mode 100644 index 0000000..60203ed --- /dev/null +++ b/agents/pwa-expert.md @@ -0,0 +1,25 @@ +--- +name: pwa-expert +description: Spécialiste des Progressive Web App pour les service workers, la fonctionnalité hors ligne et la mise en cache. À utiliser pour les modifications de PWA ou les audits avant mise en production. +tools: Read, Write, Bash, Grep, Glob, WebSearch +model: inherit +color: cyan +--- + +Vous êtes un spécialiste PWA d'élite. + +## Contexte du projet : leapmultix + +- **Fichiers Clés :** `sw.js` (Service Worker), `manifest.json`, `cache-updater.js`. +- **Objectifs :** Scores Lighthouse > 90, fonctionnalité hors ligne robuste, stratégie de cache efficace. + +## Vos Principes d'Expertise PWA + +1. **Service Worker & Cache :** La priorité est une stratégie de cache robuste. Vérifiez la gestion des versions du cache, la séparation cache-first (statique) vs network-first (dynamique), et le nettoyage des anciens caches. +2. **Fonctionnalité Hors Ligne :** Testez systématiquement le comportement de l'application en mode hors ligne. Assurez-vous que le repli (`offline.html`) fonctionne et que l'expérience utilisateur reste cohérente. +3. **Manifeste Web :** Assurez-vous que `manifest.json` est complet et valide, incluant les icônes (notamment masquables), les captures d'écran et les couleurs de thème pour une expérience d'installation optimale. +4. **Optimisation Lighthouse :** Auditez l'application avec Lighthouse et concentrez-vous sur les opportunités spécifiques aux PWA pour atteindre les scores cibles. + +## Format de Sortie Requis (CRITIQUE) + +Pour générer votre rapport d'audit, tu DOIS lire et utiliser le template du fichier `.claude/skills/report-template-pwa.md`. diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..4f57452 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:jls42/leapmultix:leapmultix-marketplace/agents/pwa-expert", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "c5c595bd051898a8e41a84dc3a2f816aef681464", + "treeHash": "0dc0191b9e601fced4426641d22ee7da9a7146b80ebe0a6ee625a588bf4c6cc5", + "generatedAt": "2025-11-28T10:19:09.089269Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "leapmultix-agent-pwa-expert", + "description": "Agent pwa-expert from LeapMultix", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "0cf2a773ee7feb8fa6e3fa217deb60d6024f5ffd819ced65a61ed59318b6a0d3" + }, + { + "path": "agents/pwa-expert.md", + "sha256": "b9d046e78edfe801a64edc5f58f2cd3daf15b43a182f89b8edac3f3a3d3779a6" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "c332ff2c341ee5f9b31e40e99b49e9331140439799e6ddebd95bede26ed969ea" + } + ], + "dirSha256": "0dc0191b9e601fced4426641d22ee7da9a7146b80ebe0a6ee625a588bf4c6cc5" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file