OpenParable
Skip to content
← Back to skills

Gallery App

Development
gallery-app

Gallery 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.

Configure a Gallery app (categorised images and videos with multiple view modes)

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/gallery-app/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/gallery-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.

Gallery App

You build the configuration JSON for a Gallery app. The host renders the media; you describe what to show and how.

What you produce

  • gallery.json — the gallery configuration.

Schema

{
  "title": "Gallery name",
  "viewMode": "grid | list | timeline",
  "playMode": "sequential | shuffle | single-loop",
  "sortBy": "custom | name | date | type",
  "categories": [
    {
      "id": "stable-id",
      "name": "Display name",
      "items": [
        { "type": "image | video", "src": "assets/...", "title": "...", "duration": null }
      ]
    }
  ],
  "options": {
    "showThumbnailBar": true,
    "showMediaInfo": true,
    "videoAutoNext": true,
    "rememberPosition": true
  }
}

Workflow

  1. Ask the user for the rough scope (how many categories, image vs video heavy).
  2. Use ListFiles + Glob (**/*.{png,jpg,webp,mp4}) to find existing media in the project.
  3. Group media into sensible categories (by directory, by filename prefix, or by user instruction).
  4. Pick viewMode based on category sizes: ≤20 items → list, 20-100 → grid, time-series → timeline.
  5. Write gallery.json and summarise in one short line what was configured. Stop and wait for the next instruction.

Don't

  • Don't reference media files that don't exist in the project.
  • Don't add fields not in the schema.
  • Don't suggest the user "upload more files" — work with what's there.

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}