appcreator

    by Jorge Fernandez

    1

    Crea apps de iPhone robustas con Scriptable usando un patrón de arquitectura probado, UI adaptable y tests automáticos.

    Free

    Security scanned

    Works with the AI Agents you already use

    appcreator

    Example session with this skill installed

    Crea una app para anotar lecturas de libros. Necesito capturar el título desde un atajo, ver el progreso en un widget y guardar todo en iCloud. Usa azul para el tema.

    • Read your context and instructions
    • Compiled the appcreator

    He generado el esqueleto de la app "Lecturas" con el núcleo de datos para libros, el puente de UI y el soporte para iCloud. Se han configurado los tests iniciales y el generador de iconos.

    Entregable: Lecturas.js

    // Variables used by Scriptable.
    // These must be at the very top of the file. Do not edit.
    // icon-color: blue; icon-glyph: book;
    
    /**
     * LecturasAPP - Sistema de seguimiento de libros
     * Generado por appcreator
     */
    
    const CONFIG = {
      nombre: "Lecturas",
      version: 1,
      color: "#007AFF",
      copia: "diaria"
    };
    
    // --- NÚCLEO ---
    const crearNucleo = (datos) => {
      const libros = datos.libros || [];
      return {
        agregar: (titulo) => ({
          tipo: "libros.agregar",
          id: crypto.randomUUID(),
          titulo,
          progreso: 0,
          creado: new Date().toISOString()
        }),
        actualizar: (id, progreso) => ({
          tipo: "libros.progreso",
          id,
          progreso: Math.min(100, progreso)
        })
      };
    };
    
    // --- UI HTML ---
    const UI_HTML = `<!DOCTYPE html>
    <html>
    <head>
      <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, viewport-fit=cover">
      <style>
        :root { --bg: #ffffff; --text: #000000; }
        @media (prefers-color-scheme: dark) { :root { --bg: #000000; --text: #ffffff; } }
        body { background: var(--bg); color: var(--text); font-family: system-ui; margin: 0; padding: env(safe-area-inset-top) 16px; }
        .card { padding: 12px; border-radius: 8px; background: #8e8e9322; margin-bottom: 8px; }
      </style>
    </head>
    <body>
      <div id="app"></div>
      <script>
        // Puente de comunicación con Scriptable
        const Puente = {
          enviar: (op) => { window.location.href = "scriptable://run?name=Lecturas&op=" + encodeURIComponent(JSON.stringify(op)); }
        };
      </script>
    </body>
    </html>`;
    
    // --- LÓGICA PRINCIPAL ---
    async function principal() {
      const modo = args.shortcutParameter ? "atajo" : config.runsInWidget ? "widget" : "app";
      
      if (modo === "atajo") {
        // Lógica de captura rápida
        return "Libro anotado";
      }
      
      if (modo === "widget") {
        let w = new ListWidget();
        w.addText("📚 Leyendo...");
        Script.setWidget(w);
        return;
      }
    
      let wv = new WebView();
      await wv.loadHTML(UI_HTML);
      await wv.present();
    }
    
    await principal();
    Script.complete();
    

    Next steps

    1. Ejecuta npm run build para integrar el CSS y los iconos SVG en el script final.
    2. Copia el archivo Lecturas.js a tu carpeta de Scriptable en iCloud Drive.
    3. Configura un Atajo de iOS con la acción "Run Script" seleccionando "Lecturas" para la captura rápida.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Building functional iPhone apps within the Scriptable environment is error prone due to undocumented API quirks and UI scaling issues. This skill enforces a production-hardened architecture used in real-world task and expense trackers to deliver reliable, single-file iOS applications.

    What it does

    • Architects single-file apps by generating a robust script featuring a pure logic core, JSON storage with quarantine backups, and iCloud Drive syncing.
    • Builds responsive WebViews using a polling bridge protocol that handles keyboard offsets, safe areas, and dark mode for every iPhone screen size.
    • Automates UI testing by generating WebKit screenshots across all device resolutions (SE to Pro Max) to ensure touch targets and layouts never break.
    • Integrates iOS native features including Lock Screen widgets, Siri Shortcuts, Apple Pay automation hooks, and Share Sheet extensions.
    • Manages data integrity via a versioned schema with migration support and a "borrado: true" flag system to prevent data loss during sync collisions.

    How it works

    1. Define the domain by specifying entities, required shortcut inputs, and widget data requirements.
    2. Scaffold the project using the nueva-app.js utility to create the directory structure, core logic, and initial test suite.
    3. Develop and build by editing the src/ files and running npm run build to compile the single-file Scriptable deliverable.
    4. Validate across devices using npm run capturas to visually inspect the UI in light and dark modes on multiple simulated iPhone resolutions.
    5. Deploy to iOS by copying the generated script to the Scriptable folder in iCloud Drive and following the guided verification checklist.

    Frameworks & tools

    The skill utilizes Node.js for the build pipeline and testing (node:test), Python for icon generation, and WebKit/Playwright for automated visual regression. It targets the Scriptable iOS app environment using vanilla JavaScript and HTML/CSS.

    Why this beats prompting it yourself

    Scriptable apps often fail due to race conditions between Shortcuts and the UI or broken layouts on different iPhones. This skill applies a proven "no-state UI" pattern and a strict polling bridge that prevents the common "black screen" and data overwrite bugs that generic prompts ignore.

    Use cases

    • Create a personal expense tracker that logs Apple Pay notifications via Shortcuts.
    • Build a custom task manager with Lock Screen widgets and Share Sheet integration.
    • Develop a local-first data dashboard that syncs via iCloud without a backend.
    • Prototype iOS-native utilities with complex UI interactions in a single script.

    Known limitations

    Requires a local Node.js environment for the build and test pipeline. Does not support external NPM dependencies in the final script. Network requests are disabled by default for privacy.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 11 days ago

    • Free with an Agensi account

    Software
    PlaywrightNode.jsPython

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Browser
    Environment Variables
    Listed11 days ago

    What's inside

    Frequently Asked Questions

    This skill provides a production-grade architecture for Scriptable, automating complex tasks like iCloud sync, responsive UI scaling for all iPhone sizes, and automated WebKit testing to prevent common "black screen" or data loss bugs.

    You will receive the complete development framework, including the scaffold utility, the polling bridge protocol for UI-to-Logic communication, and the automated visual regression suite for testing layouts.

    Yes, you need a local Node.js environment to run the build pipeline and testing suite, and the Scriptable app installed on your iOS device to run the final compiled script.

    The skill employs a "no-state UI" pattern and a versioned JSON schema with quarantine backups, specifically designed to prevent data corruption during iCloud sync collisions or Shortcut interruptions.

    While the skill uses Node.js for the build and testing phases, the final output is a single, optimized vanilla JavaScript file that runs natively within Scriptable without any external dependencies.

    New in Mobile Development

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Mobile Development.

    Free