.claude/skills/add-pwa-feature/SKILL.md
Add Progressive Web App capabilities — manifest, service worker, offline cache, install prompt, or background sync. Use when building mobile-first features.
npx skillsauth add malhajri07/real-estate-CRM-project add-pwa-featureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Adds PWA capabilities to the application. Can be invoked incrementally — each call adds one capability (manifest, offline, push, install prompt, background sync).
manifest, offline-cache, push-notifications, install-prompt, background-synccache-first (static assets) or stale-while-revalidate (API data)Create apps/web/public/manifest.json:
{
"name": "عقاركم — منصة العقارات",
"short_name": "عقاركم",
"description": "منصة إدارة العقارات السعودية",
"start_url": "/home/platform",
"display": "standalone",
"orientation": "portrait",
"dir": "rtl",
"lang": "ar",
"theme_color": "#0F172A",
"background_color": "#FFFFFF",
"icons": [
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" }
]
}
Add <link rel="manifest" href="/manifest.json"> to index.html.
Create apps/web/public/sw.js (service worker):
Register in apps/web/src/main.tsx:
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/sw.js");
}
Add offline indicator component:
function OfflineBanner() {
const [online, setOnline] = useState(navigator.onLine);
// Listen to online/offline events
return !online ? <Banner>أنت غير متصل</Banner> : null;
}
sync event → replay queued mutationsbeforeinstallprompt event/typecheck passestesting
Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.
tools
Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their Obsidian vault, manage notes, search vault content, perform vault operations from the command line, or develop and debug Obsidian plugins and themes.
data-ai
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
tools
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.