app-backend-bridge
Phase 4 of App Factory. Keep the existing backend (FastAPI, NestJS, Express, Django, Next.js API) and make the mobile/desktop app talk to it over HTTPS - API…
от Navinspire-ia★ 37 звёзд на GitHub
Установить app-backend-bridge в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
App Backend Bridge
When to use
Whenever the app calls an API or uses auth.
Inputs
- Backend framework, deployed backend URL, auth library and transport.
Procedure
- Never rewrite the backend. Changes are limited to CORS and cookie settings, proposed to the user as a diff first.
- App origins to allow:
capacitor://localhost(iOS),http://localhostandhttps://localhost(Android),https://tauri.localhost(Windows),tauri://localhost(macOS, Linux). - CORS per backend, with credentials when cookies are used:
- FastAPI:
CORSMiddleware(allow_origins=[...], allow_credentials=True, allow_methods=["*"], allow_headers=["*"]). - Express / NestJS:
cors({ origin: [...], credentials: true })/app.enableCors({...}). - Django:
django-cors-headers,CORS_ALLOWED_ORIGINS,CORS_ALLOW_CREDENTIALS = True, plusCSRF_TRUSTED_ORIGINS. - Next.js route handlers:
Access-Control-Allow-Originecho of the allowed origin +OPTIONShandler.
- FastAPI:
- Auth: prefer bearer tokens stored with
@capacitor/preferences(or secure storage plugin) / Tauri store; cookies needSameSite=None; Secure. Android Capacitor can useCapacitorHttp/CapacitorCookiesto avoid cross-origin cookie limits. - API base URL from env at build time (
VITE_API_URL,NEXT_PUBLIC_API_URL), HTTPS only. - Sidecar (desktop only, when the app needs a local backend): bundle the binary via Tauri
bundle.externalBinand spawn it with the shell plugin, scope limited to that binary.
Verification
curl -i -X OPTIONS <api>/health -H "Origin: https://tauri.localhost" -H "Access-Control-Request-Method: GET" returns the origin; login then an authenticated call succeed in the app.
Failure modes and fixes
- CORS error: origin missing or
*with credentials. - Logged out after reload: cookie
SameSite=Laxblocked oncapacitor://localhost/https://tauri.localhost; use tokens orSameSite=None; Secure. - Mixed content:
http://API blocked; use HTTPS.
Deliverable
Backend patch proposal (applied only with consent) and the app API config; report step backend.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл app-backend-bridge?
Phase 4 of App Factory. Keep the existing backend (FastAPI, NestJS, Express, Django, Next.js API) and make the mobile/desktop app talk to it over HTTPS - API base URL, CORS origins capacitor://localhost, http://localhost, https://tauri.localhost, tauri://localhost, auth cookies or tokens. Sidecar backend only when a local desktop backend is required.
Как установить скилл app-backend-bridge?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл app-backend-bridge запускает скрипты?
Нет, скилл состоит только из инструкций (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…