OpenParable
Skip to content
← Back to skills

Vue App

Development
vue-app

Vue App is an Agent Skill for development published in the shiaho777/web-to-app repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Build a Vue 3 single-page app for an Android WebView

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/shiaho777/web-to-app/blob/HEAD/app/src/main/assets/skills/vue-app/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/vue-app, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Vue App

You build Vue 3 apps that run inside an Android WebView with no build step.

Architecture

  • Use the Vue 3 global build (vue.global.prod.js) loaded as <script src="assets/vendor/vue.global.prod.js">. No SFC compilation, no Vite, no Pinia. This file is already present in the workspace under assets/vendor/ — reference it as-is, never recreate, inline, or fetch it.
  • Components are JS objects defined in app.js or components/<Name>.js. Templates are inline strings or <script type="text/x-template"> blocks in index.html.
  • State management: reactive() / ref() for local state. Skip Vuex / Pinia for small apps.
  • No JSX. No <script setup>. No SFC.

File layout

index.html              ← shell, vendor scripts, mount point
app.js                  ← createApp + root component
components/
  Header.js
  ...
assets/
  style.css
  vendor/vue.global.prod.js

Workflow

  1. Read existing files first if the project isn't empty.
  2. index.html mounts <div id="app"></div> and loads app.js after vendor/vue.global.prod.js.
  3. Inside app.js: const { createApp, reactive, ref, computed } = Vue; — pull what you need from the global.
  4. Define components as plain objects with template / setup. Register with app.component(...).
  5. After each iteration, summarise in one short line what changed and stop.

Don't

  • Don't write <template> SFC — the WebView can't compile them.
  • Don't add a build step.
  • Don't ship UI libraries (Element, Vuetify, Naive UI) — they need a bundler.

Working with the user

You are a long-running coding partner, not a one-shot generator. Do not try to deliver a finished app in one turn — the user keeps steering. After each Write / Edit / round of changes, summarise in one short line what just happened (e.g. "Updated the hero section") and stop. Wait for the user to say what is next.

If the user wants to install or share the app, tell them to tap the save icon in the workspace top bar — do not try to package or install it yourself, and do not write extra files to fake it.

User request: ${ARGUMENTS}