app-frontend-adapter
Phase 4 of App Factory. Adapt the web frontend to run inside the Capacitor 8 or Tauri 2 shell without touching the website - static build config in…
от Navinspire-ia★ 37 звёзд на GitHub
Установить app-frontend-adapter в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
App Frontend Adapter
When to use
After the strategy is fixed by app-compatibility-engine.
Inputs
- Strategy, build output dir, package manager, API base URL env var.
Procedure
- Never edit the site's configs. All overrides live in
os/<target>. static: build with the site script (npm run build/pnpm build/yarn build/bun run build) and point the shell at the output. Relative base: Vite--base ./, CRAPUBLIC_URL=., Angular--base-href ./.next-export:os/<target>/next.config.export.mjsthat imports the site config and addsoutput: "export",images: { unoptimized: true },trailingSlash: true; build withNEXT_CONFIG_FILEor a copy step inos/<target>, outputout/.client-shell: createos/<target>/web(Vite + React or Next export) reusing components; replace Server Actions and server data loading by an API client:const API = import.meta.env.VITE_API_URL; // https only export const api = (p: string, init?: RequestInit) => fetch(`${API}${p}`, { credentials: "include", ...init });- Mobile adaptation:
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">,padding: env(safe-area-inset-top) ..., touch targets min 44px, inputs not hidden by the keyboard (@capacitor/keyboardresize), hardware back mapped to router back (app-native-capabilities), no hover only interactions. - Hash or memory routing when the shell cannot serve deep links.
Verification
Serve the dist locally (npx serve -s <dist>) and run tests/desktop/smoke.spec.ts of app-factory; no 404 on assets.
Failure modes and fixes
- White screen: absolute
/assets/...paths or<base href="/">; switch to relative base. - Mixed content: every API URL must be
https://. windowundefined in reused server components: mark"use client"or move to the client shell.
Deliverable
A static frontend dist for frontendDist / webDir; report step frontend.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл app-frontend-adapter?
Phase 4 of App Factory. Adapt the web frontend to run inside the Capacitor 8 or Tauri 2 shell without touching the website - static build config in os/<target>, client-shell frontend in os/<target>/web for Next.js server features, API base URL from env, relative assets, real mobile adaptation (safe areas, 44px touch targets, keyboard, back navigation).
Как установить скилл app-frontend-adapter?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл app-frontend-adapter запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…