app-factory
Entry point to turn an existing web app into a real mobile or desktop app (Android, iOS, Windows, macOS, Linux). Use when the user says "turn my app into an…
от Navinspire-ia★ 37 звёзд на GitHub
Установить app-factory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
App Factory
Overview
You turn an existing web project into installable apps without asking the client any technical question. The client only sees "Create a mobile app" or "Create a desktop app". Everything is generated in os/<target> at the project root, built, tested on a real runtime and delivered with an honest report.
Locked technology decision
Navin imposes two technologies and never asks the client to pick a framework:
| Family | Engine | Order | Deliverables |
|---|---|---|---|
| Desktop | Tauri 2 + Rust | Windows first, then macOS, then Linux | .exe / .msi, .dmg, .deb, .rpm, .AppImage |
| Mobile | Capacitor 8 | Android first, then iOS | .apk, .aab, then .ipa |
- React Native / Expo, Flutter, Tauri Mobile, Electron and WinUI 3 are known (see
mobile-dev) but are never substituted automatically. - Backend: keep the existing one (FastAPI, NestJS, Express, Django, Next.js API...). Never rewrite it.
- Tests: Playwright, Maestro, ADB (others when present: Espresso, Appium, native tests).
- Builds: Android SDK, Gradle, Rust, MSVC. When the local host cannot build a target (MSI needs Windows; iOS and macOS need macOS + Xcode), use a CI runner on the right OS.
- Client-facing messages never name Rust, Gradle, Android SDK, Tauri or Capacitor. Say "the desktop toolchain", "the Android toolchain", "the iOS toolchain".
Targets and folders
/apps <target> with target in android, ios, windows, macos, ubuntu, centos, appimage. Each target lives in os/<target> (for example os/android, os/windows). Reports go to .navin/appfactory/<target>/.
Engine: the appfactory tool
| Action | Use |
|---|---|
targets |
List targets: engine, folder os/<id>, deliverables, required host. |
analyze |
Project report: frontend framework + version, package manager, build script, build output dir, backend frameworks, server features with file paths, auth libraries, API base URL env vars, existing os/ or native folders. |
plan target=<id> |
Compatibility diagnosis + strategy (static, next-export, client-shell), ordered steps with exact commands for the package manager, required tools, risks, files to create. |
doctor target=<id> |
Toolchain per target (present with version / missing with official install command for this OS) and host compatibility. Never installs anything. |
scaffold target=<id> [app_name] [app_id] [backend_url] [dry_run] |
Writes os/<id> from templates (dry_run=true lists the files only). Keeps every existing file, never writes outside os/<id> and .navin/appfactory, refuses a plain HTTP backend (except localhost / 10.0.2.2) and an invalid app id. Runs the audit at the end. |
audit target=<id> |
Security checks of os/<id> against policies/security.yaml: remote URL wrapper, cleartext, Android permissions, Tauri capabilities and CSP, HTTPS backend, secret files and secret patterns. Run it before every delivery. |
artifacts target=<id> |
Built packages found under os/<id> (path, size, date, debug or release). |
report target=<id> steps=[...] tests=[...] |
Writes .navin/appfactory/<id>/report.md + report.json. Status delivered only with a package and every required test passed with evidence (a passed test without evidence counts as not run; a project with a login also needs an auth test); otherwise partial or failed. |
What scaffold writes in os/<id>:
| Path | Role |
|---|---|
appfactory.json |
Strategy, frontend folder, build command, backend URL, API env names, aliases. Change the backend here, not in code. |
scripts/build-web.mjs |
Builds the frontend and copies it into www/ (static: the site's build, rebuilt with a relative base when needed; next-export: a staging copy in .stage/ with output: "export", the site's next.config untouched; client-shell: web/). Adds the native helpers to the copy. |
capacitor.config.json, native/, assets/logo.png |
Mobile: webDir: www, https scheme, no remote URL; back button and safe areas; icon source for capacitor-assets. |
src-tauri/ (tauri.conf.json, Cargo.toml, src/, capabilities/default.json), app-icon.png |
Desktop: frontendDist: ../www, CSP limited to the backend, core:default only. |
web/ + MIGRATION.md |
Only for client-shell: Vite + React client that reuses the site's components (tsconfig aliases, shims for next/link, next/navigation, next/image) and calls the backend through web/src/api.ts. MIGRATION.md lists every server feature to reconnect, with files. |
tests/ |
smoke.maestro.yaml (mobile) or smoke.spec.ts (desktop) with the app id filled in. |
ci/github-actions.yml |
Build on the right runner when this machine cannot (copy it to .github/workflows/). |
The 6 phases
| # | Phase | Tool actions | Specialist skill | Runbook |
|---|---|---|---|---|
| 1 | Analysis | appfactory action=analyze, appfactory action=targets |
`app-proj |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- orchestrator/detect.md
- orchestrator/execute.md
- orchestrator/plan.md
- orchestrator/recover.md
- orchestrator/verify.md
- policies/builds.yaml
- policies/security.yaml
- templates/capacitor/ci/github-actions.yml.tmpl
- templates/capacitor/native/native.css.tmpl
- templates/capacitor/native/native.js.tmpl
- templates/client-shell/web/index.html.tmpl
- templates/client-shell/web/src/Status.tsx.tmpl
- templates/client-shell/web/src/api.ts.tmpl
- templates/client-shell/web/src/app.css.tmpl
- templates/client-shell/web/src/main.tsx.tmpl
- templates/client-shell/web/src/routes.tsx.tmpl
- templates/client-shell/web/src/shims/next-image.tsx.tmpl
- templates/client-shell/web/src/shims/next-link.tsx.tmpl
- templates/client-shell/web/src/shims/next-navigation.ts.tmpl
- templates/client-shell/web/tsconfig.json.tmpl
- templates/client-shell/web/vite.config.ts.tmpl
- templates/common/README.md.tmpl
- templates/common/gitignore.tmpl
- templates/common/scripts/build-web.mjs.tmpl
- templates/tauri/ci/github-actions.yml.tmpl
- templates/tauri/src-tauri/Cargo.toml.tmpl
- templates/tauri/src-tauri/build.rs.tmpl
- templates/tauri/src-tauri/src/lib.rs.tmpl
- templates/tauri/src-tauri/src/main.rs.tmpl
FAQ
Что делает скилл app-factory?
Entry point to turn an existing web app into a real mobile or desktop app (Android, iOS, Windows, macOS, Linux). Use when the user says "turn my app into an Android/iOS/Windows/macOS/Linux app", "make a mobile app", "make a desktop app", "/apps", "build an apk", "build an msi", "AppImage", "dmg", "aab". Drives the `appfactory` engine through 6 phases (analysis, compatibility, tools, transformation, build and tests, delivery) and delegates to the 12 app-* specialist skills.
Как установить скилл app-factory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл app-factory запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…